wok annotate cups/receipt @ rev 6498
Up: libv4l, libv4l-dev to 0.8.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 01 04:09:43 2010 +0000 (2010-10-01) |
parents | b68b4f934ba7 |
children | 500aaeee12ad |
rev | line source |
---|---|
pankso@632 | 1 # SliTaz package receipt. |
pankso@632 | 2 |
pankso@632 | 3 PACKAGE="cups" |
slaxemulator@6190 | 4 VERSION="1.4.4" |
pankso@632 | 5 CATEGORY="system-tools" |
pankso@632 | 6 SHORT_DESC="Common UNIX Printing System." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pankso@3601 | 8 DEPENDS="openssl slitaz-base-files gnutls dbus jpeg libpng tiff zlib \ |
pascal@5026 | 9 libcomerr libkrb5 gcc-lib-base libusb libtasn1" |
pascal@4287 | 10 BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev gnutls php-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" |
jozee@4933 | 14 TAGS="printer printing" |
pankso@632 | 15 |
pankso@632 | 16 # Rules to configure and make the package. |
pankso@632 | 17 compile_rules() |
pankso@632 | 18 { |
pankso@632 | 19 cd $src |
pankso@632 | 20 ./configure \ |
pankso@664 | 21 --prefix=/usr \ |
pankso@664 | 22 --sysconfdir=/etc \ |
pankso@664 | 23 --localstatedir=/var \ |
pankso@664 | 24 --mandir=/usr/share/man \ |
pankso@2207 | 25 --enable-static \ |
pankso@2206 | 26 --disable-ldap \ |
pascal@2282 | 27 --disable-pam \ |
jozee@2761 | 28 --disable-gssapi \ |
jozee@4518 | 29 --disable-acl \ |
jozee@4518 | 30 --disable-slp \ |
pankso@2206 | 31 --with-cups-user=nobody \ |
pankso@2206 | 32 --with-cups-group=nogroup \ |
pankso@2206 | 33 --with-languages="de es fr" \ |
pascal@1660 | 34 $CONFIGURE_ARGS && |
pascal@1660 | 35 make && |
pankso@664 | 36 make BUILDROOT=$PWD/_pkg install |
pankso@3601 | 37 |
pankso@632 | 38 } |
pankso@632 | 39 |
pankso@632 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@632 | 41 genpkg_rules() |
pankso@632 | 42 { |
pascal@2565 | 43 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps |
pankso@3601 | 44 |
pankso@632 | 45 cp -a $_pkg/etc/cups $fs/etc |
pankso@2206 | 46 cp -a $_pkg/etc/dbus* $fs/etc |
pankso@632 | 47 cp -a $_pkg/usr/bin $fs/usr |
pankso@632 | 48 cp -a $_pkg/usr/sbin $fs/usr |
pankso@632 | 49 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@632 | 50 cp -a $_pkg/usr/lib/cups $fs/usr/lib |
pankso@632 | 51 cp -a $_pkg/usr/share/cups $fs/usr/share |
jozee@2761 | 52 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps |
pankso@3601 | 53 cp -a $_pkg/var $fs |
pankso@3601 | 54 |
pankso@2206 | 55 # We need the doc for CSS, images and help in the web interface. |
pankso@2206 | 56 cp -a $_pkg/usr/share/doc $fs/usr/share |
pankso@3601 | 57 |
jozee@2761 | 58 # tazwok does not strip files other than .so in usr/lib |
pankso@3601 | 59 |
jozee@2761 | 60 for dir in $fs/usr/lib/cups |
jozee@2761 | 61 do |
jozee@2761 | 62 if [ -d "$dir" ]; then |
jozee@2761 | 63 find $dir -type f -exec strip -s '{}' 2>/dev/null \; |
jozee@2761 | 64 fi |
jozee@2761 | 65 done |
pankso@3601 | 66 |
pankso@632 | 67 # Daemon script |
pankso@632 | 68 cp -a stuff/etc $fs |
pankso@3601 | 69 |
jozee@3469 | 70 # compress some driver files, adopted from arch and fedora |
jozee@3469 | 71 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9 |
jozee@3469 | 72 |
pankso@632 | 73 } |
pankso@632 | 74 |
pankso@632 | 75 # Start cups daemon and edit daemons.conf. |
pankso@632 | 76 post_install() |
pankso@632 | 77 { |
pankso@632 | 78 local root |
pankso@632 | 79 root=$1 |
pascal@2219 | 80 if [ -z "$root" ]; then |
pascal@2219 | 81 /etc/init.d/cupsd start || continue |
pascal@2219 | 82 fi |
pankso@632 | 83 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pankso@632 | 84 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pankso@632 | 85 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pankso@632 | 86 echo '' >> $root/etc/daemons.conf |
pankso@632 | 87 fi |
pankso@632 | 88 } |
pankso@632 | 89 |
pankso@632 | 90 # Stop cups daemon before rm. |
pankso@632 | 91 pre_remove() |
pankso@632 | 92 { |
pankso@632 | 93 /etc/init.d/cupsd stop |
pankso@632 | 94 } |