wok-current diff mgetty/receipt @ rev 23419
updated perl-xml-writer (0.612 -> 0.625)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 01 07:51:47 2020 +0100 (2020-04-01) |
parents | 10a263b71ff0 |
children | a5ee74db1fee |
line diff
1.1 --- a/mgetty/receipt Sun May 20 21:26:43 2018 +0200 1.2 +++ b/mgetty/receipt Wed Apr 01 07:51:47 2020 +0100 1.3 @@ -1,25 +1,31 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="mgetty" 1.7 -VERSION="1.1.37" 1.8 +VERSION="1.2.1" 1.9 CATEGORY="network" 1.10 -SHORT_DESC="reliable and proven fax send and receive solution." 1.11 +SHORT_DESC="Reliable and proven fax send and receive solution." 1.12 MAINTAINER="pascal.bellard@slitaz.org" 1.13 LICENSE="GPL2" 1.14 -TARBALL="$PACKAGE$VERSION-Jun05.tar.gz" 1.15 WEB_SITE="http://mgetty.greenie.net/" 1.16 + 1.17 +TARBALL="$PACKAGE-$VERSION.tar.gz" 1.18 WGET_URL="ftp://mgetty.greenie.net/pub/$PACKAGE/source/${VERSION%.*}/$TARBALL" 1.19 + 1.20 DEPENDS="slitaz-base-files" 1.21 + 1.22 CONFIG_FILES="/etc/mgetty+sendfax" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 { 1.27 + chmod a+x mkidirs 1.28 + 1.29 [ -f Makefile.dist ] && mv -f Makefile.dist Makefile 1.30 cp Makefile Makefile.dist 1.31 cp Makefile Makefile.install 1.32 cp policy.h-dist policy.h 1.33 - sed -i -e 's|/* #define AUTO_PPP */|#define AUTO_PPP|' policy.h 1.34 + sed -i -e 's|/* #define AUTO_PPP */|#define AUTO_PPP|' \ 1.35 + policy.h 1.36 sed -i -e "s|^prefix=/usr/local|prefix=/usr|" \ 1.37 -e "s|^spool=/var/spool|spool=/var/spool|" \ 1.38 -e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \ 1.39 @@ -31,30 +37,31 @@ 1.40 -e 's|/man/|/share&|' \ 1.41 -e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \ 1.42 Makefile.install 1.43 - make -j 1 bin-all vgetty 1.44 - mkdir -p $DESTDIR/var/spool $DESTDIR/usr/share/man/man1 \ 1.45 - $DESTDIR/usr/share/man/man8 1.46 + make bin-all vgetty 1.47 + mkdir -p $DESTDIR/var/spool $DESTDIR/usr/share/man/man1 1.48 + mkdir -p $DESTDIR/usr/share/man/man8 1.49 mv -f Makefile.install Makefile 1.50 sed -i 's|chown|echo chown|' Makefile fax/Makefile 1.51 - make -k -j 1 install.bin vgetty-install 1.52 + make -k install.bin vgetty-install 1.53 } 1.54 1.55 # Rules to gen a SliTaz package suitable for Tazpkg. 1.56 genpkg_rules() 1.57 { 1.58 mkdir -p $fs/usr 1.59 - cp -a $install/usr/lib $fs/usr 1.60 - cp -a $install/usr/sbin $fs/usr 1.61 - cp -a $install/etc $fs 1.62 - cp -a $install/var $fs 1.63 - chmod 755 $fs/var/spool/fax 1.64 + cp -a $install/usr/lib $fs/usr 1.65 + cp -a $install/usr/sbin $fs/usr 1.66 + cp -a $install/etc $fs 1.67 + cp -a $install/var $fs 1.68 + chmod 755 $fs/var/spool/fax 1.69 } 1.70 1.71 # Pre and post install commands for Tazpkg. 1.72 post_install() 1.73 { 1.74 # adduser fax if needed 1.75 - if ! grep -q fax "$1/etc/passwd"; then 1.76 + if ! grep -q fax "$1/etc/passwd" 1.77 + then 1.78 echo 1.79 echo -n "Adding user fax..." 1.80 chroot "$1/" adduser fax -D -H -S