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

cups-pam: add icon
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Apr 14 10:52:20 2009 +0000 (2009-04-14)
parents 494005a36f9a
children 65da49e90d40
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@2610 9 zlib pam libcomerr libkrb5"
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@2619 40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
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@2619 49 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png \
pascal@2619 50 $fs/usr/share/pixmaps
pascal@2219 51 cp -a $_pkg/var $fs
pascal@2219 52
pascal@2219 53 # We need the doc for CSS, images and help in the web interface.
pascal@2219 54 cp -a $_pkg/usr/share/doc $fs/usr/share
pascal@2219 55
pascal@2238 56 # PAM conf
pascal@2238 57 cp -a stuff/* $fs
pascal@2238 58
pascal@2219 59 # Daemon script
pascal@2220 60 cp -a ../cups/stuff/etc $fs
pascal@2219 61 }
pascal@2219 62
pascal@2219 63 # Start cups daemon and edit daemons.conf.
pascal@2219 64 post_install()
pascal@2219 65 {
pascal@2219 66 local root
pascal@2219 67 root=$1
pascal@2219 68 if [ -z "$root" ]; then
pascal@2219 69 /etc/init.d/cupsd start || continue
pascal@2219 70 fi
pascal@2219 71 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
pascal@2219 72 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
pascal@2219 73 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
pascal@2219 74 echo '' >> $root/etc/daemons.conf
pascal@2219 75 fi
pascal@2219 76 }
pascal@2219 77
pascal@2219 78 # Stop cups daemon before rm.
pascal@2219 79 pre_remove()
pascal@2219 80 {
pascal@2219 81 /etc/init.d/cupsd stop
pascal@2219 82 }