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