wok view mgetty/receipt @ rev 24831

updated libsndfile and libsndfile-dev (1.0.28 -> 1.0.31)
author Hans-G?nter Theisgen
date Thu Mar 24 07:19:38 2022 +0100 (2022-03-24)
parents a5ee74db1fee
children
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed '/mgetty-[0-9]/!d;s|.*mgetty-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 chmod a+x mkidirs
30 [ -f Makefile.dist ] && mv -f Makefile.dist Makefile
31 cp Makefile Makefile.dist
32 cp Makefile Makefile.install
33 cp policy.h-dist policy.h
34 sed -i -e 's|/* #define AUTO_PPP */|#define AUTO_PPP|' \
35 policy.h
36 sed -i -e "s|^prefix=/usr/local|prefix=/usr|" \
37 -e "s|^spool=/var/spool|spool=/var/spool|" \
38 -e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \
39 -e 's|/man/|/share&|' \
40 Makefile
41 sed -i -e "s|^prefix=/usr/local|prefix=$DESTDIR/usr|" \
42 -e "s|^spool=/var/spool|spool=$DESTDIR/var/spool|" \
43 -e "s|^CONFDIR=.*|CONFDIR=$DESTDIR/etc/mgetty+sendfax|" \
44 -e 's|/man/|/share&|' \
45 -e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
46 Makefile.install
47 make -j 1 bin-all vgetty
48 mkdir -p $DESTDIR/var/spool $DESTDIR/usr/share/man/man1
49 mkdir -p $DESTDIR/usr/share/man/man8
50 mv -f Makefile.install Makefile
51 sed -i 's|chown|echo chown|' Makefile fax/Makefile
52 make -j 1 -k install.bin vgetty-install
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 mkdir -p $fs/usr
59 cp -a $install/usr/lib $fs/usr
60 cp -a $install/usr/sbin $fs/usr
61 cp -a $install/etc $fs
62 cp -a $install/var $fs
63 chmod 755 $fs/var/spool/fax
64 }
66 # Pre and post install commands for Tazpkg.
67 post_install()
68 {
69 # adduser fax if needed
70 if ! grep -q fax "$1/etc/passwd"
71 then
72 echo
73 echo -n "Adding user fax..."
74 chroot "$1/" adduser fax -D -H -S
75 status
76 fi
77 chroot "$1/" chown fax /var/spool/fax
78 }
80 post_remove()
81 {
82 chroot "$1/" deluser fax
83 }