wok view cups-pam/receipt @ rev 22889

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