wok-6.x diff iaxmodem/receipt @ rev 22669

Up firefox-official (72.0.1, CVE-2019-17026)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jan 17 11:02:35 2020 +0100 (2020-01-17)
parents 3132d67b7e38
children ba7cbdb5749c
line diff
     1.1 --- a/iaxmodem/receipt	Thu Dec 13 11:00:12 2018 +0100
     1.2 +++ b/iaxmodem/receipt	Fri Jan 17 11:02:35 2020 +0100
     1.3 @@ -1,33 +1,43 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="iaxmodem"
     1.7 -VERSION="1.2.0"
     1.8 +VERSION="1.3.0"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Software modem for libiax2."
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="https://sourceforge.net/projects/iaxmodem/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.16 -WEB_SITE="http://iaxmodem.sourceforge.net/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 -CONFIG_FILES="/etc/iaxmodem"
    1.19  
    1.20  DEPENDS="jpeg tiff zlib hylafax"
    1.21  BUILD_DEPENDS="jpeg-dev tiff-dev zlib-dev file"
    1.22 +CONFIG_FILES="/etc/iaxmodem"
    1.23  
    1.24  # Rules to configure and make the package.
    1.25  compile_rules()
    1.26  {
    1.27  	#sed -i 's/uucp/root/' iaxmodem.c
    1.28 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.29 -	--mandir=/usr/share/man \
    1.30 -	$CONFIGURE_ARGS && make
    1.31 +
    1.32 +	./configure				\
    1.33 +		--prefix=/usr			\
    1.34 +		--infodir=/usr/share/info	\
    1.35 +		--mandir=/usr/share/man		\
    1.36 +		$CONFIGURE_ARGS &&
    1.37 +	make
    1.38  }
    1.39  
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41  genpkg_rules()
    1.42  {
    1.43 -	mkdir -p $fs/usr/bin $fs/etc/iaxmodem $fs/var/log/iaxmodem
    1.44 +	mkdir -p			\
    1.45 +		$fs/usr/bin		\
    1.46 +		$fs/etc/iaxmodem	\
    1.47 +		$fs/var/log/iaxmodem
    1.48 +
    1.49  	cp -a $src/iaxmodem $fs/usr/bin
    1.50 +
    1.51  	cat > $fs/etc/iaxmodem/ttyIAX0 <<EOT
    1.52  device		/dev/ttyIAX0
    1.53  owner		root:root
    1.54 @@ -56,10 +66,13 @@
    1.55  		sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' "$1/etc/passwd"
    1.56  	}
    1.57  	grep -q ^uucp: "$1/etc/group"  || chroot "$1/" addgroup uucp
    1.58 +
    1.59  	touch "$1/var/log/iaxmodem/ttyIAX0" "$1/var/log/iaxmodem/iaxmodem"
    1.60 +
    1.61  	grep iaxmodem "$1/etc/inittab" || cat >> "$1/etc/inittab" << EOT
    1.62  ::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1
    1.63  ::respawn:/usr/sbin/faxgetty ttyIAX0
    1.64  EOT
    1.65 +
    1.66  	[ "$1" ] || kill -1 1
    1.67  }