wok-6.x annotate cups/receipt @ rev 22801
Up xsane (0.999)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 27 16:39:27 2020 +0100 (2020-01-27) |
parents | a78610b2eb47 |
children | 37d8597570cc |
rev | line source |
---|---|
pankso@632 | 1 # SliTaz package receipt. |
pankso@632 | 2 |
pankso@632 | 3 PACKAGE="cups" |
Hans-G?nter@22620 | 4 VERSION="2.3.1" |
pankso@632 | 5 CATEGORY="system-tools" |
Hans-G?nter@22620 | 6 TAGS="printer printing" |
pankso@632 | 7 SHORT_DESC="Common UNIX Printing System." |
erjo@784 | 8 MAINTAINER="erjo@slitaz.org" |
pascal@15198 | 9 LICENSE="GPL2 LGPL2" |
pascal@20669 | 10 WEB_SITE="https://www.cups.org/" |
pankso@632 | 11 |
Hans-G?nter@22620 | 12 TARBALL="$PACKAGE-$VERSION-source.tar.gz" |
Hans-G?nter@22620 | 13 WGET_URL="https://github.com/apple/$PACKAGE/releases/download/v$VERSION/$TARBALL" |
Hans-G?nter@22620 | 14 |
Hans-G?nter@22620 | 15 DEPENDS="cups-doc cups-filters dbus libcomerr libcups libkrb5 libssl |
Hans-G?nter@22620 | 16 libusb-compat poppler-apps" |
Hans-G?nter@22620 | 17 BUILD_DEPENDS="acl-dev dbus-dev gnutls-dev jpeg-dev libgcrypt-dev |
Hans-G?nter@22620 | 18 libgnutls libpng-dev libtasn1-dev libusb-compat-dev openssl-dev |
Hans-G?nter@22620 | 19 php-dev poppler-apps tiff-dev zlib-dev" |
slaxemulator@14621 | 20 |
pankso@632 | 21 # Rules to configure and make the package. |
pankso@632 | 22 compile_rules() |
pankso@632 | 23 { |
Hans-G?nter@22620 | 24 # patch -Np1 -i $stuff/install-sh.u |
Hans-G?nter@22620 | 25 |
Hans-G?nter@22620 | 26 export LDFLAGS="$LDFLAGS -lrt" |
Hans-G?nter@22620 | 27 |
Hans-G?nter@22620 | 28 # Set list of wanted locales in LOCALE_PACK |
Hans-G?nter@22620 | 29 . $WOK/slitaz-i18n/stuff/locale-pack.conf |
Hans-G?nter@22620 | 30 |
Hans-G?nter@22620 | 31 # <= 2.0.2 unrecognised |
Hans-G?nter@22620 | 32 # --disable-ldap |
Hans-G?nter@22620 | 33 # --disable-slp |
Hans-G?nter@22620 | 34 # --with-pdftops=pdftops |
Hans-G?nter@22620 | 35 |
Hans-G?nter@22620 | 36 ./configure \ |
Hans-G?nter@22620 | 37 --prefix=/usr \ |
Hans-G?nter@22620 | 38 --sysconfdir=/etc \ |
Hans-G?nter@22620 | 39 --localstatedir=/var \ |
Hans-G?nter@22620 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@22620 | 41 --enable-static \ |
Hans-G?nter@22620 | 42 --disable-pam \ |
Hans-G?nter@22620 | 43 --disable-gssapi \ |
Hans-G?nter@22620 | 44 --disable-acl \ |
Hans-G?nter@22620 | 45 --enable-dbus \ |
Hans-G?nter@22620 | 46 --with-dbusdir=/etc/dbus-1 \ |
Hans-G?nter@22620 | 47 --with-cups-user=nobody \ |
Hans-G?nter@22620 | 48 --with-cups-group=nogroup \ |
Hans-G?nter@22620 | 49 --with-languages="$LOCALE_PACK" \ |
pascal@1660 | 50 $CONFIGURE_ARGS && |
pascal@1660 | 51 make && |
slaxemulator@14621 | 52 make BUILDROOT=$DESTDIR install |
Hans-G?nter@22620 | 53 |
Hans-G?nter@22620 | 54 cp -f $stuff/cups.desktop \ |
Hans-G?nter@22620 | 55 $install/usr/share/applications/cups.desktop |
pankso@632 | 56 } |
pankso@632 | 57 |
pankso@632 | 58 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@632 | 59 genpkg_rules() |
pankso@632 | 60 { |
Hans-G?nter@22620 | 61 mkdir -p $fs/etc |
Hans-G?nter@22620 | 62 mkdir -p $fs/usr/lib |
Hans-G?nter@22620 | 63 mkdir -p $fs/usr/share |
pankso@3601 | 64 |
Hans-G?nter@22620 | 65 cp -a $install/etc/cups $fs/etc |
Hans-G?nter@22620 | 66 cp -a $install/etc/dbus* $fs/etc |
Hans-G?nter@22620 | 67 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22620 | 68 cp -a $install/usr/sbin $fs/usr |
Hans-G?nter@22620 | 69 cp -a $install/usr/lib/*.so* $fs/usr/lib |
Hans-G?nter@22620 | 70 cp -a $install/usr/lib/cups $fs/usr/lib |
Hans-G?nter@22620 | 71 cp -a $install/usr/share/cups $fs/usr/share |
Hans-G?nter@22620 | 72 cp -a $install/usr/share/icons $fs/usr/share |
Hans-G?nter@22620 | 73 cp -a $install/var $fs |
pankso@3601 | 74 |
al@18716 | 75 # Remove files provided by cups-filters |
Hans-G?nter@22620 | 76 rm -f $fs/usr/share/cups/banners/* |
Hans-G?nter@22620 | 77 rm -f $fs/usr/share/cups/data/testprint |
al@18716 | 78 |
al@18716 | 79 # Remove files provided by libcups |
Hans-G?nter@22620 | 80 rm -f $fs/usr/lib/libcups.so* |
al@18716 | 81 |
pankso@632 | 82 # Daemon script |
Hans-G?nter@22620 | 83 cp -a $stuff/etc $fs |
pascal@19183 | 84 sed -i 's|^#Group .*|Group lp|' $fs/etc/cups/cups-files.conf |
pascal@14906 | 85 |
al@18716 | 86 # TazPanel link |
Hans-G?nter@22620 | 87 cp -a $stuff/var $fs |
pascal@19181 | 88 |
pascal@19183 | 89 sed -i 's|hostname:9100|&\n\n parallel:/dev/usb/lp0|' \ |
pascal@19181 | 90 $fs/usr/share/cups/templates/choose-uri.tmpl |
pankso@632 | 91 } |
pankso@632 | 92 |
pankso@632 | 93 post_install() |
pankso@632 | 94 { |
al@18716 | 95 # Start CUPS daemon and edit daemons.conf |
Hans-G?nter@22620 | 96 if [ -z "$1" -a ! -s /aufs-umount.sh ] |
Hans-G?nter@22620 | 97 then |
pascal@2219 | 98 /etc/init.d/cupsd start || continue |
pascal@2219 | 99 fi |
pascal@19030 | 100 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null |
Hans-G?nter@22620 | 101 if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf" |
Hans-G?nter@22620 | 102 then |
al@18716 | 103 cat >> "$1/etc/daemons.conf" <<EOT |
al@18716 | 104 # CUPS printing daemon options. |
al@18716 | 105 CUPSD_OPTIONS="" |
al@18716 | 106 |
al@18716 | 107 EOT |
pankso@632 | 108 fi |
pankso@632 | 109 } |
pankso@632 | 110 |
pankso@632 | 111 pre_remove() |
pankso@632 | 112 { |
Hans-G?nter@22620 | 113 # Stop CUPS daemon before remove. |
al@18716 | 114 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop |
al@18716 | 115 : |
pascal@8875 | 116 } |
pascal@8875 | 117 |
pascal@8875 | 118 post_remove() |
pascal@8875 | 119 { |
pascal@19257 | 120 ln -fs /bin/busybox "$1/usr/bin/lpr" |
pascal@8875 | 121 } |