wok diff iaxmodem/receipt @ rev 18322

Add xsshfs (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 12:25:21 2015 +0200 (2015-09-01)
parents
children 9e01bc6321ea
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/iaxmodem/receipt	Tue Sep 01 12:25:21 2015 +0200
     1.3 @@ -0,0 +1,66 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="iaxmodem"
     1.7 +VERSION="1.2.0"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Software modem for libiax2."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.13 +WEB_SITE="http://iaxmodem.sourceforge.net/"
    1.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.15 +CONFIG_FILES="/etc/iaxmodem"
    1.16 +
    1.17 +DEPENDS="jpeg tiff zlib hylafax"
    1.18 +BUILD_DEPENDS="jpeg-dev tiff-dev zlib-dev"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +	cd $src
    1.24 +	#sed -i 's/uucp/root/' iaxmodem.c
    1.25 +	./configure --prefix=/usr --infodir=/usr/share/info \
    1.26 +	--mandir=/usr/share/man \
    1.27 +	$CONFIGURE_ARGS && make
    1.28 +}
    1.29 +
    1.30 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.31 +genpkg_rules()
    1.32 +{
    1.33 +	mkdir -p $fs/usr/bin $fs/etc/iaxmodem $fs/var/log/iaxmodem
    1.34 +	cp -a $src/iaxmodem $fs/usr/bin
    1.35 +	cat > $fs/etc/iaxmodem/ttyIAX0 <<EOT
    1.36 +device		/dev/ttyIAX0
    1.37 +owner		root:root
    1.38 +mode		660
    1.39 +port		4570
    1.40 +refresh		60
    1.41 +server		127.0.0.1
    1.42 +peername	iaxmodem
    1.43 +secret		password
    1.44 +codec		alaw
    1.45 +EOT
    1.46 +#owner		uucp:uucp
    1.47 +#refresh		50
    1.48 +}
    1.49 +
    1.50 +pre_remove()
    1.51 +{
    1.52 +	sed -i '/iaxmodem/d' $1/etc/inittab
    1.53 +}
    1.54 +
    1.55 +# Pre and post install commands for Tazpkg.
    1.56 +post_install()
    1.57 +{
    1.58 +	grep -q ^uucp: $1/etc/passwd || {
    1.59 +		chroot $1/ adduser -s /bin/false -S -D -H uucp
    1.60 +		sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' $1/etc/passwd 
    1.61 +	}
    1.62 +	grep -q ^uucp: $1/etc/group  || chroot $1/ addgroup uucp
    1.63 +	touch $1/var/log/iaxmodem/ttyIAX0 $1/var/log/iaxmodem/iaxmodem
    1.64 +	grep iaxmodem $1/etc/inittab || cat >> $1/etc/inittab << EOT
    1.65 +::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1
    1.66 +::respawn:/usr/sbin/faxgetty ttyIAX0
    1.67 +EOT
    1.68 +	[ -n "$1" ] || kill -1 1
    1.69 +}