# HG changeset patch # User Rohit Joshi # Date 1240760506 0 # Node ID cd2dbe78928e3479e628c044028705af5af3fce5 # Parent 3a4d65af326e33c2ad8a4d3ff64e2912b8cf9aff Cups: reduce size (strip cups /usr/lib) diff -r 3a4d65af326e -r cd2dbe78928e cups/receipt --- a/cups/receipt Sun Apr 26 21:12:53 2009 +0200 +++ b/cups/receipt Sun Apr 26 15:41:46 2009 +0000 @@ -5,9 +5,8 @@ CATEGORY="system-tools" SHORT_DESC="Common UNIX Printing System." MAINTAINER="erjo@slitaz.org" -DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff \ -zlib libcomerr libkrb5" -BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev" +DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff zlib libcomerr libkrb5" +BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls" TARBALL="$PACKAGE-$VERSION-source.tar.bz2" WEB_SITE="http://www.cups.org/" WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL" @@ -24,12 +23,14 @@ --enable-static \ --disable-ldap \ --disable-pam \ + --disable-gssapi \ --with-cups-user=nobody \ --with-cups-group=nogroup \ --with-languages="de es fr" \ $CONFIGURE_ARGS && make && make BUILDROOT=$PWD/_pkg install + } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -44,13 +45,24 @@ cp -a $_pkg/usr/lib/*.so* $fs/usr/lib cp -a $_pkg/usr/lib/cups $fs/usr/lib cp -a $_pkg/usr/share/cups $fs/usr/share - cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png \ - $fs/usr/share/pixmaps + cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps cp -a $_pkg/var $fs + # We need the doc for CSS, images and help in the web interface. cp -a $_pkg/usr/share/doc $fs/usr/share + + # tazwok does not strip files other than .so in usr/lib + # --strip-all Binaries. + + for dir in $fs/usr/lib/cups + do + if [ -d "$dir" ]; then + find $dir -type f -exec strip -s '{}' 2>/dev/null \; + fi + done + # Daemon script cp -a stuff/etc $fs }