wok-6.x view cups/receipt @ rev 3865
Add itaka (Screenshot server)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat Aug 08 00:37:36 2009 +0200 (2009-08-08) |
parents | aab008b12bb3 |
children | c6c606632d4f |
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 dbus jpeg libpng tiff zlib \
9 libcomerr libkrb5"
10 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls"
11 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
12 WEB_SITE="http://www.cups.org/"
13 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure \
20 --prefix=/usr \
21 --sysconfdir=/etc \
22 --localstatedir=/var \
23 --mandir=/usr/share/man \
24 --enable-static \
25 --disable-ldap \
26 --disable-pam \
27 --disable-gssapi \
28 --with-cups-user=nobody \
29 --with-cups-group=nogroup \
30 --with-languages="de es fr" \
31 $CONFIGURE_ARGS &&
32 make &&
33 make BUILDROOT=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
42 cp -a $_pkg/etc/cups $fs/etc
43 cp -a $_pkg/etc/dbus* $fs/etc
44 cp -a $_pkg/usr/bin $fs/usr
45 cp -a $_pkg/usr/sbin $fs/usr
46 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
47 cp -a $_pkg/usr/lib/cups $fs/usr/lib
48 cp -a $_pkg/usr/share/cups $fs/usr/share
49 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
50 cp -a $_pkg/var $fs
52 # We need the doc for CSS, images and help in the web interface.
53 cp -a $_pkg/usr/share/doc $fs/usr/share
55 # tazwok does not strip files other than .so in usr/lib
57 for dir in $fs/usr/lib/cups
58 do
59 if [ -d "$dir" ]; then
60 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
61 fi
62 done
64 # Daemon script
65 cp -a stuff/etc $fs
67 # compress some driver files, adopted from arch and fedora
68 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
70 }
72 # Start cups daemon and edit daemons.conf.
73 post_install()
74 {
75 local root
76 root=$1
77 if [ -z "$root" ]; then
78 /etc/init.d/cupsd start || continue
79 fi
80 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
81 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
82 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
83 echo '' >> $root/etc/daemons.conf
84 fi
85 }
87 # Stop cups daemon before rm.
88 pre_remove()
89 {
90 /etc/init.d/cupsd stop
91 }