wok view cups-pam/receipt @ rev 19892

Add postgresql-contrib (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Apr 06 09:52:53 2017 +0200 (2017-04-06)
parents 77dc6129b023
children ff9bdf719828
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pam"
4 VERSION="2.0.2"
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 SOURCE="cups"
10 TARBALL="$SOURCE-$VERSION-source.tar.bz2"
11 WEB_SITE="http://www.cups.org/"
12 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL"
13 PROVIDE="cups:pam"
15 DEPENDS="libssl cups-doc dbus pam libcomerr libkrb5 cups-filters libcups"
16 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \
17 pam libcomerr-dev pam-dev acl-dev libgcrypt-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 patch -Np1 -i ${WOK}/cups/stuff/install-sh.u
23 ./configure \
24 --prefix=/usr \
25 --sysconfdir=/etc \
26 --localstatedir=/var \
27 --mandir=/usr/share/man \
28 --enable-static \
29 --enable-pam \
30 --disable-ldap \
31 --with-cups-user=nobody \
32 --with-cups-group=nogroup \
33 --with-languages="de es fr pt_BR ru" \
34 $CONFIGURE_ARGS &&
35 make &&
36 make BUILDROOT=$DESTDIR install
37 cp -f $WOK/cups/stuff/cups.desktop $install/usr/share/applications/cups.desktop
38 }
40 # Rules to gen a SliTaz package suitable for Tazpkg.
41 genpkg_rules()
42 {
43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
45 cp -a $install/etc/cups $fs/etc
46 cp -a $install/etc/dbus* $fs/etc
47 cp -a $install/usr/bin $fs/usr
48 cp -a $install/usr/sbin $fs/usr
49 cp -a $install/usr/lib/*.so* $fs/usr/lib
50 cp -a $install/usr/lib/cups $fs/usr/lib
51 cp -a $install/usr/share/cups $fs/usr/share
52 cp -a $install/usr/share/icons $fs/usr/share
53 cp -a $install/var $fs
55 # Remove files provided by cups-filters
56 rm -f $fs/usr/share/cups/banners/*
57 rm -f $fs/usr/share/cups/data/testprint
59 # Remove files provided by libcups
60 rm -f $fs/usr/lib/libcups.so*
62 # PAM conf
63 cp -a $stuff/etc $fs
65 # Daemon script
66 cp -a $WOK/cups/stuff/etc $fs
68 # TazPanel link
69 cp -a $WOK/cups/stuff/var $fs
71 }
73 post_install()
74 {
75 # Start CUPS daemon and edit daemons.conf
76 if [ -z "$1" -a ! -s /aufs-umount.sh ]; then
77 /etc/init.d/cupsd start || continue
78 fi
79 if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then
80 cat >> "$1/etc/daemons.conf" <<EOT
81 # CUPS printing daemon options.
82 CUPSD_OPTIONS=""
84 EOT
85 fi
86 }
88 pre_remove()
89 {
90 # Stop CUPS daemon before rm.
91 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop
92 :
93 }
95 post_remove()
96 {
97 ln -s /bin/busybox "$1/usr/bin/lpr"
98 }