wok-current annotate cups/receipt @ rev 2620
Fix: lighttpd-ssl bad initscript name.
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Tue Apr 14 16:46:45 2009 +0200 (2009-04-14) |
parents | f190c8bb12df |
children | cd2dbe78928e |
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" |
pascal@2610 | 8 DEPENDS="openssl slitaz-base-files gnutls ghostscript dbus jpeg libpng tiff \ |
pascal@2610 | 9 zlib libcomerr libkrb5" |
pankso@2206 | 10 BUILD_DEPENDS="openssl-dev gnutls-dev ghostscript dbus-dev" |
pankso@632 | 11 TARBALL="$PACKAGE-$VERSION-source.tar.bz2" |
pankso@632 | 12 WEB_SITE="http://www.cups.org/" |
pankso@632 | 13 WGET_URL="http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/cups/$VERSION/$TARBALL" |
pankso@632 | 14 |
pankso@632 | 15 # Rules to configure and make the package. |
pankso@632 | 16 compile_rules() |
pankso@632 | 17 { |
pankso@632 | 18 cd $src |
pankso@632 | 19 ./configure \ |
pankso@664 | 20 --prefix=/usr \ |
pankso@664 | 21 --sysconfdir=/etc \ |
pankso@664 | 22 --localstatedir=/var \ |
pankso@664 | 23 --mandir=/usr/share/man \ |
pankso@2207 | 24 --enable-static \ |
pankso@2206 | 25 --disable-ldap \ |
pascal@2282 | 26 --disable-pam \ |
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 |
pankso@632 | 33 } |
pankso@632 | 34 |
pankso@632 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@632 | 36 genpkg_rules() |
pankso@632 | 37 { |
pascal@2565 | 38 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps |
pankso@632 | 39 |
pankso@632 | 40 cp -a $_pkg/etc/cups $fs/etc |
pankso@2206 | 41 cp -a $_pkg/etc/dbus* $fs/etc |
pankso@632 | 42 cp -a $_pkg/usr/bin $fs/usr |
pankso@632 | 43 cp -a $_pkg/usr/sbin $fs/usr |
pankso@632 | 44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@632 | 45 cp -a $_pkg/usr/lib/cups $fs/usr/lib |
pankso@632 | 46 cp -a $_pkg/usr/share/cups $fs/usr/share |
pascal@2565 | 47 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png \ |
pascal@2565 | 48 $fs/usr/share/pixmaps |
pankso@632 | 49 cp -a $_pkg/var $fs |
pankso@2206 | 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 |
pankso@632 | 53 |
pankso@632 | 54 # Daemon script |
pankso@632 | 55 cp -a stuff/etc $fs |
pankso@632 | 56 } |
pankso@632 | 57 |
pankso@632 | 58 # Start cups daemon and edit daemons.conf. |
pankso@632 | 59 post_install() |
pankso@632 | 60 { |
pankso@632 | 61 local root |
pankso@632 | 62 root=$1 |
pascal@2219 | 63 if [ -z "$root" ]; then |
pascal@2219 | 64 /etc/init.d/cupsd start || continue |
pascal@2219 | 65 fi |
pankso@632 | 66 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pankso@632 | 67 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pankso@632 | 68 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pankso@632 | 69 echo '' >> $root/etc/daemons.conf |
pankso@632 | 70 fi |
pankso@632 | 71 } |
pankso@632 | 72 |
pankso@632 | 73 # Stop cups daemon before rm. |
pankso@632 | 74 pre_remove() |
pankso@632 | 75 { |
pankso@632 | 76 /etc/init.d/cupsd stop |
pankso@632 | 77 } |