wok-4.x view cups/receipt @ rev 3106

Up: hal (0.5.12)
author Christophe Lincoln <pankso@slitaz.org>
date Sun May 17 23:52:28 2009 +0200 (2009-05-17)
parents 2fcd109566e7
children aab008b12bb3
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.3.10"
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 libcomerr libkrb5"
9 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls"
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 --disable-gssapi \
27 --with-cups-user=nobody \
28 --with-cups-group=nogroup \
29 --with-languages="de es fr" \
30 $CONFIGURE_ARGS &&
31 make &&
32 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/pixmaps
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/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
49 cp -a $_pkg/var $fs
51 # We need the doc for CSS, images and help in the web interface.
52 cp -a $_pkg/usr/share/doc $fs/usr/share
54 # tazwok does not strip files other than .so in usr/lib
56 for dir in $fs/usr/lib/cups
57 do
58 if [ -d "$dir" ]; then
59 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
60 fi
61 done
63 # Daemon script
64 cp -a stuff/etc $fs
65 }
67 # Start cups daemon and edit daemons.conf.
68 post_install()
69 {
70 local root
71 root=$1
72 if [ -z "$root" ]; then
73 /etc/init.d/cupsd start || continue
74 fi
75 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
76 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
77 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
78 echo '' >> $root/etc/daemons.conf
79 fi
80 }
82 # Stop cups daemon before rm.
83 pre_remove()
84 {
85 /etc/init.d/cupsd stop
86 }