summaryrefslogtreecommitdiff
path: root/cups/Pkgfile
blob: f2604bdc145f435a02b329fc924a046b79465a39 (plain)
    1 # Description: CUPS - Common UNIX Printing System
    2 # URL:         http://www.cups.org
    3 # Maintainer:  Juergen Daubert, jue at crux dot nu
    4 # Depends on:  acl tcp_wrappers libusb openssl zlib
    5 
    6 name=cups
    7 version=1.7.3
    8 release=1
    9 source=(http://www.cups.org/software/$version/$name-$version-source.tar.bz2
   10         cups-config.patch cups
   11         cups-dnssd.patch)
   12 
   13 build () {
   14     cd $name-$version
   15 
   16     patch -p1 -i $SRC/cups-config.patch
   17     patch -p1 -i $SRC/cups-dnssd.patch
   18 
   19     ./configure --prefix=/usr \
   20                 --sysconfdir=/etc \
   21                 --libdir=/usr/lib \
   22                 --mandir=/usr/man \
   23                 --localstatedir=/var \
   24                 --with-docdir=/usr/share/cups/doc \
   25                 --with-logdir=/var/log/cups \
   26                 --with-cups-user=daemon \
   27                 --with-cups-group=lp \
   28                 --with-languages="" \
   29                 --without-{java,perl,php,python} \
   30                 --without-{menu,rc}dir \
   31                 --with-optim="$CFLAGS" \
   32                 --enable-{ssl,openssl} --disable-gnutls \
   33                 --enable-tcp-wrappers \
   34                 --enable-acl \
   35                 --disable-pam \
   36                 --disable-dbus
   37 
   38     make
   39     make BUILDROOT=$PKG install
   40 
   41     # conflict with cups-filters
   42     rm -r $PKG/usr/share/cups/{banners,data}
   43     
   44     # cleanup
   45     rm -rf $PKG/usr/share/icons
   46     chmod 0755 $PKG/var/{cache,spool}   
   47     chmod -R +w $PKG
   48 
   49     # ssl files
   50     install -d $PKG/etc/ssl/{certs,keys}
   51     touch $PKG/etc/ssl/certs/cups.crt
   52     touch $PKG/etc/ssl/keys/cups.key
   53     chmod 0600 $PKG/etc/ssl/{keys/cups.key,certs/cups.crt}
   54 
   55     # start script
   56     install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
   57 
   58     # blacklist usblp kernel module
   59     install -d $PKG/etc/modprobe.d
   60     echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
   61 }

Generated by cgit