wok-next diff frox/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 7d6eb2dc1314
children
line diff
     1.1 --- a/frox/receipt	Thu Sep 11 13:24:02 2014 +0200
     1.2 +++ b/frox/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="frox"
     1.8  VERSION="0.7.18"
     1.9 @@ -6,27 +6,24 @@
    1.10  SHORT_DESC="A transparent ftp proxy"
    1.11  MAINTAINER="pascal.bellard@slitaz.org"
    1.12  LICENSE="GPL2"
    1.13 +WEB_SITE="http://frox.sourceforge.net/"
    1.14 +
    1.15  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.16 -WEB_SITE="http://frox.sourceforge.net/"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.18 -CONFIG_FILES="/etc/frox.conf"
    1.19 -TAG="ftp"
    1.20  
    1.21 -# Rules to configure and make the package.
    1.22 -compile_rules()
    1.23 -{
    1.24 -	./configure --prefix=/usr \
    1.25 +compile_rules() {
    1.26 +	./configure \
    1.27 +		--prefix=/usr \
    1.28  		--enable-configfile=/etc/frox.conf \
    1.29  		$CONFIGURE_ARGS &&
    1.30  	make &&
    1.31 -	make DESTDIR=$DESTDIR install
    1.32 +	make DESTDIR=$install install || return 1
    1.33 +
    1.34 +	install -Dm644 src/frox.conf $install/etc/frox.conf
    1.35  }
    1.36  
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	mkdir -p $fs/etc
    1.41 -	cp -a $src/src/frox.conf $fs/etc
    1.42 -	chown root.root $fs/etc/frox.conf
    1.43 -	cp -a $install/usr $fs/
    1.44 +genpkg_rules() {
    1.45 +	copy @std
    1.46 +	CONFIG_FILES="/etc/frox.conf"
    1.47 +	TAGS="ftp"
    1.48  }