63 lines
1.8 KiB
Plaintext
63 lines
1.8 KiB
Plaintext
# Description: CUPS - Common UNIX Printing System
|
|
# URL: http://www.cups.org
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
|
# Depends on: acl tcp_wrappers libusb openssl zlib
|
|
|
|
name=cups
|
|
version=1.7.0
|
|
release=1
|
|
source=(http://www.cups.org/software/$version/$name-$version-source.tar.bz2
|
|
cups-config.patch cups)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/cups-config.patch
|
|
|
|
# Don' use clang to build
|
|
sed -i 's/clang / /g' configure
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--libdir=/usr/lib \
|
|
--mandir=/usr/man \
|
|
--localstatedir=/var \
|
|
--with-docdir=/usr/share/cups/doc \
|
|
--with-logdir=/var/log/cups \
|
|
--with-cups-user=daemon \
|
|
--with-cups-group=lp \
|
|
--with-languages="" \
|
|
--without-{java,perl,php,python} \
|
|
--without-{menu,rc}dir \
|
|
--with-optim="$CFLAGS" \
|
|
--enable-{ssl,openssl} --disable-gnutls \
|
|
--enable-tcp-wrappers \
|
|
--enable-acl \
|
|
--disable-pam \
|
|
--disable-dbus
|
|
|
|
make
|
|
make BUILDROOT=$PKG install
|
|
|
|
# conflict with cups-filters
|
|
rm -r $PKG/usr/share/cups/{banners,data}
|
|
|
|
# cleanup
|
|
rm -r $PKG/usr/share/icons
|
|
chmod 0755 $PKG/var/{cache,spool}
|
|
chmod -R +w $PKG
|
|
|
|
# ssl files
|
|
install -d $PKG/etc/ssl/{certs,keys}
|
|
touch $PKG/etc/ssl/certs/cups.crt
|
|
touch $PKG/etc/ssl/keys/cups.key
|
|
chmod 0600 $PKG/etc/ssl/{keys/cups.key,certs/cups.crt}
|
|
|
|
# start script
|
|
install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
|
|
|
|
# blacklist usblp kernel module
|
|
install -d $PKG/etc/modprobe.d
|
|
echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
|
|
}
|