wok view cups/receipt @ rev 2594

Up: xterm (2.4.3) [security update]
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 09 19:51:20 2009 +0200 (2009-04-09)
parents a4af2b62bb67
children 494005a36f9a
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/pixmaps
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/usr/share/icons/hicolor/32x32/apps/cups.png \
47 $fs/usr/share/pixmaps
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 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 }