wok-next view mgetty/receipt @ rev 21613
updated eboard (1.1.1 -> 1.1.3)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Jun 25 10:33:28 2020 +0100 (2020-06-25) |
parents | 137aa1cf5f85 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="mgetty"
4 VERSION="1.2.1"
5 CATEGORY="network"
6 SHORT_DESC="Reliable and proven fax send and receive solution"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://mgetty.greenie.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="ftp://mgetty.greenie.net/pub/$PACKAGE/source/${VERSION%.*}/$TARBALL"
14 SPLIT="$PACKAGE-voicetools"
16 compile_rules()
17 {
18 [ -f Makefile.dist ] &&
19 mv -f Makefile.dist Makefile
20 cp Makefile Makefile.dist
21 cp Makefile Makefile.install
22 cp policy.h-dist policy.h
23 sed -i -e 's|/* #define AUTO_PPP */|#define AUTO_PPP|' policy.h
24 sed -i -e "s|^prefix=/usr/local|prefix=/usr|" \
25 -e "s|^spool=/var/spool|spool=/var/spool|" \
26 -e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \
27 -e 's|/man/|/share&|' \
28 Makefile
29 sed -i -e "s|^prefix=/usr/local|prefix=$install/usr|" \
30 -e "s|^spool=/var/spool|spool=$install/var/spool|" \
31 -e "s|^CONFDIR=.*|CONFDIR=$install/etc/mgetty+sendfax|" \
32 -e 's|/man/|/share&|' \
33 -e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
34 Makefile.install
36 make bin-all vgetty
38 mkdir -p $install/var/spool $install/usr/share/man/man1
39 mkdir -p $install/usr/share/man/man8
41 mv -f Makefile.install Makefile
42 sed -i 's|chown|echo chown|' Makefile fax/Makefile
44 make -k install.bin vgetty-install
45 }
47 genpkg_rules()
48 {
49 case $PACKAGE in
50 mgetty)
51 mkdir -p $fs/usr
53 cp -a $install/usr/lib $fs/usr
54 cp -a $install/usr/sbin $fs/usr
55 cp -a $install/etc $fs
56 cp -a $install/var $fs
57 chmod 755 $fs/var/spool/fax
58 DEPENDS="slitaz-base-files"
59 CONFIG_FILES="/etc/mgetty+sendfax"
60 ;;
61 mgetty-voicetools)
62 mkdir -p $fs/usr
64 cp -a $install/usr/bin $fs/usr
65 CAT="network|convertion tool set for vgetty"
66 DEPENDS="mgetty"
67 ;;
68 esac
69 }
71 # adduser fax if needed
72 post_install_mgetty()
73 {
74 if ! grep -q fax "$1/etc/passwd"
75 then
76 echo -n "Adding user fax..."
77 chroot "$1/" adduser fax -D -H -S
78 status
79 fi
80 chroot "$1/" chown fax /var/spool/fax
81 }
83 post_remove_mgetty()
84 {
85 chroot "$1/" deluser fax
86 }