diff --git a/srcpkgs/rsyslog/template b/srcpkgs/rsyslog/template index 4bb9cef095..e38d38175d 100644 --- a/srcpkgs/rsyslog/template +++ b/srcpkgs/rsyslog/template @@ -1,13 +1,13 @@ # Template file for 'rsyslog' pkgname=rsyslog version=7.6.3 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-gnutls --enable-mysql --enable-pgsql --enable-imdiag --enable-imfile --enable-mail --enable-gssapi-krb5 --with-systemdsystemunitdir=/usr/lib/systemd/system --enable-zlib - --enable-imptcp --enable-imttcp --enable-mmsnmptrapd --enable-omjournal - --enable-impstats --enable-omprog --enable-omstdout --enable-imjournal + --enable-imptcp --enable-imttcp --enable-mmsnmptrapd + --enable-impstats --enable-omprog --enable-omstdout --enable-pmlastmsg --enable-pmcisconames --enable-pmaixforwardedfrom --enable-pmsnare --enable-pmrfc3164sd --enable-omuxsock --enable-cached-man-pages" @@ -22,7 +22,7 @@ lib32disabled=yes hostmakedepends="pkg-config" makedepends="json-c-devel gnutls-devel>=3.1.5 postgresql-libs-devel libmysqlclient-devel>=5.5.27 mit-krb5-devel libestr-devel>=0.1.9 - libee-devel>=0.4.1 liblogging-devel>=1.0.2 systemd-devel" + libee-devel>=0.4.1 liblogging-devel>=1.0.2" conf_files="/etc/rsyslog.conf" systemd_services="rsyslog.service on" provides="syslog-daemon-0_1" @@ -39,6 +39,17 @@ if [ "$CROSS_BUILD" ]; then } fi +# Package build options +build_options="systemd" +desc_option_systemd="Enable support for systemd journal" + +if [ "$build_option_systemd" ]; then + configure_args+=" --enable-imjournal --enable-omjournal" + makedepends+=" systemd-devel" +else + configure_args+=" --disable-imjournal --disable-omjournal" +fi + post_configure() { echo "rsyslogd_LDADD += \$(LIBESTR_LIBS) -lm" >> tools/Makefile }