wok-6.x view cups/receipt @ rev 3545
Add gajim
author | Liu Peng <rocky@slitaz.org> |
---|---|
date | Tue Jun 23 12:11:03 2009 +0800 (2009-06-23) |
parents | 65da49e90d40 |
children | c59c6a95f2d0 |
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
66 # compress some driver files, adopted from arch and fedora
67 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
69 }
71 # Start cups daemon and edit daemons.conf.
72 post_install()
73 {
74 local root
75 root=$1
76 if [ -z "$root" ]; then
77 /etc/init.d/cupsd start || continue
78 fi
79 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
80 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
81 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
82 echo '' >> $root/etc/daemons.conf
83 fi
84 }
86 # Stop cups daemon before rm.
87 pre_remove()
88 {
89 /etc/init.d/cupsd stop
90 }