wok-6.x 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 | 3a4d65af326e |
children | a22540dbc257 |
files | cups/receipt |
line diff
1.1 --- a/cups/receipt Sun Apr 26 21:12:53 2009 +0200 1.2 +++ b/cups/receipt Sun Apr 26 15:41:46 2009 +0000 1.3 @@ -5,9 +5,8 @@ 1.4 CATEGORY="system-tools" 1.5 SHORT_DESC="Common UNIX Printing System." 1.6 MAINTAINER="erjo@slitaz.org" 1.7 -DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff \ 1.8 -zlib libcomerr libkrb5" 1.9 -BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev" 1.10 +DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff zlib libcomerr libkrb5" 1.11 +BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls" 1.12 TARBALL="$PACKAGE-$VERSION-source.tar.bz2" 1.13 WEB_SITE="http://www.cups.org/" 1.14 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL" 1.15 @@ -24,12 +23,14 @@ 1.16 --enable-static \ 1.17 --disable-ldap \ 1.18 --disable-pam \ 1.19 + --disable-gssapi \ 1.20 --with-cups-user=nobody \ 1.21 --with-cups-group=nogroup \ 1.22 --with-languages="de es fr" \ 1.23 $CONFIGURE_ARGS && 1.24 make && 1.25 make BUILDROOT=$PWD/_pkg install 1.26 + 1.27 } 1.28 1.29 # Rules to gen a SliTaz package suitable for Tazpkg. 1.30 @@ -44,13 +45,24 @@ 1.31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib 1.32 cp -a $_pkg/usr/lib/cups $fs/usr/lib 1.33 cp -a $_pkg/usr/share/cups $fs/usr/share 1.34 - cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png \ 1.35 - $fs/usr/share/pixmaps 1.36 + cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps 1.37 cp -a $_pkg/var $fs 1.38 1.39 + 1.40 # We need the doc for CSS, images and help in the web interface. 1.41 cp -a $_pkg/usr/share/doc $fs/usr/share 1.42 + 1.43 1.44 + # tazwok does not strip files other than .so in usr/lib 1.45 + # --strip-all Binaries. 1.46 + 1.47 + for dir in $fs/usr/lib/cups 1.48 + do 1.49 + if [ -d "$dir" ]; then 1.50 + find $dir -type f -exec strip -s '{}' 2>/dev/null \; 1.51 + fi 1.52 + done 1.53 + 1.54 # Daemon script 1.55 cp -a stuff/etc $fs 1.56 }