wok annotate cups/receipt @ rev 2207

cups: we need --enable-static for devel package
author Christophe Lincoln <pankso@slitaz.org>
date Tue Feb 10 16:45:43 2009 +0100 (2009-02-10)
parents 2d810185f0ce
children 06e49b6e4420
rev   line source
pankso@632 1 # SliTaz package receipt.
pankso@632 2
pankso@632 3 PACKAGE="cups"
pankso@2206 4 VERSION="1.3.9"
pankso@632 5 CATEGORY="system-tools"
pankso@632 6 SHORT_DESC="Common UNIX Printing System."
erjo@784 7 MAINTAINER="erjo@slitaz.org"
pankso@2206 8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus"
pankso@2206 9 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev"
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 \
pankso@2206 25 --with-cups-user=nobody \
pankso@2206 26 --with-cups-group=nogroup \
pankso@2206 27 --with-languages="de es fr" \
pascal@1660 28 $CONFIGURE_ARGS &&
pascal@1660 29 make &&
pankso@664 30 make BUILDROOT=$PWD/_pkg install
pankso@632 31 }
pankso@632 32
pankso@632 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@632 34 genpkg_rules()
pankso@632 35 {
pankso@632 36 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
pankso@632 37
pankso@632 38 cp -a $_pkg/etc/cups $fs/etc
pankso@2206 39 cp -a $_pkg/etc/dbus* $fs/etc
pankso@632 40 cp -a $_pkg/usr/bin $fs/usr
pankso@632 41 cp -a $_pkg/usr/sbin $fs/usr
pankso@632 42 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@632 43 cp -a $_pkg/usr/lib/cups $fs/usr/lib
pankso@632 44 cp -a $_pkg/usr/share/cups $fs/usr/share
pankso@632 45 cp -a $_pkg/var $fs
pankso@2206 46
pankso@2206 47 # We need the doc for CSS, images and help in the web interface.
pankso@2206 48 cp -a $_pkg/usr/share/doc $fs/usr/share
pankso@632 49
pankso@632 50 # Daemon script
pankso@632 51 cp -a stuff/etc $fs
pankso@632 52 }
pankso@632 53
pankso@632 54 # Start cups daemon and edit daemons.conf.
pankso@632 55 post_install()
pankso@632 56 {
pankso@632 57 /etc/init.d/cupsd start || continue
pankso@632 58
pankso@632 59 local root
pankso@632 60 root=$1
pankso@632 61 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
pankso@632 62 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
pankso@632 63 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
pankso@632 64 echo '' >> $root/etc/daemons.conf
pankso@632 65 fi
pankso@632 66 }
pankso@632 67
pankso@632 68 # Stop cups daemon before rm.
pankso@632 69 pre_remove()
pankso@632 70 {
pankso@632 71 /etc/init.d/cupsd stop
pankso@632 72 }