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