2006-02-23 15:26:10 +00:00
|
|
|
# Description: CUPS - Common UNIX Printing System
|
|
|
|
# URL: http://www.cups.org
|
2011-02-02 13:44:37 +01:00
|
|
|
# Maintainer: Juergen Daubert, jue at crux dot nu
|
2012-10-27 16:09:30 +02:00
|
|
|
# Depends on: acl tcp_wrappers libusb openssl
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=cups
|
2012-10-27 16:09:30 +02:00
|
|
|
version=1.6.1
|
2012-02-07 16:48:02 +01:00
|
|
|
release=1
|
2011-01-02 12:28:43 +01:00
|
|
|
source=(http://ftp.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2
|
2012-02-07 16:48:02 +01:00
|
|
|
cups-config.patch cups)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build () {
|
|
|
|
cd $name-$version
|
2009-09-17 13:40:05 +02:00
|
|
|
|
2008-03-13 09:41:16 +01:00
|
|
|
patch -p1 -i $SRC/cups-config.patch
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2011-08-03 11:13:39 +02:00
|
|
|
--libdir=/usr/lib \
|
2007-07-13 11:17:09 +02:00
|
|
|
--mandir=/usr/man \
|
2006-02-23 15:26:10 +00:00
|
|
|
--localstatedir=/var \
|
2006-05-18 16:48:04 +00:00
|
|
|
--with-docdir=/usr/share/cups/doc \
|
|
|
|
--with-logdir=/var/log/cups \
|
|
|
|
--with-cups-user=daemon \
|
|
|
|
--with-cups-group=lp \
|
2006-05-14 12:07:48 +00:00
|
|
|
--with-languages="" \
|
2006-11-20 15:57:50 +01:00
|
|
|
--without-{java,perl,php,python} \
|
2011-01-07 14:08:01 +01:00
|
|
|
--without-rcdir \
|
2010-06-19 10:24:04 +02:00
|
|
|
--with-optim="$CFLAGS" \
|
|
|
|
--enable-{ssl,openssl} --disable-gnutls \
|
|
|
|
--enable-tcp-wrappers \
|
2011-07-27 10:17:30 +02:00
|
|
|
--enable-acl \
|
|
|
|
--disable-pam \
|
2012-01-16 10:43:25 +01:00
|
|
|
--disable-dbus
|
2006-05-14 12:07:48 +00:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
2012-10-27 16:09:30 +02:00
|
|
|
make BUILDROOT=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2012-10-27 16:09:30 +02:00
|
|
|
# conflict with cups-filters
|
|
|
|
rm -r $PKG/usr/share/cups/{banners,data}
|
|
|
|
|
|
|
|
# cleanup
|
|
|
|
rm -r $PKG/usr/share/{applications,icons}
|
2006-10-14 08:56:58 +00:00
|
|
|
chmod 0755 $PKG/var/{cache,spool}
|
2009-09-17 13:40:05 +02:00
|
|
|
chmod -R +w $PKG
|
2012-10-27 16:09:30 +02:00
|
|
|
|
|
|
|
# ssl files
|
2006-05-14 12:07:48 +00:00
|
|
|
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}
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2012-10-27 16:09:30 +02:00
|
|
|
# start script
|
2006-05-18 16:48:04 +00:00
|
|
|
install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
|
2012-01-15 16:33:02 +01:00
|
|
|
|
|
|
|
# blacklist usblp kernel module
|
|
|
|
install -d $PKG/etc/modprobe.d
|
|
|
|
echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|