wok view cups-pam/receipt @ rev 15866
linux64-*: Update all receipt
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Jan 30 21:56:31 2014 +0100 (2014-01-30) |
parents | 223b265f40fd |
children | 6fe50f4887f2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pam"
4 VERSION="1.6.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 libgcrypt cups-doc slitaz-base-files gnutls dbus jpeg libpng tiff \
16 zlib pam libcomerr libkrb5 acl libcomerr3"
17 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \
18 pam libcomerr-dev pam-dev acl-dev libgcrypt-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 patch -Np1 -i $WOK/$SOURCE/stuff/install-sh.u
25 ./configure \
26 --prefix=/usr \
27 --sysconfdir=/etc \
28 --localstatedir=/var \
29 --mandir=/usr/share/man \
30 --enable-static \
31 --enable-pam \
32 --disable-ldap \
33 --with-cups-user=nobody \
34 --with-cups-group=nogroup \
35 --with-languages="de es fr" \
36 $CONFIGURE_ARGS &&
37 make &&
38 make BUILDROOT=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
46 cp -a $install/etc/cups $fs/etc
47 cp -a $install/etc/dbus* $fs/etc
48 cp -a $install/usr/bin $fs/usr
49 cp -a $install/usr/sbin $fs/usr
50 cp -a $install/usr/lib/*.so* $fs/usr/lib
51 cp -a $install/usr/lib/cups $fs/usr/lib
52 cp -a $install/usr/share/cups $fs/usr/share
53 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png \
54 $fs/usr/share/pixmaps
55 cp -a $install/var $fs
57 # tazwok does not strip files other than .so in usr/lib
59 for dir in $fs/usr/lib/cups
60 do
61 if [ -d "$dir" ]; then
62 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
63 fi
64 done
66 # PAM conf
67 cp -a $stuff/* $fs
69 # Daemon script
70 cp -a $WOK/cups/stuff/etc $fs
71 }
73 # Start cups daemon and edit daemons.conf.
74 post_install()
75 {
76 local root
77 root=$1
78 if [ -z "$root" ]; then
79 /etc/init.d/cupsd start || continue
80 fi
81 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
82 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
83 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
84 echo '' >> $root/etc/daemons.conf
85 fi
86 }
88 # Stop cups daemon before rm.
89 pre_remove()
90 {
91 local root
92 root=$1
93 if [ -z "$root" -a -x /etc/init.d/cupsd ]; then
94 /etc/init.d/cupsd stop
95 fi
96 }
98 # Overlap busybox
99 pre_install()
100 {
101 rm -f $1/usr/bin/lpr
102 }
104 post_remove()
105 {
106 ln -s /bin/busybox $1/usr/bin/lpr
107 }