2006-02-23 15:26:10 +00:00
|
|
|
# Description: CUPS - Common UNIX Printing System
|
|
|
|
# URL: http://www.cups.org
|
2008-07-11 09:29:19 +02:00
|
|
|
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
|
2011-01-02 12:28:43 +01:00
|
|
|
# Depends on: acl tcp_wrappers libusb-compat libpng libtiff openssl
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
name=cups
|
2011-01-07 14:08:01 +01:00
|
|
|
version=1.4.6
|
|
|
|
release=1
|
2011-01-02 12:28:43 +01:00
|
|
|
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 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
|
2011-01-02 12:28:43 +01:00
|
|
|
patch -p1 -i $SRC/usb-backend-both-usblp-and-libusb.dpatch
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
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" \
|
2010-12-24 12:32:55 +01:00
|
|
|
--with-pdftops=none \
|
2010-06-19 10:24:04 +02:00
|
|
|
--enable-{ssl,openssl} --disable-gnutls \
|
|
|
|
--disable-pam \
|
|
|
|
--enable-tcp-wrappers \
|
2011-01-02 12:28:43 +01:00
|
|
|
--disable-dbus
|
2006-05-14 12:07:48 +00:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
make
|
2011-01-24 17:32:39 +01:00
|
|
|
make {MENU,ICON}DIR="" BUILDROOT=$PKG install
|
2006-02-23 15:26:10 +00:00
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
2006-05-18 16:48:04 +00:00
|
|
|
install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
|
2006-02-23 15:26:10 +00:00
|
|
|
}
|