wok view cups/receipt @ rev 2534

bash: tiny fixes
author Paul Issott <paul@slitaz.org>
date Sat Mar 21 18:45:14 2009 +0000 (2009-03-21)
parents 87fe479354bc
children f190c8bb12df
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.3.9"
5 CATEGORY="system-tools"
6 SHORT_DESC="Common UNIX Printing System."
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff zlib"
9 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev"
10 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
11 WEB_SITE="http://www.cups.org/"
12 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure \
19 --prefix=/usr \
20 --sysconfdir=/etc \
21 --localstatedir=/var \
22 --mandir=/usr/share/man \
23 --enable-static \
24 --disable-ldap \
25 --disable-pam \
26 --with-cups-user=nobody \
27 --with-cups-group=nogroup \
28 --with-languages="de es fr" \
29 $CONFIGURE_ARGS &&
30 make &&
31 make BUILDROOT=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
39 cp -a $_pkg/etc/cups $fs/etc
40 cp -a $_pkg/etc/dbus* $fs/etc
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/sbin $fs/usr
43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
44 cp -a $_pkg/usr/lib/cups $fs/usr/lib
45 cp -a $_pkg/usr/share/cups $fs/usr/share
46 cp -a $_pkg/var $fs
48 # We need the doc for CSS, images and help in the web interface.
49 cp -a $_pkg/usr/share/doc $fs/usr/share
51 # Daemon script
52 cp -a stuff/etc $fs
53 }
55 # Start cups daemon and edit daemons.conf.
56 post_install()
57 {
58 local root
59 root=$1
60 if [ -z "$root" ]; then
61 /etc/init.d/cupsd start || continue
62 fi
63 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
64 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
65 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
66 echo '' >> $root/etc/daemons.conf
67 fi
68 }
70 # Stop cups daemon before rm.
71 pre_remove()
72 {
73 /etc/init.d/cupsd stop
74 }