opt/cups/Pkgfile

49 lines
1.5 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-compat libpng libtiff openssl
2006-02-23 16:26:10 +01:00
name=cups
version=1.4.6
release=1
source=(http://ftp.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2
cups-config.patch cups usb-backend-both-usblp-and-libusb.dpatch)
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
patch -p1 -i $SRC/usb-backend-both-usblp-and-libusb.dpatch
2006-02-23 16:26:10 +01:00
./configure --prefix=/usr \
--sysconfdir=/etc \
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-rcdir \
--with-optim="$CFLAGS" \
2010-12-24 12:32:55 +01:00
--with-pdftops=none \
--enable-{ssl,openssl} --disable-gnutls \
--disable-pam \
--enable-tcp-wrappers \
--disable-dbus
2006-05-14 14:07:48 +02:00
2006-02-23 16:26:10 +01:00
make
make {MENU,ICON}DIR="" BUILDROOT=$PKG install
2006-02-23 16:26:10 +01:00
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
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
install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
2006-02-23 16:26:10 +01:00
}