wok view cups/receipt @ rev 2273

udev: fix writing rules (net + cd)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Feb 18 15:31:33 2009 +0100 (2009-02-18)
parents 451844bef4f7
children 87fe479354bc
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"
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 --with-cups-user=nobody \
26 --with-cups-group=nogroup \
27 --with-languages="de es fr" \
28 $CONFIGURE_ARGS &&
29 make &&
30 make BUILDROOT=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
38 cp -a $_pkg/etc/cups $fs/etc
39 cp -a $_pkg/etc/dbus* $fs/etc
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $_pkg/usr/sbin $fs/usr
42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
43 cp -a $_pkg/usr/lib/cups $fs/usr/lib
44 cp -a $_pkg/usr/share/cups $fs/usr/share
45 cp -a $_pkg/var $fs
47 # We need the doc for CSS, images and help in the web interface.
48 cp -a $_pkg/usr/share/doc $fs/usr/share
50 # Daemon script
51 cp -a stuff/etc $fs
52 }
54 # Start cups daemon and edit daemons.conf.
55 post_install()
56 {
57 local root
58 root=$1
59 if [ -z "$root" ]; then
60 /etc/init.d/cupsd start || continue
61 fi
62 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
63 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
64 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
65 echo '' >> $root/etc/daemons.conf
66 fi
67 }
69 # Stop cups daemon before rm.
70 pre_remove()
71 {
72 /etc/init.d/cupsd stop
73 }