wok-next rev 21367

updated mgetty (1.1.37 -> 1.2.1)
author Hans-G?nter Theisgen
date Thu Apr 16 09:30:10 2020 +0100 (2020-04-16)
parents 18559aafacdf
children b7dccb922cf7
files mgetty/receipt
line diff
     1.1 --- a/mgetty/receipt	Mon Apr 13 10:11:04 2020 +0100
     1.2 +++ b/mgetty/receipt	Thu Apr 16 09:30:10 2020 +0100
     1.3 @@ -1,7 +1,7 @@
     1.4  # SliTaz package receipt v2.
     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  MAINTAINER="pascal.bellard@slitaz.org"
    1.12 @@ -13,8 +13,10 @@
    1.13  
    1.14  SPLIT="$PACKAGE-voicetools"
    1.15  
    1.16 -compile_rules() {
    1.17 -	[ -f Makefile.dist ] && mv -f Makefile.dist Makefile
    1.18 +compile_rules()
    1.19 +{
    1.20 +	[ -f Makefile.dist ] &&
    1.21 +	mv -f Makefile.dist Makefile
    1.22  	cp Makefile Makefile.dist
    1.23  	cp Makefile Makefile.install
    1.24  	cp policy.h-dist policy.h
    1.25 @@ -30,29 +32,36 @@
    1.26  		-e 's|/man/|/share&|' \
    1.27  		-e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
    1.28  		Makefile.install
    1.29 +
    1.30  	make bin-all vgetty
    1.31 -	mkdir -p $install/var/spool $install/usr/share/man/man1 \
    1.32 -		$install/usr/share/man/man8
    1.33 +
    1.34 +	mkdir -p $install/var/spool $install/usr/share/man/man1
    1.35 +	mkdir -p $install/usr/share/man/man8
    1.36 +
    1.37  	mv -f Makefile.install Makefile
    1.38  	sed -i 's|chown|echo chown|' Makefile fax/Makefile
    1.39 +
    1.40  	make -k install.bin vgetty-install
    1.41  }
    1.42  
    1.43 -genpkg_rules() {
    1.44 +genpkg_rules()
    1.45 +{
    1.46  	case $PACKAGE in
    1.47  		mgetty)
    1.48  			mkdir -p $fs/usr
    1.49 -			cp -a $install/usr/lib $fs/usr
    1.50 -			cp -a $install/usr/sbin $fs/usr
    1.51 -			cp -a $install/etc $fs
    1.52 -			cp -a $install/var $fs
    1.53 -			chmod 755 $fs/var/spool/fax
    1.54 +
    1.55 +			cp -a $install/usr/lib	$fs/usr
    1.56 +			cp -a $install/usr/sbin	$fs/usr
    1.57 +			cp -a $install/etc	$fs
    1.58 +			cp -a $install/var	$fs
    1.59 +			chmod 755		$fs/var/spool/fax
    1.60  			DEPENDS="slitaz-base-files"
    1.61  			CONFIG_FILES="/etc/mgetty+sendfax"
    1.62  			;;
    1.63  		mgetty-voicetools)
    1.64  			mkdir -p $fs/usr
    1.65 -			cp -a $install/usr/bin $fs/usr
    1.66 +
    1.67 +			cp -a $install/usr/bin	$fs/usr
    1.68  			CAT="network|convertion tool set for vgetty"
    1.69  			DEPENDS="mgetty"
    1.70  			;;
    1.71 @@ -60,8 +69,10 @@
    1.72  }
    1.73  
    1.74  # adduser fax if needed
    1.75 -post_install_mgetty() {
    1.76 -	if ! grep -q fax "$1/etc/passwd"; then
    1.77 +post_install_mgetty()
    1.78 +{
    1.79 +	if ! grep -q fax "$1/etc/passwd"
    1.80 +	  then
    1.81  		echo -n "Adding user fax..."
    1.82  		chroot "$1/" adduser fax -D -H -S
    1.83  		status
    1.84 @@ -69,6 +80,7 @@
    1.85  	chroot "$1/" chown fax /var/spool/fax
    1.86  }
    1.87  
    1.88 -post_remove_mgetty() {
    1.89 +post_remove_mgetty()
    1.90 +{
    1.91  	chroot "$1/" deluser fax
    1.92  }