wok annotate cups-pam/receipt @ rev 22846

updated gifsicle (1.91 -> 1.92)
author Hans-G?nter Theisgen
date Sat Feb 15 15:33:13 2020 +0100 (2020-02-15)
parents a78610b2eb47
children 5f106bffd69a
rev   line source
pascal@2219 1 # SliTaz package receipt.
pascal@2219 2
pascal@2219 3 PACKAGE="cups-pam"
Hans-G?nter@22620 4 VERSION="2.3.1"
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"
Hans-G?nter@22620 9 WEB_SITE="https://www.cups.org/"
Hans-G?nter@22620 10
pascal@2219 11 SOURCE="cups"
Hans-G?nter@22620 12 TARBALL="$SOURCE-$VERSION-source.tar.gz"
Hans-G?nter@22620 13 WGET_URL="https://github.com/apple/$SOURCE/releases/download/v$VERSION/$TARBALL"
Hans-G?nter@22620 14
pascal@2219 15 PROVIDE="cups:pam"
Hans-G?nter@22620 16 DEPENDS="cups-doc cups-filters dbus libcomerr libcups libkrb5 libssl pam"
Hans-G?nter@22620 17 BUILD_DEPENDS="acl-dev dbus-dev gnutls-dev jpeg-dev libcomerr-dev
Hans-G?nter@22620 18 libgcrypt-dev libgnutls libpng-dev openssl-dev pam pam-dev tiff-dev"
pascal@15202 19
pascal@2219 20 # Rules to configure and make the package.
pascal@2219 21 compile_rules()
pascal@2219 22 {
Hans-G?nter@22620 23 # patch -Np1 -i ${WOK}/cups/stuff/install-sh.u
Hans-G?nter@22620 24
Hans-G?nter@22620 25 export LDFLAGS="$LDFLAGS -lrt"
Hans-G?nter@22620 26
Hans-G?nter@22620 27 # Set list of wanted locales in LOCALE_PACK
Hans-G?nter@22620 28 . $WOK/slitaz-i18n/stuff/locale-pack.conf
Hans-G?nter@22620 29
Hans-G?nter@22620 30 # <= 2.0.2 unrecognised
Hans-G?nter@22620 31 # --disable-ldap
Hans-G?nter@22620 32
Hans-G?nter@22620 33 ./configure \
Hans-G?nter@22620 34 --prefix=/usr \
Hans-G?nter@22620 35 --sysconfdir=/etc \
Hans-G?nter@22620 36 --localstatedir=/var \
Hans-G?nter@22620 37 --mandir=/usr/share/man \
Hans-G?nter@22620 38 --enable-static \
Hans-G?nter@22620 39 --enable-pam \
Hans-G?nter@22620 40 --disable-ldap \
Hans-G?nter@22620 41 --with-cups-user=nobody \
Hans-G?nter@22620 42 --with-cups-group=nogroup \
Hans-G?nter@22620 43 --with-languages="$LOCALE_PACK" \
pascal@2219 44 $CONFIGURE_ARGS &&
pascal@2219 45 make &&
slaxemulator@14622 46 make BUILDROOT=$DESTDIR install
Hans-G?nter@22620 47
Hans-G?nter@22620 48 cp -f $WOK/cups/stuff/cups.desktop \
Hans-G?nter@22620 49 $install/usr/share/applications/cups.desktop
pascal@2219 50 }
pascal@2219 51
pascal@2219 52 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2219 53 genpkg_rules()
pascal@2219 54 {
Hans-G?nter@22620 55 mkdir -p $fs/etc
Hans-G?nter@22620 56 mkdir -p $fs/usr/lib
Hans-G?nter@22620 57 mkdir -p $fs/usr/share
al@18716 58
Hans-G?nter@22620 59 cp -a $install/etc/cups $fs/etc
Hans-G?nter@22620 60 cp -a $install/etc/dbus* $fs/etc
Hans-G?nter@22620 61 cp -a $install/usr/bin $fs/usr
Hans-G?nter@22620 62 cp -a $install/usr/sbin $fs/usr
Hans-G?nter@22620 63 cp -a $install/usr/lib/*.so* $fs/usr/lib
Hans-G?nter@22620 64 cp -a $install/usr/lib/cups $fs/usr/lib
Hans-G?nter@22620 65 cp -a $install/usr/share/cups $fs/usr/share
Hans-G?nter@22620 66 cp -a $install/usr/share/icons $fs/usr/share
Hans-G?nter@22620 67 cp -a $install/var $fs
al@18716 68
mojo@17887 69 # Remove files provided by cups-filters
Hans-G?nter@22620 70 rm -f $fs/usr/share/cups/banners/*
Hans-G?nter@22620 71 rm -f $fs/usr/share/cups/data/testprint
al@18716 72
al@18716 73 # Remove files provided by libcups
Hans-G?nter@22620 74 rm -f $fs/usr/lib/libcups.so*
al@18716 75
pascal@2238 76 # PAM conf
Hans-G?nter@22620 77 cp -a $stuff/etc $fs
pascal@2238 78
pascal@2219 79 # Daemon script
Hans-G?nter@22620 80 cp -a $WOK/cups/stuff/etc $fs
al@18716 81
al@18716 82 # TazPanel link
Hans-G?nter@22620 83 cp -a $WOK/cups/stuff/var $fs
al@18716 84
pascal@2219 85 }
pascal@2219 86
pascal@2219 87 post_install()
pascal@2219 88 {
al@18716 89 # Start CUPS daemon and edit daemons.conf
Hans-G?nter@22620 90 if [ -z "$1" -a ! -s /aufs-umount.sh ]
Hans-G?nter@22620 91 then
pascal@2219 92 /etc/init.d/cupsd start || continue
pascal@2219 93 fi
Hans-G?nter@22620 94 if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"
Hans-G?nter@22620 95 then
al@18716 96 cat >> "$1/etc/daemons.conf" <<EOT
al@18716 97 # CUPS printing daemon options.
al@18716 98 CUPSD_OPTIONS=""
al@18716 99
al@18716 100 EOT
pascal@2219 101 fi
pascal@2219 102 }
pascal@2219 103
pascal@2219 104 pre_remove()
pascal@2219 105 {
Hans-G?nter@22620 106 # Stop CUPS daemon before remove.
al@18716 107 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop
al@18716 108 :
pascal@8875 109 }
pascal@8875 110
pascal@8875 111 post_remove()
pascal@8875 112 {
al@18716 113 ln -s /bin/busybox "$1/usr/bin/lpr"
pascal@8875 114 }