wok diff cups-pam/receipt @ rev 22699
encfs: fix path
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 21 10:31:43 2020 +0100 (2020-01-21) |
parents | a78610b2eb47 |
children | 5f106bffd69a |
line diff
1.1 --- a/cups-pam/receipt Mon Jan 21 12:26:11 2019 +0100 1.2 +++ b/cups-pam/receipt Tue Jan 21 10:31:43 2020 +0100 1.3 @@ -1,82 +1,98 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="cups-pam" 1.7 -VERSION="2.0.2" 1.8 +VERSION="2.3.1" 1.9 CATEGORY="system-tools" 1.10 SHORT_DESC="Common UNIX Printing System with PAM support." 1.11 MAINTAINER="pascal.bellard@slitaz.org" 1.12 LICENSE="GPL2 LGPL2" 1.13 +WEB_SITE="https://www.cups.org/" 1.14 + 1.15 SOURCE="cups" 1.16 -TARBALL="$SOURCE-$VERSION-source.tar.bz2" 1.17 -WEB_SITE="https://www.cups.org/" 1.18 -WGET_URL="https://www.cups.org/software/$VERSION/$TARBALL" 1.19 +TARBALL="$SOURCE-$VERSION-source.tar.gz" 1.20 +WGET_URL="https://github.com/apple/$SOURCE/releases/download/v$VERSION/$TARBALL" 1.21 + 1.22 PROVIDE="cups:pam" 1.23 - 1.24 -DEPENDS="libssl cups-doc dbus pam libcomerr libkrb5 cups-filters libcups" 1.25 -BUILD_DEPENDS="openssl-dev gnutls-dev dbus-dev jpeg-dev libpng-dev tiff-dev \ 1.26 -pam libcomerr-dev pam-dev acl-dev libgcrypt-dev libgnutls" 1.27 +DEPENDS="cups-doc cups-filters dbus libcomerr libcups libkrb5 libssl pam" 1.28 +BUILD_DEPENDS="acl-dev dbus-dev gnutls-dev jpeg-dev libcomerr-dev 1.29 + libgcrypt-dev libgnutls libpng-dev openssl-dev pam pam-dev tiff-dev" 1.30 1.31 # Rules to configure and make the package. 1.32 compile_rules() 1.33 { 1.34 - patch -Np1 -i ${WOK}/cups/stuff/install-sh.u 1.35 - ./configure \ 1.36 - --prefix=/usr \ 1.37 - --sysconfdir=/etc \ 1.38 - --localstatedir=/var \ 1.39 - --mandir=/usr/share/man \ 1.40 - --enable-static \ 1.41 - --enable-pam \ 1.42 - --disable-ldap \ 1.43 - --with-cups-user=nobody \ 1.44 - --with-cups-group=nogroup \ 1.45 - --with-languages="de es fr pt_BR ru" \ 1.46 +# patch -Np1 -i ${WOK}/cups/stuff/install-sh.u 1.47 + 1.48 + export LDFLAGS="$LDFLAGS -lrt" 1.49 + 1.50 + # Set list of wanted locales in LOCALE_PACK 1.51 + . $WOK/slitaz-i18n/stuff/locale-pack.conf 1.52 + 1.53 + # <= 2.0.2 unrecognised 1.54 + # --disable-ldap 1.55 + 1.56 + ./configure \ 1.57 + --prefix=/usr \ 1.58 + --sysconfdir=/etc \ 1.59 + --localstatedir=/var \ 1.60 + --mandir=/usr/share/man \ 1.61 + --enable-static \ 1.62 + --enable-pam \ 1.63 + --disable-ldap \ 1.64 + --with-cups-user=nobody \ 1.65 + --with-cups-group=nogroup \ 1.66 + --with-languages="$LOCALE_PACK" \ 1.67 $CONFIGURE_ARGS && 1.68 make && 1.69 make BUILDROOT=$DESTDIR install 1.70 - cp -f $WOK/cups/stuff/cups.desktop $install/usr/share/applications/cups.desktop 1.71 + 1.72 + cp -f $WOK/cups/stuff/cups.desktop \ 1.73 + $install/usr/share/applications/cups.desktop 1.74 } 1.75 1.76 # Rules to gen a SliTaz package suitable for Tazpkg. 1.77 genpkg_rules() 1.78 { 1.79 - mkdir -p $fs/etc $fs/usr/lib $fs/usr/share 1.80 + mkdir -p $fs/etc 1.81 + mkdir -p $fs/usr/lib 1.82 + mkdir -p $fs/usr/share 1.83 1.84 - cp -a $install/etc/cups $fs/etc 1.85 - cp -a $install/etc/dbus* $fs/etc 1.86 - cp -a $install/usr/bin $fs/usr 1.87 - cp -a $install/usr/sbin $fs/usr 1.88 - cp -a $install/usr/lib/*.so* $fs/usr/lib 1.89 - cp -a $install/usr/lib/cups $fs/usr/lib 1.90 - cp -a $install/usr/share/cups $fs/usr/share 1.91 - cp -a $install/usr/share/icons $fs/usr/share 1.92 - cp -a $install/var $fs 1.93 + cp -a $install/etc/cups $fs/etc 1.94 + cp -a $install/etc/dbus* $fs/etc 1.95 + cp -a $install/usr/bin $fs/usr 1.96 + cp -a $install/usr/sbin $fs/usr 1.97 + cp -a $install/usr/lib/*.so* $fs/usr/lib 1.98 + cp -a $install/usr/lib/cups $fs/usr/lib 1.99 + cp -a $install/usr/share/cups $fs/usr/share 1.100 + cp -a $install/usr/share/icons $fs/usr/share 1.101 + cp -a $install/var $fs 1.102 1.103 # Remove files provided by cups-filters 1.104 - rm -f $fs/usr/share/cups/banners/* 1.105 - rm -f $fs/usr/share/cups/data/testprint 1.106 + rm -f $fs/usr/share/cups/banners/* 1.107 + rm -f $fs/usr/share/cups/data/testprint 1.108 1.109 # Remove files provided by libcups 1.110 - rm -f $fs/usr/lib/libcups.so* 1.111 + rm -f $fs/usr/lib/libcups.so* 1.112 1.113 # PAM conf 1.114 - cp -a $stuff/etc $fs 1.115 + cp -a $stuff/etc $fs 1.116 1.117 # Daemon script 1.118 - cp -a $WOK/cups/stuff/etc $fs 1.119 + cp -a $WOK/cups/stuff/etc $fs 1.120 1.121 # TazPanel link 1.122 - cp -a $WOK/cups/stuff/var $fs 1.123 + cp -a $WOK/cups/stuff/var $fs 1.124 1.125 } 1.126 1.127 post_install() 1.128 { 1.129 # Start CUPS daemon and edit daemons.conf 1.130 - if [ -z "$1" -a ! -s /aufs-umount.sh ]; then 1.131 + if [ -z "$1" -a ! -s /aufs-umount.sh ] 1.132 + then 1.133 /etc/init.d/cupsd start || continue 1.134 fi 1.135 - if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf"; then 1.136 + if ! grep -q ^CUPSD_OPTIONS "$1/etc/daemons.conf" 1.137 + then 1.138 cat >> "$1/etc/daemons.conf" <<EOT 1.139 # CUPS printing daemon options. 1.140 CUPSD_OPTIONS="" 1.141 @@ -87,7 +103,7 @@ 1.142 1.143 pre_remove() 1.144 { 1.145 - # Stop CUPS daemon before rm. 1.146 + # Stop CUPS daemon before remove. 1.147 [ -z "$1" -a -x /etc/init.d/cupsd ] && /etc/init.d/cupsd stop 1.148 : 1.149 }