wok-current view cups-pam/receipt @ rev 2220
Cups-pam: fix stuff dir
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Feb 12 09:22:35 2009 +0000 (2009-02-12) |
parents | 06e49b6e4420 |
children | 03d56bddf9f5 |
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 pam"
9 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev pam pam-dev"
10 SOURCE="cups"
11 TARBALL="$SOURCE-$VERSION-source.tar.bz2"
12 WEB_SITE="http://www.cups.org/"
13 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
14 PROVIDE="cups:pam"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 ./configure \
21 --prefix=/usr \
22 --sysconfdir=/etc \
23 --localstatedir=/var \
24 --mandir=/usr/share/man \
25 --enable-static \
26 --enable-pam \
27 --disable-ldap \
28 --with-cups-user=nobody \
29 --with-cups-group=nogroup \
30 --with-languages="de es fr" \
31 $CONFIGURE_ARGS &&
32 make &&
33 make BUILDROOT=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
41 cp -a $_pkg/etc/cups $fs/etc
42 cp -a $_pkg/etc/dbus* $fs/etc
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/sbin $fs/usr
45 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
46 cp -a $_pkg/usr/lib/cups $fs/usr/lib
47 cp -a $_pkg/usr/share/cups $fs/usr/share
48 cp -a $_pkg/var $fs
50 # We need the doc for CSS, images and help in the web interface.
51 cp -a $_pkg/usr/share/doc $fs/usr/share
53 # Daemon script
54 cp -a ../cups/stuff/etc $fs
55 }
57 # Start cups daemon and edit daemons.conf.
58 post_install()
59 {
60 local root
61 root=$1
62 if [ -z "$root" ]; then
63 /etc/init.d/cupsd start || continue
64 fi
65 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
66 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
67 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
68 echo '' >> $root/etc/daemons.conf
69 fi
70 }
72 # Stop cups daemon before rm.
73 pre_remove()
74 {
75 /etc/init.d/cupsd stop
76 }