opt/cups/Pkgfile

49 lines
1.4 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
2008-07-11 09:29:19 +02:00
# Maintainer: Juergen Daubert, juergen dot daubert at t-online dot de
2006-02-23 16:26:10 +01:00
# Depends on: libpng, libtiff, openssl
name=cups
version=1.4.3
2009-11-16 11:39:45 +01:00
release=1
2006-10-13 16:21:44 +02:00
source=(http://ftp.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2 \
2009-11-16 11:39:45 +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 \
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 \
2009-09-17 13:40:05 +02:00
--with-dbusdir=/usr/etc/dbus-1 \
--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,menudir,icondir} \
--enable-ssl \
--enable-gnutls=no \
--enable-openssl=yes \
--enable-pam=no \
2009-09-17 13:40:05 +02:00
--enable-pdftops=no \
--enable-libusb=no
2006-05-14 14:07:48 +02:00
2006-02-23 16:26:10 +01:00
make
2009-09-17 13:40:05 +02:00
make 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
}