wok-current annotate cups-pam/receipt @ rev 12157
Up: slitaz-base-files (4.4.1) - Now include httphelper, calc
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Mar 17 14:21:12 2012 +0100 (2012-03-17) |
parents | a1644dbcf632 |
children | 07a01dd773b7 |
rev | line source |
---|---|
pascal@2219 | 1 # SliTaz package receipt. |
pascal@2219 | 2 |
pascal@2219 | 3 PACKAGE="cups-pam" |
slaxemulator@7887 | 4 VERSION="1.4.6" |
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@4999 | 9 zlib pam libcomerr libkrb5 acl libcomerr3" |
slaxemulator@5477 | 10 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev pam pam-dev acl-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@2774 | 56 # tazwok does not strip files other than .so in usr/lib |
pascal@2774 | 57 |
pascal@2774 | 58 for dir in $fs/usr/lib/cups |
pascal@2774 | 59 do |
pascal@2774 | 60 if [ -d "$dir" ]; then |
pascal@2774 | 61 find $dir -type f -exec strip -s '{}' 2>/dev/null \; |
pascal@2774 | 62 fi |
pascal@2774 | 63 done |
pascal@2774 | 64 |
pascal@2238 | 65 # PAM conf |
pankso@9697 | 66 cp -a $stuff/* $fs |
pascal@2238 | 67 |
pascal@2219 | 68 # Daemon script |
slaxemulator@9698 | 69 cp -a $WOK/cups/stuff/etc $fs |
pascal@2219 | 70 } |
pascal@2219 | 71 |
pascal@2219 | 72 # Start cups daemon and edit daemons.conf. |
pascal@2219 | 73 post_install() |
pascal@2219 | 74 { |
pascal@2219 | 75 local root |
pascal@2219 | 76 root=$1 |
pascal@2219 | 77 if [ -z "$root" ]; then |
pascal@2219 | 78 /etc/init.d/cupsd start || continue |
pascal@2219 | 79 fi |
pascal@2219 | 80 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pascal@2219 | 81 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pascal@2219 | 82 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pascal@2219 | 83 echo '' >> $root/etc/daemons.conf |
pascal@2219 | 84 fi |
pascal@2219 | 85 } |
pascal@2219 | 86 |
pascal@2219 | 87 # Stop cups daemon before rm. |
pascal@2219 | 88 pre_remove() |
pascal@2219 | 89 { |
pascal@2219 | 90 /etc/init.d/cupsd stop |
pascal@2219 | 91 } |
pascal@8875 | 92 |
pascal@8875 | 93 # Overlap busybox |
pascal@8875 | 94 pre_install() |
pascal@8875 | 95 { |
pascal@8875 | 96 rm -f $1/usr/bin/lpr |
pascal@8875 | 97 } |
pascal@8875 | 98 |
pascal@8875 | 99 post_remove() |
pascal@8875 | 100 { |
pascal@8875 | 101 ln -s /bin/busybox /usr/bin/lpr |
pascal@8875 | 102 } |