wok-next annotate iaxmodem/receipt @ rev 21080
Update tiff (4.0.10): libs -> into libtiff, apps -> into tiff
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 24 02:07:02 2018 +0200 (2018-12-24) |
parents | e1c0edabdcb2 |
children |
rev | line source |
---|---|
al@20473 | 1 # SliTaz package receipt v2. |
pascal@14765 | 2 |
pascal@14765 | 3 PACKAGE="iaxmodem" |
pascal@14765 | 4 VERSION="1.2.0" |
pascal@14765 | 5 CATEGORY="network" |
al@20473 | 6 SHORT_DESC="Software modem for libiax2" |
pascal@14765 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@14765 | 8 LICENSE="GPL2" |
al@20473 | 9 WEB_SITE="http://iaxmodem.sourceforge.net/" |
al@20473 | 10 |
pascal@14765 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@14765 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@14765 | 13 |
pascal@14765 | 14 BUILD_DEPENDS="jpeg-dev tiff-dev zlib-dev" |
pascal@14765 | 15 |
al@20473 | 16 compile_rules() { |
pascal@14765 | 17 #sed -i 's/uucp/root/' iaxmodem.c |
al@20473 | 18 ./configure \ |
al@20473 | 19 --prefix=/usr \ |
al@20473 | 20 --infodir=/usr/share/info \ |
al@20473 | 21 --mandir=/usr/share/man \ |
al@20473 | 22 $CONFIGURE_ARGS && |
al@20473 | 23 make || return 1 |
pascal@14765 | 24 |
al@20473 | 25 install -Dm755 $src/iaxmodem $install/usr/bin/iaxmodem |
al@20473 | 26 mkdir -p $fs/etc/iaxmodem $fs/var/log/iaxmodem |
pascal@14765 | 27 cat > $fs/etc/iaxmodem/ttyIAX0 <<EOT |
pascal@14765 | 28 device /dev/ttyIAX0 |
pascal@14765 | 29 owner root:root |
pascal@14765 | 30 mode 660 |
pascal@14765 | 31 port 4570 |
pascal@14765 | 32 refresh 60 |
pascal@14765 | 33 server 127.0.0.1 |
pascal@14765 | 34 peername iaxmodem |
pascal@14765 | 35 secret password |
pascal@14765 | 36 codec alaw |
pascal@14765 | 37 EOT |
pascal@14765 | 38 #owner uucp:uucp |
pascal@14765 | 39 #refresh 50 |
pascal@14765 | 40 } |
pascal@14765 | 41 |
al@20473 | 42 genpkg_rules() { |
al@20473 | 43 copy @std |
al@21080 | 44 DEPENDS="jpeg libtiff zlib hylafax" |
al@20473 | 45 CONFIG_FILES="/etc/iaxmodem" |
al@20473 | 46 } |
al@20473 | 47 |
al@20473 | 48 pre_remove() { |
pascal@18730 | 49 sed -i '/iaxmodem/d' "$1/etc/inittab" |
pascal@14765 | 50 } |
pascal@14765 | 51 |
al@20473 | 52 post_install() { |
pascal@18730 | 53 grep -q ^uucp: "$1/etc/passwd" || { |
pascal@18730 | 54 chroot "$1/" adduser -s /bin/false -S -D -H uucp |
pascal@18730 | 55 sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' "$1/etc/passwd" |
pascal@14765 | 56 } |
pascal@18730 | 57 grep -q ^uucp: "$1/etc/group" || chroot "$1/" addgroup uucp |
pascal@18730 | 58 touch "$1/var/log/iaxmodem/ttyIAX0" "$1/var/log/iaxmodem/iaxmodem" |
pascal@18730 | 59 grep iaxmodem "$1/etc/inittab" || cat >> "$1/etc/inittab" << EOT |
pascal@14765 | 60 ::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1 |
pascal@14765 | 61 ::respawn:/usr/sbin/faxgetty ttyIAX0 |
pascal@14765 | 62 EOT |
pascal@18730 | 63 [ "$1" ] || kill -1 1 |
pascal@14765 | 64 } |