summaryrefslogtreecommitdiff
path: root/cups/Pkgfile
blob: 70580bed385e5d3dfbc8aedcc27e34ee733c3a12 (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.2.4
    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 < $SRC/cups-config.patch
   15 
   16     ./configure --prefix=/usr \
   17                 --sysconfdir=/etc \
   18                 --localstatedir=/var \
   19                 --with-docdir=/usr/share/cups/doc \
   20                 --with-logdir=/var/log/cups \
   21                 --with-cups-user=daemon \
   22                 --with-cups-group=lp \
   23                 --with-languages="" \
   24                 --without-{jave,perl,php,python} \
   25                 --enable-threads \
   26                 --enable-ssl=yes \
   27                 --enable-pam=no
   28 
   29     make
   30     make BUILDROOT=$PKG install
   31 
   32     rm -rf $PKG/etc/{rc*.d,init.d}
   33     rm -rf $PKG/usr/share/{locale,icons,applications}
   34     chmod 0755 $PKG/var/spool   
   35 
   36     install -d $PKG/etc/ssl/{certs,keys}
   37     touch $PKG/etc/ssl/certs/cups.crt
   38     touch $PKG/etc/ssl/keys/cups.key
   39     chmod 0600 $PKG/etc/ssl/{keys/cups.key,certs/cups.crt}
   40 
   41     install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
   42 }

Generated by cgit