wok-6.x view cups-pam/receipt @ rev 2682
Up: mpg123 (1.7.2) [security update]
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 22 13:49:02 2009 +0200 (2009-04-22) |
parents | 494005a36f9a |
children | 65da49e90d40 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups-pam"
4 VERSION="1.3.9"
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 # PAM conf
57 cp -a stuff/* $fs
59 # Daemon script
60 cp -a ../cups/stuff/etc $fs
61 }
63 # Start cups daemon and edit daemons.conf.
64 post_install()
65 {
66 local root
67 root=$1
68 if [ -z "$root" ]; then
69 /etc/init.d/cupsd start || continue
70 fi
71 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
72 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
73 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
74 echo '' >> $root/etc/daemons.conf
75 fi
76 }
78 # Stop cups daemon before rm.
79 pre_remove()
80 {
81 /etc/init.d/cupsd stop
82 }