wok annotate cups/receipt @ rev 17064

qt4-base: category=meta (empty package error), and try again to use link
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Thu Aug 21 23:48:43 2014 +0200 (2014-08-21)
parents ed3853c1fdf0
children 7937664be9cc
rev   line source
pankso@632 1 # SliTaz package receipt.
pankso@632 2
pankso@632 3 PACKAGE="cups"
slaxemulator@14626 4 VERSION="1.6.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
slaxemulator@14621 14 DEPENDS="libssl slitaz-base-files libgcrypt gnutls dbus jpeg libpng tiff zlib \
slaxemulator@14621 15 libcomerr cups-doc libkrb5 libcomerr3 gcc-lib-base libusb-compat libtasn1 acl poppler-apps"
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 {
pankso@632 23 cd $src
slaxemulator@14621 24 patch -Np1 -i $stuff/install-sh.u
pankso@632 25 ./configure \
pankso@664 26 --prefix=/usr \
pankso@664 27 --sysconfdir=/etc \
pankso@664 28 --localstatedir=/var \
pankso@664 29 --mandir=/usr/share/man \
pankso@2207 30 --enable-static \
pankso@2206 31 --disable-ldap \
pascal@2282 32 --disable-pam \
jozee@2761 33 --disable-gssapi \
jozee@4518 34 --disable-acl \
slaxemulator@6891 35 --disable-slp \
slaxemulator@6891 36 --enable-dbus \
slaxemulator@6891 37 --with-dbusdir=/etc/dbus-1 \
pankso@2206 38 --with-cups-user=nobody \
pankso@2206 39 --with-cups-group=nogroup \
pankso@15928 40 --with-languages="de es fr pt_BR ru" \
pascal@11153 41 --with-pdftops=pdftops \
pascal@1660 42 $CONFIGURE_ARGS &&
pascal@1660 43 make &&
slaxemulator@14621 44 make BUILDROOT=$DESTDIR install
pankso@3601 45
pankso@632 46 }
pankso@632 47
pankso@632 48 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@632 49 genpkg_rules()
pankso@632 50 {
pascal@2565 51 mkdir -p $fs/etc $fs/usr/lib $fs/usr/share/pixmaps
pankso@3601 52
slaxemulator@14621 53 cp -a $install/etc/cups $fs/etc
slaxemulator@14621 54 cp -a $install/etc/dbus* $fs/etc
slaxemulator@14621 55 cp -a $install/usr/bin $fs/usr
slaxemulator@14621 56 cp -a $install/usr/sbin $fs/usr
slaxemulator@14621 57 cp -a $install/usr/lib/*.so* $fs/usr/lib
slaxemulator@14621 58 cp -a $install/usr/lib/cups $fs/usr/lib
slaxemulator@14621 59 cp -a $install/usr/share/cups $fs/usr/share
slaxemulator@14621 60 cp -a $install/usr/share/icons/hicolor/32x32/apps/cups.png $fs/usr/share/pixmaps
slaxemulator@14621 61 cp -a $install/var $fs
pankso@3601 62
pankso@632 63 # Daemon script
pankso@9697 64 cp -a $stuff/etc $fs
pascal@14906 65
pascal@14906 66 # Tazpanel link
pascal@14906 67 cp -a $stuff/var $fs
pankso@632 68 }
pankso@632 69
pankso@632 70 # Start cups daemon and edit daemons.conf.
pankso@632 71 post_install()
pankso@632 72 {
pankso@632 73 local root
pankso@632 74 root=$1
pascal@15660 75 if [ -z "$root" -a ! -s /aufs-umount.sh ]; then
pascal@2219 76 /etc/init.d/cupsd start || continue
pascal@2219 77 fi
pankso@632 78 if ! grep -q ^CUPSD_OPTIONS $root/etc/daemons.conf; then
pankso@632 79 echo '# Cups printing daemon options.' >> $root/etc/daemons.conf
pankso@632 80 echo 'CUPSD_OPTIONS=""' >> $root/etc/daemons.conf
pankso@632 81 echo '' >> $root/etc/daemons.conf
pankso@632 82 fi
pankso@632 83 }
pankso@632 84
pankso@632 85 # Stop cups daemon before rm.
pankso@632 86 pre_remove()
pankso@632 87 {
slaxemulator@14621 88 local root
slaxemulator@14621 89 root=$1
slaxemulator@14621 90 if [ -z "$root" ]; then
slaxemulator@14621 91 /etc/init.d/cupsd stop
slaxemulator@14621 92 fi
pankso@632 93 }
pascal@8875 94
pascal@8875 95 # Overlap busybox
pascal@8875 96 pre_install()
pascal@8875 97 {
pascal@8875 98 rm -f $1/usr/bin/lpr
pascal@8875 99 }
pascal@8875 100
pascal@8875 101 post_remove()
pascal@8875 102 {
slaxemulator@14621 103 ln -s /bin/busybox $1/usr/bin/lpr
pascal@8875 104 }