blob: 4316366daa32df2df9629dd833785879f99f15f6 (
plain)
1 # Description: CUPS - Common UNIX Printing System
2 # URL: http://www.cups.org
3 # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de
4 # Depends on: libpng, libtiff, openssl
5
6 name=cups
7 version=1.3.7
8 release=1
9 source=(http://ftp.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2 \
10 cups-config.patch cups)
11
12 build () {
13 cd $name-$version
14 patch -p1 -i $SRC/cups-config.patch
15
16 ./configure --prefix=/usr \
17 --sysconfdir=/etc \
18 --mandir=/usr/man \
19 --localstatedir=/var \
20 --with-docdir=/usr/share/cups/doc \
21 --with-logdir=/var/log/cups \
22 --with-cups-user=daemon \
23 --with-cups-group=lp \
24 --with-languages="" \
25 --without-{java,perl,php,python} \
26 --enable-threads \
27 --enable-ssl=yes \
28 --enable-pam=no
29
30 make
31 make BUILDROOT=$PKG DBUSDIR=/usr/etc/dbus-1 install
32
33 rm -rf $PKG/etc/{rc*.d,init.d}
34 rm -rf $PKG/usr/share/{locale,icons,applications}
35 chmod 0755 $PKG/var/{cache,spool}
36
37 install -d $PKG/etc/ssl/{certs,keys}
38 touch $PKG/etc/ssl/certs/cups.crt
39 touch $PKG/etc/ssl/keys/cups.key
40 chmod 0600 $PKG/etc/ssl/{keys/cups.key,certs/cups.crt}
41
42 install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
43 }
|