# Description: CUPS - Common UNIX Printing System # URL: http://www.cups.org # Maintainer: Jürgen Daubert, juergen dot daubert at t-online dot de # Depends on: libpng, libtiff, openssl name=cups version=1.2.10 release=1 source=(http://ftp.easysw.com/pub/cups/$version/$name-$version-source.tar.bz2 \ cups-config.patch cups) build () { cd $name-$version patch -p1 < $SRC/cups-config.patch ./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --with-docdir=/usr/share/cups/doc \ --with-logdir=/var/log/cups \ --with-cups-user=daemon \ --with-cups-group=lp \ --with-languages="" \ --without-{java,perl,php,python} \ --enable-threads \ --enable-ssl=yes \ --enable-pam=no make make BUILDROOT=$PKG install rm -rf $PKG/etc/{rc*.d,init.d} rm -rf $PKG/usr/share/{locale,icons,applications} chmod 0755 $PKG/var/{cache,spool} 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} install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups }