wok-next annotate cups-pam/receipt @ rev 2522

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