diff --git a/srcpkgs/cups/template b/srcpkgs/cups/template index 8bde5c2f02..1edc92a135 100644 --- a/srcpkgs/cups/template +++ b/srcpkgs/cups/template @@ -1,7 +1,7 @@ # Template file for 'cups' pkgname=cups version=1.7.4 -revision=1 +revision=2 patch_args="-Np1" short_desc="Common Unix Printing System" maintainer="Juan RP " @@ -12,11 +12,9 @@ checksum=1f440cc55f5de7cfad546862413a1bf3b3410cf25e17d09c32587acb323a25ed hostmakedepends="automake pkg-config poppler-utils" makedepends=" - acl-devel libjpeg-turbo-devel libpng-devel>=1.5.10 tiff-devel - libressl-devel pam-devel poppler-devel libusb-devel avahi-libs-devel - systemd-devel bc" + bc acl-devel libjpeg-turbo-devel libpng-devel>=1.5.10 tiff-devel + libressl-devel pam-devel poppler-devel libusb-devel avahi-libs-devel" depends="libcups>=${version}_${revision} cups-filters bc" -systemd_services="cups.socket on" conf_files=" /etc/cups/cupsd.conf /etc/cups/snmp.conf @@ -32,6 +30,16 @@ make_dirs=" /var/spool/cups 0755 root lp /etc/cups/ssl 0700 root lp" + +# Package build options +build_options="systemd" + +if [ "$build_option_systemd" ]; then + makedepends+=" systemd-devel" + configure_args+=" --with-systemdsystemunitdir=/usr/lib/systemd/system" + systemd_services="cups.socket on" +fi + pre_configure() { aclocal -I config-scripts autoconf -I config-scripts @@ -44,7 +52,6 @@ do_configure() { --with-docdir=/usr/share/cups/doc --disable-gssapi \ --with-cups-user=daemon --with-cups-group=lp --enable-relro \ --enable-avahi --enable-pam --enable-openssl --disable-gnutls \ - --with-systemdsystemunitdir=/usr/lib/systemd/system \ --with-menudir=/usr/share/applications \ --with-optim="${CFLAGS}" }