wok annotate cups/receipt @ rev 2888

Add: Ario. GTK client for MPD
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue May 05 01:50:51 2009 +0200 (2009-05-05)
parents 2fcd109566e7
children aab008b12bb3
rev   line source
pankso@632 1 # SliTaz package receipt.
pankso@632 2
pankso@632 3 PACKAGE="cups"
pascal@2774 4 VERSION="1.3.10"
pankso@632 5 CATEGORY="system-tools"
pankso@632 6 SHORT_DESC="Common UNIX Printing System."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
jozee@2761 8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff zlib libcomerr libkrb5"
jozee@2761 9 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls"
pankso@632 10 TARBALL="$PACKAGE-$VERSION-source.tar.bz2"
pankso@632 11 WEB_SITE="http://www.cups.org/"
pankso@632 12 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL"
pankso@632 13
pankso@632 14 # Rules to configure and make the package.
pankso@632 15 compile_rules()
pankso@632 16 {
pankso@632 17 cd $src
pankso@632 18 ./configure \
pankso@664 19 --prefix=/usr \
pankso@664 20 --sysconfdir=/etc \
pankso@664 21 --localstatedir=/var \
pankso@664 22 --mandir=/usr/share/man \
pankso@2207 23 --enable-static \
pankso@2206 24 --disable-ldap \
pascal@2282 25 --disable-pam \
jozee@2761 26 --disable-gssapi \
pankso@2206 27 --with-cups-user=nobody \
pankso@2206 28 --with-cups-group=nogroup \
pankso@2206 29 --with-languages="de es fr" \
pascal@1660 30 $CONFIGURE_ARGS &&
pascal@1660 31 make &&
pankso@664 32 make BUILDROOT=$PWD/_pkg install
jozee@2761 33
pankso@632 34 }
pankso@632 35
pankso@632 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@632 37 genpkg_rules()
pankso@632 38 {
pascal@2565 39 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
pankso@632 40
pankso@632 41 cp -a $_pkg/etc/cups $fs/etc
pankso@2206 42 cp -a $_pkg/etc/dbus* $fs/etc
pankso@632 43 cp -a $_pkg/usr/bin $fs/usr
pankso@632 44 cp -a $_pkg/usr/sbin $fs/usr
pankso@632 45 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@632 46 cp -a $_pkg/usr/lib/cups $fs/usr/lib
pankso@632 47 cp -a $_pkg/usr/share/cups $fs/usr/share
jozee@2761 48 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
jozee@2764 49 cp -a $_pkg/var $fs
jozee@2761 50
pankso@2206 51 # We need the doc for CSS, images and help in the web interface.
pankso@2206 52 cp -a $_pkg/usr/share/doc $fs/usr/share
jozee@2761 53
jozee@2761 54 # tazwok does not strip files other than .so in usr/lib
jozee@2761 55
jozee@2761 56 for dir in $fs/usr/lib/cups
jozee@2761 57 do
jozee@2761 58 if [ -d "$dir" ]; then
jozee@2761 59 find $dir -type f -exec strip -s '{}' 2>/dev/null \;
jozee@2761 60 fi
jozee@2761 61 done
jozee@2761 62
pankso@632 63 # Daemon script
pankso@632 64 cp -a stuff/etc $fs
pankso@632 65 }
pankso@632 66
pankso@632 67 # Start cups daemon and edit daemons.conf.
pankso@632 68 post_install()
pankso@632 69 {
pankso@632 70 local root
pankso@632 71 root=$1
pascal@2219 72 if [ -z "$root" ]; then
pascal@2219 73 /etc/init.d/cupsd start || continue
pascal@2219 74 fi
pankso@632 75 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
pankso@632 76 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
pankso@632 77 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
pankso@632 78 echo '' >> $root/etc/daemons.conf
pankso@632 79 fi
pankso@632 80 }
pankso@632 81
pankso@632 82 # Stop cups daemon before rm.
pankso@632 83 pre_remove()
pankso@632 84 {
pankso@632 85 /etc/init.d/cupsd stop
pankso@632 86 }