wok-current annotate cups/receipt @ rev 632
Add: cups (Common UNIX Printing System)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 21 15:45:27 2008 +0200 (2008-04-21) |
parents | |
children | 2f416a878f2e |
rev | line source |
---|---|
pankso@632 | 1 # SliTaz package receipt. |
pankso@632 | 2 |
pankso@632 | 3 PACKAGE="cups" |
pankso@632 | 4 VERSION="1.3.7" |
pankso@632 | 5 CATEGORY="system-tools" |
pankso@632 | 6 SHORT_DESC="Common UNIX Printing System." |
pankso@632 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@632 | 8 DEPENDS="openssl" |
pankso@632 | 9 BUILD_DEPENDS="openssl-dev" |
pankso@632 | 10 TARBALL="$PACKAGE-$VERSION-source.tar.bz2" |
pankso@632 | 11 WEB_SITE="http://www.cups.org/" |
pankso@632 | 12 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL" |
pankso@632 | 13 |
pankso@632 | 14 # Rules to configure and make the package. |
pankso@632 | 15 compile_rules() |
pankso@632 | 16 { |
pankso@632 | 17 cd $src |
pankso@632 | 18 ./configure \ |
pankso@632 | 19 --prefix=$PWD/_pkg/usr \ |
pankso@632 | 20 --sysconfdir=$PWD/_pkg/etc \ |
pankso@632 | 21 --localstatedir=$PWD/_pkg/var \ |
pankso@632 | 22 --mandir=$PWD/_pkg/usr/share/man \ |
pankso@632 | 23 $CONFIGURE_ARGS |
pankso@632 | 24 make |
pankso@632 | 25 make install |
pankso@632 | 26 } |
pankso@632 | 27 |
pankso@632 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@632 | 29 genpkg_rules() |
pankso@632 | 30 { |
pankso@632 | 31 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
pankso@632 | 32 |
pankso@632 | 33 cp -a $_pkg/etc/cups $fs/etc |
pankso@632 | 34 cp -a $_pkg/usr/bin $fs/usr |
pankso@632 | 35 cp -a $_pkg/usr/sbin $fs/usr |
pankso@632 | 36 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@632 | 37 cp -a $_pkg/usr/lib/cups $fs/usr/lib |
pankso@632 | 38 cp -a $_pkg/usr/share/cups $fs/usr/share |
pankso@632 | 39 cp -a $_pkg/var $fs |
pankso@632 | 40 |
pankso@632 | 41 # Daemon script |
pankso@632 | 42 cp -a stuff/etc $fs |
pankso@632 | 43 } |
pankso@632 | 44 |
pankso@632 | 45 # Start cups daemon and edit daemons.conf. |
pankso@632 | 46 post_install() |
pankso@632 | 47 { |
pankso@632 | 48 /etc/init.d/cupsd start || continue |
pankso@632 | 49 |
pankso@632 | 50 local root |
pankso@632 | 51 root=$1 |
pankso@632 | 52 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pankso@632 | 53 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pankso@632 | 54 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pankso@632 | 55 echo '' >> $root/etc/daemons.conf |
pankso@632 | 56 fi |
pankso@632 | 57 } |
pankso@632 | 58 |
pankso@632 | 59 # Stop cups daemon before rm. |
pankso@632 | 60 pre_remove() |
pankso@632 | 61 { |
pankso@632 | 62 /etc/init.d/cupsd stop |
pankso@632 | 63 } |