wok-current rev 13199

mgetty: Clean up.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Aug 05 11:16:04 2012 +0000 (2012-08-05)
parents 08a7b3161b95
children ecbe574923cc
files mgetty/receipt
line diff
     1.1 --- a/mgetty/receipt	Sun Aug 05 11:05:53 2012 +0000
     1.2 +++ b/mgetty/receipt	Sun Aug 05 11:16:04 2012 +0000
     1.3 @@ -25,13 +25,13 @@
     1.4  		-e "s|^spool=/var/spool|spool=/var/spool|" \
     1.5  		-e "s|^CONFDIR=.*|CONFDIR=/etc/mgetty+sendfax|" \
     1.6  		Makefile
     1.7 -	sed -i  -e "s|^prefix=/usr/local|prefix=$PWD/_pkg/usr|" \
     1.8 -		-e "s|^spool=/var/spool|spool=$PWD/_pkg/var/spool|" \
     1.9 -		-e "s|^CONFDIR=.*|CONFDIR=$PWD/_pkg/etc/mgetty+sendfax|" \
    1.10 +	sed -i  -e "s|^prefix=/usr/local|prefix=$DESTDIR/usr|" \
    1.11 +		-e "s|^spool=/var/spool|spool=$DESTDIR/var/spool|" \
    1.12 +		-e "s|^CONFDIR=.*|CONFDIR=$DESTDIR/etc/mgetty+sendfax|" \
    1.13  		-e 's|^INSTALL=install .*|INSTALL=install -c -o root -g root|' \
    1.14  		Makefile.install
    1.15  	make bin-all vgetty
    1.16 -	mkdir -p _pkg/var/spool
    1.17 +	mkdir -p $DESTDIR/var/spool
    1.18  	mv -f Makefile.install Makefile
    1.19  	make -k install.bin vgetty-install || true
    1.20  }
    1.21 @@ -40,10 +40,10 @@
    1.22  genpkg_rules()
    1.23  {
    1.24  	mkdir -p $fs/usr
    1.25 -	cp -a $_pkg/usr/lib $fs/usr
    1.26 -	cp -a $_pkg/usr/sbin $fs/usr
    1.27 -	cp -a $_pkg/etc $fs
    1.28 -	cp -a $_pkg/var $fs
    1.29 +	cp -a $install/usr/lib $fs/usr
    1.30 +	cp -a $install/usr/sbin $fs/usr
    1.31 +	cp -a $install/etc $fs
    1.32 +	cp -a $install/var $fs
    1.33  	chmod 755 $fs/var/spool/fax
    1.34  }
    1.35  
    1.36 @@ -61,5 +61,5 @@
    1.37  
    1.38  post_remove()
    1.39  {
    1.40 -	deluser fax
    1.41 +	chroot $1/ deluser fax
    1.42  }