opt/cups/Pkgfile

59 lines
1.7 KiB
Plaintext
Raw Normal View History

2006-02-23 16:26:10 +01: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
# Depends on: acl tcp_wrappers libusb openssl zlib
2006-02-23 16:26:10 +01:00
name=cups
2013-03-20 18:18:45 +01:00
version=1.6.2
release=1
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 16:26:10 +01: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 16:26:10 +01:00
./configure --prefix=/usr \
--sysconfdir=/etc \
--libdir=/usr/lib \
2007-07-13 11:17:09 +02:00
--mandir=/usr/man \
2006-02-23 16:26:10 +01:00
--localstatedir=/var \
--with-docdir=/usr/share/cups/doc \
--with-logdir=/var/log/cups \
--with-cups-user=daemon \
--with-cups-group=lp \
2006-05-14 14:07:48 +02:00
--with-languages="" \
2006-11-20 15:57:50 +01:00
--without-{java,perl,php,python} \
--without-{icon,menu,rc}dir \
--with-optim="$CFLAGS" \
--enable-{ssl,openssl} --disable-gnutls \
--enable-tcp-wrappers \
2011-07-27 10:17:30 +02:00
--enable-acl \
--disable-pam \
--disable-dbus
2006-05-14 14:07:48 +02:00
2006-02-23 16:26:10 +01:00
make
make BUILDROOT=$PKG install
2006-02-23 16:26:10 +01:00
# conflict with cups-filters
rm -r $PKG/usr/share/cups/{banners,data}
# cleanup
2006-10-14 10:56:58 +02:00
chmod 0755 $PKG/var/{cache,spool}
2009-09-17 13:40:05 +02:00
chmod -R +w $PKG
# ssl files
2006-05-14 14:07:48 +02: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 16:26:10 +01:00
# 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
2006-02-23 16:26:10 +01:00
}