wok-current annotate cups-pam/receipt @ rev 22500
updated aspell-it again (2.2_20050523-0 -> 2.4_20070901-0)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jan 01 09:45:35 2020 +0100 (2020-01-01) |
parents | ff9bdf719828 |
children | 091670bbc959 |
rev | line source |
---|---|
pascal@2219 | 1 # SliTaz package receipt. |
pascal@2219 | 2 |
pascal@2219 | 3 PACKAGE="cups-pam" |
mojo@17886 | 4 VERSION="2.0.2" |
pascal@2219 | 5 CATEGORY="system-tools" |
al@18716 | 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@20669 | 11 WEB_SITE="https://www.cups.org/" |
pascal@20669 | 12 WGET_URL="https://www.cups.org/software/$VERSION/$TARBALL" |
pascal@2219 | 13 PROVIDE="cups:pam" |
pascal@2219 | 14 |
al@18755 | 15 DEPENDS="libssl cups-doc dbus pam libcomerr libkrb5 cups-filters libcups" |
pascal@15202 | 16 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \ |
pascal@20572 | 17 pam libcomerr-dev pam-dev acl-dev libgcrypt-dev libgnutls" |
pascal@15202 | 18 |
pascal@2219 | 19 # Rules to configure and make the package. |
pascal@2219 | 20 compile_rules() |
pascal@2219 | 21 { |
pankso@15937 | 22 patch -Np1 -i ${WOK}/cups/stuff/install-sh.u |
pascal@2219 | 23 ./configure \ |
pascal@2219 | 24 --prefix=/usr \ |
pascal@2219 | 25 --sysconfdir=/etc \ |
pascal@2219 | 26 --localstatedir=/var \ |
pascal@2219 | 27 --mandir=/usr/share/man \ |
pascal@2219 | 28 --enable-static \ |
pascal@2219 | 29 --enable-pam \ |
pascal@2219 | 30 --disable-ldap \ |
pascal@2219 | 31 --with-cups-user=nobody \ |
pascal@2219 | 32 --with-cups-group=nogroup \ |
pankso@15928 | 33 --with-languages="de es fr pt_BR ru" \ |
pascal@2219 | 34 $CONFIGURE_ARGS && |
pascal@2219 | 35 make && |
slaxemulator@14622 | 36 make BUILDROOT=$DESTDIR install |
al@18716 | 37 cp -f $WOK/cups/stuff/cups.desktop $install/usr/share/applications/cups.desktop |
pascal@2219 | 38 } |
pascal@2219 | 39 |
pascal@2219 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@2219 | 41 genpkg_rules() |
pascal@2219 | 42 { |
al@18716 | 43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
al@18716 | 44 |
slaxemulator@14622 | 45 cp -a $install/etc/cups $fs/etc |
slaxemulator@14622 | 46 cp -a $install/etc/dbus* $fs/etc |
slaxemulator@14622 | 47 cp -a $install/usr/bin $fs/usr |
slaxemulator@14622 | 48 cp -a $install/usr/sbin $fs/usr |
slaxemulator@14622 | 49 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@14622 | 50 cp -a $install/usr/lib/cups $fs/usr/lib |
slaxemulator@14622 | 51 cp -a $install/usr/share/cups $fs/usr/share |
al@18716 | 52 cp -a $install/usr/share/icons $fs/usr/share |
slaxemulator@14622 | 53 cp -a $install/var $fs |
al@18716 | 54 |
mojo@17887 | 55 # Remove files provided by cups-filters |
mojo@17887 | 56 rm -f $fs/usr/share/cups/banners/* |
mojo@17887 | 57 rm -f $fs/usr/share/cups/data/testprint |
al@18716 | 58 |
al@18716 | 59 # Remove files provided by libcups |
al@18716 | 60 rm -f $fs/usr/lib/libcups.so* |
al@18716 | 61 |
pascal@2238 | 62 # PAM conf |
pankso@15928 | 63 cp -a $stuff/etc $fs |
pascal@2238 | 64 |
pascal@2219 | 65 # Daemon script |
al@18716 | 66 cp -a $WOK/cups/stuff/etc $fs |
al@18716 | 67 |
al@18716 | 68 # TazPanel link |
al@18716 | 69 cp -a $WOK/cups/stuff/var $fs |
al@18716 | 70 |
pascal@2219 | 71 } |
pascal@2219 | 72 |
pascal@2219 | 73 post_install() |
pascal@2219 | 74 { |
al@18716 | 75 # Start CUPS daemon and edit daemons.conf |
al@18716 | 76 if [ -z "$1" -a ! -s /aufs-umount.sh ]; then |
pascal@2219 | 77 /etc/init.d/cupsd start || continue |
pascal@2219 | 78 fi |
al@18716 | 79 if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then |
al@18716 | 80 cat >> "$1/etc/daemons.conf" <<EOT |
al@18716 | 81 # CUPS printing daemon options. |
al@18716 | 82 CUPSD_OPTIONS="" |
al@18716 | 83 |
al@18716 | 84 EOT |
pascal@2219 | 85 fi |
pascal@2219 | 86 } |
pascal@2219 | 87 |
pascal@2219 | 88 pre_remove() |
pascal@2219 | 89 { |
al@18716 | 90 # Stop CUPS daemon before rm. |
al@18716 | 91 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop |
al@18716 | 92 : |
pascal@8875 | 93 } |
pascal@8875 | 94 |
pascal@8875 | 95 post_remove() |
pascal@8875 | 96 { |
al@18716 | 97 ln -s /bin/busybox "$1/usr/bin/lpr" |
pascal@8875 | 98 } |