wok annotate cups/receipt @ rev 19201

Add gtkspell3
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jun 09 13:36:10 2016 +0300 (2016-06-09)
parents b08da1a20c23
children 13806712bef0
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@19183 71 sed -i 's|^#Group .*|Group lp|' $fs/etc/cups/cups-files.conf
pascal@14906 72
al@18716 73 # TazPanel link
pascal@14906 74 cp -a $stuff/var $fs
pascal@19181 75
pascal@19183 76 sed -i 's|hostname:9100|&\n\n parallel:/dev/usb/lp0|' \
pascal@19181 77 $fs/usr/share/cups/templates/choose-uri.tmpl
pankso@632 78 }
pankso@632 79
pankso@632 80 post_install()
pankso@632 81 {
al@18716 82 # Start CUPS daemon and edit daemons.conf
al@18716 83 if [ -z "$1" -a ! -s /aufs-umount.sh ]; then
pascal@2219 84 /etc/init.d/cupsd start || continue
pascal@2219 85 fi
pascal@19030 86 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
al@18716 87 if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then
al@18716 88 cat >> "$1/etc/daemons.conf" <<EOT
al@18716 89 # CUPS printing daemon options.
al@18716 90 CUPSD_OPTIONS=""
al@18716 91
al@18716 92 EOT
pankso@632 93 fi
pankso@632 94 }
pankso@632 95
pankso@632 96 pre_remove()
pankso@632 97 {
al@18716 98 # Stop CUPS daemon before rm.
al@18716 99 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop
al@18716 100 :
pascal@8875 101 }
pascal@8875 102
pascal@8875 103 post_remove()
pascal@8875 104 {
al@18716 105 ln -s /bin/busybox "$1/usr/bin/lpr"
pascal@8875 106 }