summaryrefslogtreecommitdiff
path: root/cups/Pkgfile
blob: 906f949d72c4d2cdf2caa2bc70a28aa59acb06bf (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=2.0.2
    8 release=2
    9 source=(http://www.cups.org/software/$version/$name-$version-source.tar.bz2
   10         cups-busy-loop.patch cups)
   11 
   12 build () {
   13     cd $name-$version
   14 
   15     # https://crux.nu/bugs/index.php?do=details&task_id=1143
   16     # http://pkgs.fedoraproject.org/cgit/cups.git/commit/?id=746dd9cf56e9522ca51c4cc669fc65b46e2d4866
   17     patch -p1 -i $SRC/cups-busy-loop.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-rcdir \
   31                 --with-optim="$CFLAGS" \
   32                 --enable-tcp-wrappers \
   33                 --enable-acl \
   34                 --disable-{pam,dbus,avahi,systemd}
   35 
   36     make
   37     make BUILDROOT=$PKG install
   38 
   39     # conflict with cups-filters
   40     rm -r $PKG/usr/share/cups/{banners,data}
   41     
   42     # cleanup
   43     rm -rf $PKG/usr/share/{applications,icons}
   44     chmod 0755 $PKG/var/{cache,spool}   
   45     chmod -R +w $PKG
   46 
   47     # start script
   48     install -D -m 755 $SRC/cups $PKG/etc/rc.d/cups
   49 
   50     # blacklist usblp kernel module
   51     install -d $PKG/etc/modprobe.d
   52     echo 'blacklist usblp' > $PKG/etc/modprobe.d/cups.conf
   53 }

Generated by cgit