# SliTaz package receipt. PACKAGE="iaxmodem" VERSION="1.3.3" CATEGORY="network" SHORT_DESC="Software modem for libiax2." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL2" WEB_SITE="https://sourceforge.net/projects/iaxmodem/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" DEPENDS="hylafax jpeg tiff zlib" BUILD_DEPENDS="file jpeg-dev tiff-dev zlib-dev" CONFIG_FILES="/etc/iaxmodem" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/iaxmodem/files/iaxmodem/ 2>/dev/null | \ sed '/scope="row/!d;/tar/!d;s|.*/iaxmodem-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { #sed -i 's/uucp/root/' iaxmodem.c ./configure \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $CONFIGURE_ARGS && make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/iaxmodem mkdir -p $fs/usr/bin mkdir -p $fs/var/log/iaxmodem cp -a $src/iaxmodem $fs/usr/bin cat > $fs/etc/iaxmodem/ttyIAX0 <> "$1/etc/inittab" << EOT ::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1 ::respawn:/usr/sbin/faxgetty ttyIAX0 EOT [ "$1" ] || kill -1 1 }