wok-current view iaxmodem/receipt @ rev 20920
updated flake8 (2.2.4 -> 3.7.7)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Mar 01 17:30:52 2019 +0100 (2019-03-01) |
parents | 9e01bc6321ea |
children | e934c9bb7903 |
line source
1 # SliTaz package receipt.
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://iaxmodem.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 CONFIG_FILES="/etc/iaxmodem"
14 DEPENDS="jpeg tiff zlib hylafax"
15 BUILD_DEPENDS="jpeg-dev tiff-dev zlib-dev file"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 #sed -i 's/uucp/root/' iaxmodem.c
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 $CONFIGURE_ARGS && make
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/usr/bin $fs/etc/iaxmodem $fs/var/log/iaxmodem
30 cp -a $src/iaxmodem $fs/usr/bin
31 cat > $fs/etc/iaxmodem/ttyIAX0 <<EOT
32 device /dev/ttyIAX0
33 owner root:root
34 mode 660
35 port 4570
36 refresh 60
37 server 127.0.0.1
38 peername iaxmodem
39 secret password
40 codec alaw
41 EOT
42 #owner uucp:uucp
43 #refresh 50
44 }
46 pre_remove()
47 {
48 sed -i '/iaxmodem/d' "$1/etc/inittab"
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 grep -q ^uucp: "$1/etc/passwd" || {
55 chroot "$1/" adduser -s /bin/false -S -D -H uucp
56 sed -i 's/^uucp:x:[0-9]*:[0-9]*:/uucp:x:0:0:/' "$1/etc/passwd"
57 }
58 grep -q ^uucp: "$1/etc/group" || chroot "$1/" addgroup uucp
59 touch "$1/var/log/iaxmodem/ttyIAX0" "$1/var/log/iaxmodem/iaxmodem"
60 grep iaxmodem "$1/etc/inittab" || cat >> "$1/etc/inittab" << EOT
61 ::respawn:/usr/bin/iaxmodem ttyIAX0 > /var/log/iaxmodem.log 2>&1
62 ::respawn:/usr/sbin/faxgetty ttyIAX0
63 EOT
64 [ "$1" ] || kill -1 1
65 }