wok view mgetty/receipt @ rev 24205

updated perl-extutils-makemaker (7.44 -> 7.64)
author Hans-G?nter Theisgen
date Fri Dec 31 15:32:10 2021 +0100 (2021-12-31)
parents a4a2b897d572
children 34e801e0eb52
line source
1 # SliTaz package receipt.
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 DEPENDS="slitaz-base-files"
16 CONFIG_FILES="/etc/mgetty+sendfax"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 chmod a+x mkidirs
23 [ -f Makefile.dist ] && mv -f Makefile.dist Makefile
24 cp Makefile Makefile.dist
25 cp Makefile Makefile.install
26 cp policy.h-dist policy.h
27 sed -i -e 's|/* #define AUTO_PPP */|#define AUTO_PPP|' \
28 policy.h
29 sed -i -e "s|^prefix=/usr/local|prefix=/usr|" \
30 -e "s|^spool=/var/spool|spool=/var/spool|" \
31 -e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \
32 -e 's|/man/|/share&|' \
33 Makefile
34 sed -i -e "s|^prefix=/usr/local|prefix=$DESTDIR/usr|" \
35 -e "s|^spool=/var/spool|spool=$DESTDIR/var/spool|" \
36 -e "s|^CONFDIR=.*|CONFDIR=$DESTDIR/etc/mgetty+sendfax|" \
37 -e 's|/man/|/share&|' \
38 -e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
39 Makefile.install
40 make -j 1 bin-all vgetty
41 mkdir -p $DESTDIR/var/spool $DESTDIR/usr/share/man/man1
42 mkdir -p $DESTDIR/usr/share/man/man8
43 mv -f Makefile.install Makefile
44 sed -i 's|chown|echo chown|' Makefile fax/Makefile
45 make -j 1 -k install.bin vgetty-install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/usr/sbin $fs/usr
54 cp -a $install/etc $fs
55 cp -a $install/var $fs
56 chmod 755 $fs/var/spool/fax
57 }
59 # Pre and post install commands for Tazpkg.
60 post_install()
61 {
62 # adduser fax if needed
63 if ! grep -q fax "$1/etc/passwd"
64 then
65 echo
66 echo -n "Adding user fax..."
67 chroot "$1/" adduser fax -D -H -S
68 status
69 fi
70 chroot "$1/" chown fax /var/spool/fax
71 }
73 post_remove()
74 {
75 chroot "$1/" deluser fax
76 }