wok-6.x view cups-pam/receipt @ rev 3761
dropbear-pam: fix post_install message
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jul 27 17:27:39 2009 +0200 (2009-07-27) |
parents | 5f9c6a3e560f |
children | 39011a13b555 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pam"
4 VERSION="1.3.10"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System with pam support."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff \
9 zlib pam libcomerr libkrb5"
10 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev pam pam-dev"
11 SOURCE="cups"
12 TARBALL="$SOURCE-$VERSION-source.tar.bz2"
13 WEB_SITE="http://www.cups.org/"
14 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
15 PROVIDE="cups:pam"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --prefix=/usr \
23 --sysconfdir=/etc \
24 --localstatedir=/var \
25 --mandir=/usr/share/man \
26 --enable-static \
27 --enable-pam \
28 --disable-ldap \
29 --with-cups-user=nobody \
30 --with-cups-group=nogroup \
31 --with-languages="de es fr" \
32 $CONFIGURE_ARGS &&
33 make &&
34 make BUILDROOT=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
42 cp -a $_pkg/etc/cups $fs/etc
43 cp -a $_pkg/etc/dbus* $fs/etc
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/sbin $fs/usr
46 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
47 cp -a $_pkg/usr/lib/cups $fs/usr/lib
48 cp -a $_pkg/usr/share/cups $fs/usr/share
49 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png \
50 $fs/usr/share/pixmaps
51 cp -a $_pkg/var $fs
53 # We need the doc for CSS, images and help in the web interface.
54 cp -a $_pkg/usr/share/doc $fs/usr/share
56 # tazwok does not strip files other than .so in usr/lib
58 for dir in $fs/usr/lib/cups
59 do
60 if [ -d "$dir" ]; then
61 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
62 fi
63 done
65 # PAM conf
66 cp -a stuff/* $fs
68 # Daemon script
69 cp -a ../cups/stuff/etc $fs
70 }
72 # Start cups daemon and edit daemons.conf.
73 post_install()
74 {
75 local root
76 root=$1
77 if [ -z "$root" ]; then
78 /etc/init.d/cupsd start || continue
79 fi
80 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
81 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
82 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
83 echo '' >> $root/etc/daemons.conf
84 fi
85 }
87 # Stop cups daemon before rm.
88 pre_remove()
89 {
90 /etc/init.d/cupsd stop
91 }