wok-6.x view cups/receipt @ rev 2206

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