Juergen Daubert
286f394285
Security fixes, see http://www.cups.org/articles.php?L596 Important changes to the port: * enabled support for libusb as the backend for usb printers instead of the usblp kernel-module Note: unfortunately libusb cannot access the printer if the usblp module is inserted. Blacklist the usblp kernel module or build a new kernel with usblp disabled. * enabled support for tcp_wrappers and dbus
50 lines
1.5 KiB
Plaintext
50 lines
1.5 KiB
Plaintext
# Description: CUPS - Common UNIX Printing System
|
|
# URL: http://www.cups.org
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
|
# Depends on: tcp_wrappers libusb-compat libpng libtiff openssl dbus
|
|
|
|
name=cups
|
|
version=1.4.4
|
|
release=1
|
|
source=(http://ftp.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2 \
|
|
cups-config.patch cups)
|
|
|
|
build () {
|
|
cd $name-$version
|
|
|
|
patch -p1 -i $SRC/cups-config.patch
|
|
|
|
./configure --prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/man \
|
|
--localstatedir=/var \
|
|
--with-docdir=/usr/share/cups/doc \
|
|
--with-logdir=/var/log/cups \
|
|
--with-dbusdir=/usr/etc/dbus-1 \
|
|
--with-cups-user=daemon \
|
|
--with-cups-group=lp \
|
|
--with-languages="" \
|
|
--without-{java,perl,php,python} \
|
|
--without-{rcdir,menudir,icondir} \
|
|
--with-optim="$CFLAGS" \
|
|
--enable-{ssl,openssl} --disable-gnutls \
|
|
--disable-pam \
|
|
--disable-pdftops \
|
|
--enable-tcp-wrappers \
|
|
--enable-dbus \
|
|
--enable-libusb
|
|
|
|
make
|
|
make BUILDROOT=$PKG install
|
|
|
|
chmod 0755 $PKG/var/{cache,spool}
|
|
chmod -R +w $PKG
|
|
|
|
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}
|
|
|
|
install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
|
|
}
|