cups: tweak configure opts, tweak dir perms.

This commit is contained in:
Juan RP 2012-06-12 21:56:11 +02:00
parent cde7e3b52c
commit 5d65819e0c

View file

@ -1,7 +1,7 @@
# Template file for 'cups'
pkgname=cups
version=1.5.3
revision=8
revision=9
patch_args="-Np1"
homepage="http://www.cups.org/"
license="GPL-2"
@ -9,7 +9,7 @@ distfiles="ftp://ftp.easysw.com/pub/cups/${version}/cups-${version}-source.tar.b
depends="libcups>=${version}_${revision} cups-filters"
makedepends="automake perl pkg-config acl-devel jpeg-devel libpng-devel>=1.5.10 tiff-devel
openssl-devel pam-devel mit-krb5-devel poppler-devel libusb-devel avahi-libs-devel
systemd-devel gnutls-devel"
systemd-devel gnutls-devel poppler-utils"
short_desc="Common Unix Printing System"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=9d716a8ffcefdaff1c37f4a4b590f1d74ff9ff72383a18f3c883c9235907f93d
@ -19,10 +19,10 @@ long_desc="
(IPP), and has its own filtering driver model for handling various document types."
make_dirs="
/var/cache/cups/rss 0750 root root
/var/run/cups/certs 0750 root root
/var/cache/cups/rss 0750 root lp
/var/run/cups/certs 0750 root lp
/var/log/cups 0750 root root
/var/spool/cups/tmp 0750 root root
/var/spool/cups 0755 root lp
/etc/cups/ssl 0700 root lp"
subpackages="libcups cups-devel"
@ -51,9 +51,10 @@ do_configure() {
--enable-threads --with-logdir=/var/log/cups \
--with-docdir=/usr/share/cups/doc --with-cups-user=daemon \
--with-cups-group=lp --enable-pam=yes --disable-ldap \
--enable-avahi --enable-pam --enable-ssl \
--enable-avahi --enable-pam --enable-ssl=yes --enable-gnutls \
--with-systemdsystemunitdir=/lib/systemd/system \
--with-menudir=/usr/share/applications
--with-menudir=/usr/share/applications \
--with-pdftops=pdftops --with-optim="${CFLAGS}"
}
do_build() {
@ -71,7 +72,9 @@ do_install() {
# install some more configuration files that will get filled by cupsd
for f in printers classes client subscriptions; do
touch ${DESTDIR}/etc/cups/${f}.conf
chgrp lp ${DESTDIR}/etc/cups/${f}.conf
done
echo "# see 'man client.conf'" >> ${DESTDIR}/etc/cups/client.conf
echo "ServerName /var/run/cups/cups.sock" >> ${DESTDIR}/etc/cups/client.conf
echo "# alternative: ServerName hostname-or-ip-address[:port] of a remote server" >> \