wok-next view cups-pam/receipt @ rev 2522
p*: update depends
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 16 22:31:09 2009 +0000 (2009-03-16) |
parents | 03d56bddf9f5 |
children | 494005a36f9a |
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"
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
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/var $fs
51 # We need the doc for CSS, images and help in the web interface.
52 cp -a $_pkg/usr/share/doc $fs/usr/share
54 # PAM conf
55 cp -a stuff/* $fs
57 # Daemon script
58 cp -a ../cups/stuff/etc $fs
59 }
61 # Start cups daemon and edit daemons.conf.
62 post_install()
63 {
64 local root
65 root=$1
66 if [ -z "$root" ]; then
67 /etc/init.d/cupsd start || continue
68 fi
69 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
70 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
71 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
72 echo '' >> $root/etc/daemons.conf
73 fi
74 }
76 # Stop cups daemon before rm.
77 pre_remove()
78 {
79 /etc/init.d/cupsd stop
80 }