wok diff cups/receipt @ rev 22876

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