wok view cups/receipt @ rev 4662
Up: squid* (3.0STABLE21)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Mon Dec 28 23:47:55 2009 +0100 (2009-12-28) |
parents | c6c606632d4f |
children | f7e96b8e3444 |
line source
1 # SliTaz package receipt.
3 PACKAGE="cups"
4 VERSION="1.4.2"
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 php-dev"
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 --disable-acl \
29 --disable-slp \
30 --with-cups-user=nobody \
31 --with-cups-group=nogroup \
32 --with-languages="de es fr" \
33 $CONFIGURE_ARGS &&
34 make &&
35 make BUILDROOT=$PWD/_pkg install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
44 cp -a $_pkg/etc/cups $fs/etc
45 cp -a $_pkg/etc/dbus* $fs/etc
46 cp -a $_pkg/usr/bin $fs/usr
47 cp -a $_pkg/usr/sbin $fs/usr
48 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
49 cp -a $_pkg/usr/lib/cups $fs/usr/lib
50 cp -a $_pkg/usr/share/cups $fs/usr/share
51 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
52 cp -a $_pkg/var $fs
54 # We need the doc for CSS, images and help in the web interface.
55 cp -a $_pkg/usr/share/doc $fs/usr/share
57 # tazwok does not strip files other than .so in usr/lib
59 for dir in $fs/usr/lib/cups
60 do
61 if [ -d "$dir" ]; then
62 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
63 fi
64 done
66 # Daemon script
67 cp -a stuff/etc $fs
69 # compress some driver files, adopted from arch and fedora
70 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9
72 }
74 # Start cups daemon and edit daemons.conf.
75 post_install()
76 {
77 local root
78 root=$1
79 if [ -z "$root" ]; then
80 /etc/init.d/cupsd start || continue
81 fi
82 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
83 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
84 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
85 echo '' >> $root/etc/daemons.conf
86 fi
87 }
89 # Stop cups daemon before rm.
90 pre_remove()
91 {
92 /etc/init.d/cupsd stop
93 }