wok-4.x view cups/receipt @ rev 2761
Cups: reduce size (strip cups /usr/lib)
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Sun Apr 26 15:41:46 2009 +0000 (2009-04-26) |
parents | 494005a36f9a |
children | 2fcd109566e7 |
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 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
52 # We need the doc for CSS, images and help in the web interface.
53 cp -a $_pkg/usr/share/doc $fs/usr/share
56 # tazwok does not strip files other than .so in usr/lib
57 # --strip-all Binaries.
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
68 }
70 # Start cups daemon and edit daemons.conf.
71 post_install()
72 {
73 local root
74 root=$1
75 if [ -z "$root" ]; then
76 /etc/init.d/cupsd start || continue
77 fi
78 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
79 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
80 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
81 echo '' >> $root/etc/daemons.conf
82 fi
83 }
85 # Stop cups daemon before rm.
86 pre_remove()
87 {
88 /etc/init.d/cupsd stop
89 }