wok-6.x rev 21041
updated iaxmodem (1.2.0 -> 1.3.0)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 12 12:52:46 2019 +0100 (2019-03-12) |
parents | 6a429746d198 |
children | e2ece35b14a1 |
files | iaxmodem/receipt |
line diff
1.1 --- a/iaxmodem/receipt Tue Mar 12 12:37:22 2019 +0100 1.2 +++ b/iaxmodem/receipt Tue Mar 12 12:52:46 2019 +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 }