wok-next annotate cups/receipt @ rev 18803
firefox-official: allow updates; misc tiny edits
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue Jan 12 19:09:34 2016 +0200 (2016-01-12) |
parents | 77dc6129b023 |
children | 9382538ce463 |
rev | line source |
---|---|
pankso@632 | 1 # SliTaz package receipt. |
pankso@632 | 2 |
pankso@632 | 3 PACKAGE="cups" |
mojo@17822 | 4 VERSION="2.0.2" |
pankso@632 | 5 CATEGORY="system-tools" |
pankso@632 | 6 SHORT_DESC="Common UNIX Printing System." |
erjo@784 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@15198 | 8 LICENSE="GPL2 LGPL2" |
pankso@632 | 9 TARBALL="$PACKAGE-$VERSION-source.tar.bz2" |
pankso@632 | 10 WEB_SITE="http://www.cups.org/" |
slaxemulator@14626 | 11 WGET_URL="http://www.cups.org/software/$VERSION/$TARBALL" |
jozee@4933 | 12 TAGS="printer printing" |
pankso@632 | 13 |
al@18755 | 14 DEPENDS="libssl dbus libcomerr cups-doc libkrb5 libusb-compat poppler-apps \ |
al@18755 | 15 cups-filters libcups" |
slaxemulator@14621 | 16 BUILD_DEPENDS="libgcrypt-dev gnutls-dev dbus-dev jpeg-dev libpng-dev \ |
slaxemulator@14621 | 17 tiff-dev zlib-dev libtasn1-dev openssl-dev libusb-compat-dev php-dev \ |
slaxemulator@14621 | 18 acl-dev poppler-apps" |
slaxemulator@14621 | 19 |
pankso@632 | 20 # Rules to configure and make the package. |
pankso@632 | 21 compile_rules() |
pankso@632 | 22 { |
slaxemulator@14621 | 23 patch -Np1 -i $stuff/install-sh.u |
pankso@632 | 24 ./configure \ |
pankso@664 | 25 --prefix=/usr \ |
pankso@664 | 26 --sysconfdir=/etc \ |
pankso@664 | 27 --localstatedir=/var \ |
pankso@664 | 28 --mandir=/usr/share/man \ |
pankso@2207 | 29 --enable-static \ |
pankso@2206 | 30 --disable-ldap \ |
pascal@2282 | 31 --disable-pam \ |
jozee@2761 | 32 --disable-gssapi \ |
jozee@4518 | 33 --disable-acl \ |
slaxemulator@6891 | 34 --disable-slp \ |
slaxemulator@6891 | 35 --enable-dbus \ |
slaxemulator@6891 | 36 --with-dbusdir=/etc/dbus-1 \ |
pankso@2206 | 37 --with-cups-user=nobody \ |
pankso@2206 | 38 --with-cups-group=nogroup \ |
pankso@15928 | 39 --with-languages="de es fr pt_BR ru" \ |
pascal@11153 | 40 --with-pdftops=pdftops \ |
pascal@1660 | 41 $CONFIGURE_ARGS && |
pascal@1660 | 42 make && |
slaxemulator@14621 | 43 make BUILDROOT=$DESTDIR install |
al@18716 | 44 cp -f $stuff/cups.desktop $install/usr/share/applications/cups.desktop |
pankso@632 | 45 } |
pankso@632 | 46 |
pankso@632 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@632 | 48 genpkg_rules() |
pankso@632 | 49 { |
al@18716 | 50 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share |
pankso@3601 | 51 |
slaxemulator@14621 | 52 cp -a $install/etc/cups $fs/etc |
slaxemulator@14621 | 53 cp -a $install/etc/dbus* $fs/etc |
slaxemulator@14621 | 54 cp -a $install/usr/bin $fs/usr |
slaxemulator@14621 | 55 cp -a $install/usr/sbin $fs/usr |
slaxemulator@14621 | 56 cp -a $install/usr/lib/*.so* $fs/usr/lib |
slaxemulator@14621 | 57 cp -a $install/usr/lib/cups $fs/usr/lib |
slaxemulator@14621 | 58 cp -a $install/usr/share/cups $fs/usr/share |
al@18716 | 59 cp -a $install/usr/share/icons $fs/usr/share |
slaxemulator@14621 | 60 cp -a $install/var $fs |
pankso@3601 | 61 |
al@18716 | 62 # Remove files provided by cups-filters |
al@18716 | 63 rm -f $fs/usr/share/cups/banners/* |
al@18716 | 64 rm -f $fs/usr/share/cups/data/testprint |
al@18716 | 65 |
al@18716 | 66 # Remove files provided by libcups |
al@18716 | 67 rm -f $fs/usr/lib/libcups.so* |
al@18716 | 68 |
pankso@632 | 69 # Daemon script |
pankso@9697 | 70 cp -a $stuff/etc $fs |
pascal@14906 | 71 |
al@18716 | 72 # TazPanel link |
pascal@14906 | 73 cp -a $stuff/var $fs |
pankso@632 | 74 } |
pankso@632 | 75 |
pankso@632 | 76 post_install() |
pankso@632 | 77 { |
al@18716 | 78 # Start CUPS daemon and edit daemons.conf |
al@18716 | 79 if [ -z "$1" -a ! -s /aufs-umount.sh ]; then |
pascal@2219 | 80 /etc/init.d/cupsd start || continue |
pascal@2219 | 81 fi |
al@18716 | 82 if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then |
al@18716 | 83 cat >> "$1/etc/daemons.conf" <<EOT |
al@18716 | 84 # CUPS printing daemon options. |
al@18716 | 85 CUPSD_OPTIONS="" |
al@18716 | 86 |
al@18716 | 87 EOT |
pankso@632 | 88 fi |
pankso@632 | 89 } |
pankso@632 | 90 |
pankso@632 | 91 pre_remove() |
pankso@632 | 92 { |
al@18716 | 93 # Stop CUPS daemon before rm. |
al@18716 | 94 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop |
al@18716 | 95 : |
pascal@8875 | 96 } |
pascal@8875 | 97 |
pascal@8875 | 98 post_remove() |
pascal@8875 | 99 { |
al@18716 | 100 ln -s /bin/busybox "$1/usr/bin/lpr" |
pascal@8875 | 101 } |