wok-next diff mgetty/receipt @ rev 20742
tpp: typo
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Tue May 29 23:39:24 2018 +0300 (2018-05-29) |
parents | e8c84b81fa04 |
children | d5aab818505e |
line diff
1.1 --- a/mgetty/receipt Wed Jul 06 12:08:46 2016 +0200 1.2 +++ b/mgetty/receipt Tue May 29 23:39:24 2018 +0300 1.3 @@ -1,20 +1,19 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="mgetty" 1.8 VERSION="1.1.37" 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 +WEB_SITE="http://mgetty.greenie.net/" 1.15 + 1.16 TARBALL="$PACKAGE$VERSION-Jun05.tar.gz" 1.17 -WEB_SITE="http://mgetty.greenie.net/" 1.18 WGET_URL="ftp://mgetty.greenie.net/pub/$PACKAGE/source/${VERSION%.*}/$TARBALL" 1.19 -DEPENDS="slitaz-base-files" 1.20 -CONFIG_FILES="/etc/mgetty+sendfax" 1.21 1.22 -# Rules to configure and make the package. 1.23 -compile_rules() 1.24 -{ 1.25 +SPLIT="mgetty-voicetools" 1.26 + 1.27 +compile_rules() { 1.28 [ -f Makefile.dist ] && mv -f Makefile.dist Makefile 1.29 cp Makefile Makefile.dist 1.30 cp Makefile Makefile.install 1.31 @@ -39,21 +38,29 @@ 1.32 make -k install.bin vgetty-install 1.33 } 1.34 1.35 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.36 -genpkg_rules() 1.37 -{ 1.38 - mkdir -p $fs/usr 1.39 - cp -a $install/usr/lib $fs/usr 1.40 - cp -a $install/usr/sbin $fs/usr 1.41 - cp -a $install/etc $fs 1.42 - cp -a $install/var $fs 1.43 - chmod 755 $fs/var/spool/fax 1.44 +genpkg_rules() { 1.45 + case $PACKAGE in 1.46 + mgetty) 1.47 + mkdir -p $fs/usr 1.48 + cp -a $install/usr/lib $fs/usr 1.49 + cp -a $install/usr/sbin $fs/usr 1.50 + cp -a $install/etc $fs 1.51 + cp -a $install/var $fs 1.52 + chmod 755 $fs/var/spool/fax 1.53 + DEPENDS="slitaz-base-files" 1.54 + CONFIG_FILES="/etc/mgetty+sendfax" 1.55 + ;; 1.56 + mgetty-voicetools) 1.57 + mkdir -p $fs/usr 1.58 + cp -a $install/usr/bin $fs/usr 1.59 + CAT="network|convertion tool set for vgetty" 1.60 + DEPENDS="mgetty" 1.61 + ;; 1.62 + esac 1.63 } 1.64 1.65 -# Pre and post install commands for Tazpkg. 1.66 -post_install() 1.67 -{ 1.68 - # adduser fax if needed 1.69 +# adduser fax if needed 1.70 +post_install_mgetty() { 1.71 if ! grep -q fax "$1/etc/passwd"; then 1.72 echo -n "Adding user fax..." 1.73 chroot "$1/" adduser fax -D -H -S 1.74 @@ -62,7 +69,6 @@ 1.75 chroot "$1/" chown fax /var/spool/fax 1.76 } 1.77 1.78 -post_remove() 1.79 -{ 1.80 +post_remove_mgetty() { 1.81 chroot "$1/" deluser fax 1.82 }