wok-stable annotate cups/receipt @ rev 4377
alpine: link shared libs (again)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Mon Oct 12 21:05:53 2009 +0000 (2009-10-12) |
parents | c59c6a95f2d0 |
children | c42b0b06934d |
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" |
pankso@3601 | 8 DEPENDS="openssl slitaz-base-files gnutls dbus jpeg libpng tiff zlib \ |
pankso@3601 | 9 libcomerr libkrb5" |
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" |
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 \ |
jozee@2761 | 27 --disable-gssapi \ |
pankso@2206 | 28 --with-cups-user=nobody \ |
pankso@2206 | 29 --with-cups-group=nogroup \ |
pankso@2206 | 30 --with-languages="de es fr" \ |
pascal@1660 | 31 $CONFIGURE_ARGS && |
pascal@1660 | 32 make && |
pankso@664 | 33 make BUILDROOT=$PWD/_pkg install |
pankso@3601 | 34 |
pankso@632 | 35 } |
pankso@632 | 36 |
pankso@632 | 37 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@632 | 38 genpkg_rules() |
pankso@632 | 39 { |
pascal@2565 | 40 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps |
pankso@3601 | 41 |
pankso@632 | 42 cp -a $_pkg/etc/cups $fs/etc |
pankso@2206 | 43 cp -a $_pkg/etc/dbus* $fs/etc |
pankso@632 | 44 cp -a $_pkg/usr/bin $fs/usr |
pankso@632 | 45 cp -a $_pkg/usr/sbin $fs/usr |
pankso@632 | 46 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@632 | 47 cp -a $_pkg/usr/lib/cups $fs/usr/lib |
pankso@632 | 48 cp -a $_pkg/usr/share/cups $fs/usr/share |
jozee@2761 | 49 cp -a $_pkg/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps |
pankso@3601 | 50 cp -a $_pkg/var $fs |
pankso@3601 | 51 |
pankso@2206 | 52 # We need the doc for CSS, images and help in the web interface. |
pankso@2206 | 53 cp -a $_pkg/usr/share/doc $fs/usr/share |
pankso@3601 | 54 |
jozee@2761 | 55 # tazwok does not strip files other than .so in usr/lib |
pankso@3601 | 56 |
jozee@2761 | 57 for dir in $fs/usr/lib/cups |
jozee@2761 | 58 do |
jozee@2761 | 59 if [ -d "$dir" ]; then |
jozee@2761 | 60 find $dir -type f -exec strip -s '{}' 2>/dev/null \; |
jozee@2761 | 61 fi |
jozee@2761 | 62 done |
pankso@3601 | 63 |
pankso@632 | 64 # Daemon script |
pankso@632 | 65 cp -a stuff/etc $fs |
pankso@3601 | 66 |
jozee@3469 | 67 # compress some driver files, adopted from arch and fedora |
jozee@3469 | 68 find $fs/usr/share/cups/model -name "*.ppd" | xargs gzip -n9 |
jozee@3469 | 69 |
pankso@632 | 70 } |
pankso@632 | 71 |
pankso@632 | 72 # Start cups daemon and edit daemons.conf. |
pankso@632 | 73 post_install() |
pankso@632 | 74 { |
pankso@632 | 75 local root |
pankso@632 | 76 root=$1 |
pascal@2219 | 77 if [ -z "$root" ]; then |
pascal@2219 | 78 /etc/init.d/cupsd start || continue |
pascal@2219 | 79 fi |
pankso@632 | 80 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then |
pankso@632 | 81 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf |
pankso@632 | 82 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf |
pankso@632 | 83 echo '' >> $root/etc/daemons.conf |
pankso@632 | 84 fi |
pankso@632 | 85 } |
pankso@632 | 86 |
pankso@632 | 87 # Stop cups daemon before rm. |
pankso@632 | 88 pre_remove() |
pankso@632 | 89 { |
pankso@632 | 90 /etc/init.d/cupsd stop |
pankso@632 | 91 } |