wok-current view cups-pam/receipt @ rev 23069

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