wok-next view mgetty/receipt @ rev 18322
Add xsshfs (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 12:25:21 2015 +0200 (2015-09-01) |
parents | f4cabbf676fc |
children | 1debe89dc518 |
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 Makefile
27 sed -i -e "s|^prefix=/usr/local|prefix=$DESTDIR/usr|" \
28 -e "s|^spool=/var/spool|spool=$DESTDIR/var/spool|" \
29 -e "s|^CONFDIR=.*|CONFDIR=$DESTDIR/etc/mgetty+sendfax|" \
30 -e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
31 Makefile.install
32 make bin-all vgetty
33 mkdir -p $DESTDIR/var/spool $DESTDIR/usr/man/man1
34 mv -f Makefile.install Makefile
35 make -k install.bin vgetty-install || true
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr
42 cp -a $install/usr/lib $fs/usr
43 cp -a $install/usr/sbin $fs/usr
44 cp -a $install/etc $fs
45 cp -a $install/var $fs
46 chmod 755 $fs/var/spool/fax
47 }
49 # Pre and post install commands for Tazpkg.
50 post_install()
51 {
52 # adduser fax if needed
53 if ! grep -q fax $1/etc/passwd; then
54 echo -n "Adding user fax..."
55 chroot $1/ adduser fax -D -H -S
56 status
57 fi
58 chroot $1/ chown fax /var/spool/fax
59 }
61 post_remove()
62 {
63 chroot $1/ deluser fax
64 }