wok-next annotate cups-pam/receipt @ rev 2345
Up: udev (139)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Mar 03 22:57:06 2009 +0100 (2009-03-03) |
parents | e0f83290a5a4 |
children | a4af2b62bb67 |
rev | line source |
---|---|
pascal@2219 | 1 # SliTaz package receipt. |
pascal@2219 | 2 |
pascal@2219 | 3 PACKAGE="cups-pam" |
pascal@2219 | 4 VERSION="1.3.9" |
pascal@2219 | 5 CATEGORY="system-tools" |
pascal@2219 | 6 SHORT_DESC="Common UNIX Printing System with pam support." |
pascal@2219 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@2219 | 8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus pam" |
pascal@2219 | 9 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev pam pam-dev" |
pascal@2219 | 10 SOURCE="cups" |
pascal@2219 | 11 TARBALL="$SOURCE-$VERSION-source.tar.bz2" |
pascal@2219 | 12 WEB_SITE="http://www.cups.org/" |
pascal@2219 | 13 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL" |
pascal@2219 | 14 PROVIDE="cups:pam" |
pascal@2219 | 15 |
pascal@2219 | 16 # Rules to configure and make the package. |
pascal@2219 | 17 compile_rules() |
pascal@2219 | 18 { |
pascal@2219 | 19 cd $src |
pascal@2219 | 20 ./configure \ |
pascal@2219 | 21 --prefix=/usr \ |
pascal@2219 | 22 --sysconfdir=/etc \ |
pascal@2219 | 23 --localstatedir=/var \ |
pascal@2219 | 24 --mandir=/usr/share/man \ |
pascal@2219 | 25 --enable-static \ |
pascal@2219 | 26 --enable-pam \ |
pascal@2219 | 27 --disable-ldap \ |
pascal@2219 | 28 --with-cups-user=nobody \ |
pascal@2219 | 29 --with-cups-group=nogroup \ |
pascal@2219 | 30 --with-languages="de es fr" \ |
pascal@2219 | 31 $CONFIGURE_ARGS && |
pascal@2219 | 32 make && |
pascal@2219 | 33 make BUILDROOT=$PWD/_pkg install |
pascal@2219 | 34 } |
pascal@2219 | 35 |
pascal@2219 | 36 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2219 | 37 genpkg_rules() |
pascal@2219 | 38 { |
pascal@2219 | 39 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
pascal@2219 | 40 |
pascal@2219 | 41 cp -a $_pkg/etc/cups $fs/etc |
pascal@2219 | 42 cp -a $_pkg/etc/dbus* $fs/etc |
pascal@2219 | 43 cp -a $_pkg/usr/bin $fs/usr |
pascal@2219 | 44 cp -a $_pkg/usr/sbin $fs/usr |
pascal@2219 | 45 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pascal@2219 | 46 cp -a $_pkg/usr/lib/cups $fs/usr/lib |
pascal@2219 | 47 cp -a $_pkg/usr/share/cups $fs/usr/share |
pascal@2219 | 48 cp -a $_pkg/var $fs |
pascal@2219 | 49 |
pascal@2219 | 50 # We need the doc for CSS, images and help in the web interface. |
pascal@2219 | 51 cp -a $_pkg/usr/share/doc $fs/usr/share |
pascal@2219 | 52 |
pascal@2238 | 53 # PAM conf |
pascal@2238 | 54 cp -a stuff/* $fs |
pascal@2238 | 55 |
pascal@2219 | 56 # Daemon script |
pascal@2220 | 57 cp -a ../cups/stuff/etc $fs |
pascal@2219 | 58 } |
pascal@2219 | 59 |
pascal@2219 | 60 # Start cups daemon and edit daemons.conf. |
pascal@2219 | 61 post_install() |
pascal@2219 | 62 { |
pascal@2219 | 63 local root |
pascal@2219 | 64 root=$1 |
pascal@2219 | 65 if [ -z "$root" ]; then |
pascal@2219 | 66 /etc/init.d/cupsd start || continue |
pascal@2219 | 67 fi |
pascal@2219 | 68 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pascal@2219 | 69 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pascal@2219 | 70 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pascal@2219 | 71 echo '' >> $root/etc/daemons.conf |
pascal@2219 | 72 fi |
pascal@2219 | 73 } |
pascal@2219 | 74 |
pascal@2219 | 75 # Stop cups daemon before rm. |
pascal@2219 | 76 pre_remove() |
pascal@2219 | 77 { |
pascal@2219 | 78 /etc/init.d/cupsd stop |
pascal@2219 | 79 } |