wok view cups-pam/receipt @ rev 2253

Add squirrelmail-ldapuser
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 15 22:50:52 2009 +0000 (2009-02-15)
parents e0f83290a5a4
children a4af2b62bb67
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 # PAM conf
54 cp -a stuff/* $fs
56 # Daemon script
57 cp -a ../cups/stuff/etc $fs
58 }
60 # Start cups daemon and edit daemons.conf.
61 post_install()
62 {
63 local root
64 root=$1
65 if [ -z "$root" ]; then
66 /etc/init.d/cupsd start || continue
67 fi
68 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
69 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
70 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
71 echo '' >> $root/etc/daemons.conf
72 fi
73 }
75 # Stop cups daemon before rm.
76 pre_remove()
77 {
78 /etc/init.d/cupsd stop
79 }