wok annotate cups-pam/receipt @ rev 15807
Up: aria2 to 1.18.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Jan 24 01:44:34 2014 +0000 (2014-01-24) |
parents | 223b265f40fd |
children | 6fe50f4887f2 |
rev | line source |
---|---|
pascal@2219 | 1 # SliTaz package receipt. |
pascal@2219 | 2 |
pascal@2219 | 3 PACKAGE="cups-pam" |
slaxemulator@14626 | 4 VERSION="1.6.2" |
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@15202 | 8 LICENSE="GPL2 LGPL2" |
pascal@2219 | 9 SOURCE="cups" |
pascal@2219 | 10 TARBALL="$SOURCE-$VERSION-source.tar.bz2" |
pascal@2219 | 11 WEB_SITE="http://www.cups.org/" |
slaxemulator@14626 | 12 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL" |
pascal@2219 | 13 PROVIDE="cups:pam" |
pascal@2219 | 14 |
pascal@15202 | 15 DEPENDS="libssl libgcrypt cups-doc slitaz-base-files gnutls dbus jpeg libpng tiff \ |
pascal@15202 | 16 zlib pam libcomerr libkrb5 acl libcomerr3" |
pascal@15202 | 17 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \ |
pascal@15202 | 18 pam libcomerr-dev pam-dev acl-dev libgcrypt-dev" |
pascal@15202 | 19 |
pascal@2219 | 20 # Rules to configure and make the package. |
pascal@2219 | 21 compile_rules() |
pascal@2219 | 22 { |
pascal@2219 | 23 cd $src |
slaxemulator@14622 | 24 patch -Np1 -i $WOK/$SOURCE/stuff/install-sh.u |
pascal@2219 | 25 ./configure \ |
pascal@2219 | 26 --prefix=/usr \ |
pascal@2219 | 27 --sysconfdir=/etc \ |
pascal@2219 | 28 --localstatedir=/var \ |
pascal@2219 | 29 --mandir=/usr/share/man \ |
pascal@2219 | 30 --enable-static \ |
pascal@2219 | 31 --enable-pam \ |
pascal@2219 | 32 --disable-ldap \ |
pascal@2219 | 33 --with-cups-user=nobody \ |
pascal@2219 | 34 --with-cups-group=nogroup \ |
pascal@2219 | 35 --with-languages="de es fr" \ |
pascal@2219 | 36 $CONFIGURE_ARGS && |
pascal@2219 | 37 make && |
slaxemulator@14622 | 38 make BUILDROOT=$DESTDIR install |
pascal@2219 | 39 } |
pascal@2219 | 40 |
pascal@2219 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2219 | 42 genpkg_rules() |
pascal@2219 | 43 { |
pascal@2619 | 44 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps |
pascal@2219 | 45 |
slaxemulator@14622 | 46 cp -a $install/etc/cups $fs/etc |
slaxemulator@14622 | 47 cp -a $install/etc/dbus* $fs/etc |
slaxemulator@14622 | 48 cp -a $install/usr/bin $fs/usr |
slaxemulator@14622 | 49 cp -a $install/usr/sbin $fs/usr |
slaxemulator@14622 | 50 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@14622 | 51 cp -a $install/usr/lib/cups $fs/usr/lib |
slaxemulator@14622 | 52 cp -a $install/usr/share/cups $fs/usr/share |
slaxemulator@14622 | 53 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png \ |
pascal@2619 | 54 $fs/usr/share/pixmaps |
slaxemulator@14622 | 55 cp -a $install/var $fs |
pascal@2219 | 56 |
pascal@2774 | 57 # tazwok does not strip files other than .so in usr/lib |
pascal@2774 | 58 |
pascal@2774 | 59 for dir in $fs/usr/lib/cups |
pascal@2774 | 60 do |
pascal@2774 | 61 if [ -d "$dir" ]; then |
pascal@2774 | 62 find $dir -type f -exec strip -s '{}' 2>/dev/null \; |
pascal@2774 | 63 fi |
pascal@2774 | 64 done |
pascal@2774 | 65 |
pascal@2238 | 66 # PAM conf |
pankso@9697 | 67 cp -a $stuff/* $fs |
pascal@2238 | 68 |
pascal@2219 | 69 # Daemon script |
slaxemulator@9698 | 70 cp -a $WOK/cups/stuff/etc $fs |
pascal@2219 | 71 } |
pascal@2219 | 72 |
pascal@2219 | 73 # Start cups daemon and edit daemons.conf. |
pascal@2219 | 74 post_install() |
pascal@2219 | 75 { |
pascal@2219 | 76 local root |
pascal@2219 | 77 root=$1 |
pascal@2219 | 78 if [ -z "$root" ]; then |
pascal@2219 | 79 /etc/init.d/cupsd start || continue |
pascal@2219 | 80 fi |
pascal@2219 | 81 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pascal@2219 | 82 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pascal@2219 | 83 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pascal@2219 | 84 echo '' >> $root/etc/daemons.conf |
pascal@2219 | 85 fi |
pascal@2219 | 86 } |
pascal@2219 | 87 |
pascal@2219 | 88 # Stop cups daemon before rm. |
pascal@2219 | 89 pre_remove() |
pascal@2219 | 90 { |
slaxemulator@14622 | 91 local root |
slaxemulator@14622 | 92 root=$1 |
pascal@15222 | 93 if [ -z "$root" -a -x /etc/init.d/cupsd ]; then |
slaxemulator@14622 | 94 /etc/init.d/cupsd stop |
slaxemulator@14622 | 95 fi |
pascal@2219 | 96 } |
pascal@8875 | 97 |
pascal@8875 | 98 # Overlap busybox |
pascal@8875 | 99 pre_install() |
pascal@8875 | 100 { |
pascal@8875 | 101 rm -f $1/usr/bin/lpr |
pascal@8875 | 102 } |
pascal@8875 | 103 |
pascal@8875 | 104 post_remove() |
pascal@8875 | 105 { |
pascal@13937 | 106 ln -s /bin/busybox $1/usr/bin/lpr |
pascal@8875 | 107 } |