wok view mgetty/receipt @ rev 19823

Up cookutils(887), yandex-disk: up bdeps and rebuild.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 03 02:42:35 2017 +0200 (2017-03-03)
parents 9e01bc6321ea
children 970c5ec9a60a
line source
1 # SliTaz package receipt.
3 PACKAGE="mgetty"
4 VERSION="1.1.37"
5 CATEGORY="network"
6 SHORT_DESC="reliable and proven fax send and receive solution."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE$VERSION-Jun05.tar.gz"
10 WEB_SITE="http://mgetty.greenie.net/"
11 WGET_URL="ftp://mgetty.greenie.net/pub/$PACKAGE/source/${VERSION%.*}/$TARBALL"
12 DEPENDS="slitaz-base-files"
13 CONFIG_FILES="/etc/mgetty+sendfax"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -f Makefile.dist ] && mv -f Makefile.dist Makefile
19 cp Makefile Makefile.dist
20 cp Makefile Makefile.install
21 cp policy.h-dist policy.h
22 sed -i -e 's|/* #define AUTO_PPP */|#define AUTO_PPP|' policy.h
23 sed -i -e "s|^prefix=/usr/local|prefix=/usr|" \
24 -e "s|^spool=/var/spool|spool=/var/spool|" \
25 -e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \
26 -e 's|/man/|/share&|' \
27 Makefile
28 sed -i -e "s|^prefix=/usr/local|prefix=$DESTDIR/usr|" \
29 -e "s|^spool=/var/spool|spool=$DESTDIR/var/spool|" \
30 -e "s|^CONFDIR=.*|CONFDIR=$DESTDIR/etc/mgetty+sendfax|" \
31 -e 's|/man/|/share&|' \
32 -e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
33 Makefile.install
34 make bin-all vgetty
35 mkdir -p $DESTDIR/var/spool $DESTDIR/usr/share/man/man1 \
36 $DESTDIR/usr/share/man/man8
37 mv -f Makefile.install Makefile
38 sed -i 's|chown|echo chown|' Makefile fax/Makefile
39 make -k install.bin vgetty-install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 mkdir -p $fs/usr
46 cp -a $install/usr/lib $fs/usr
47 cp -a $install/usr/sbin $fs/usr
48 cp -a $install/etc $fs
49 cp -a $install/var $fs
50 chmod 755 $fs/var/spool/fax
51 }
53 # Pre and post install commands for Tazpkg.
54 post_install()
55 {
56 # adduser fax if needed
57 if ! grep -q fax "$1/etc/passwd"; then
58 echo -n "Adding user fax..."
59 chroot "$1/" adduser fax -D -H -S
60 status
61 fi
62 chroot "$1/" chown fax /var/spool/fax
63 }
65 post_remove()
66 {
67 chroot "$1/" deluser fax
68 }