wok-next diff dhcp/receipt @ rev 19837

Up reaver; add pixiewps, vfsync (all from cooking wok)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Aug 12 05:16:49 2017 +0300 (2017-08-12)
parents eb8067417980
children 757d032c55c7
line diff
     1.1 --- a/dhcp/receipt	Sat Nov 30 10:06:29 2013 +0000
     1.2 +++ b/dhcp/receipt	Sat Aug 12 05:16:49 2017 +0300
     1.3 @@ -1,39 +1,59 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="dhcp"
     1.8  VERSION="4.2.2"
     1.9  CATEGORY="network"
    1.10 -SHORT_DESC="Dynamic Host Configuration Protocol server."
    1.11 +SHORT_DESC="Dynamic Host Configuration Protocol"
    1.12  MAINTAINER="pascal.bellard@slitaz.org"
    1.13  LICENSE="ISC"
    1.14 +WEB_SITE="https://www.isc.org/downloads/DHCP/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.17 -WEB_SITE="http://www.isc.org/products/DHCP/"
    1.18 -WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL"
    1.19 -CONFIG_FILES="/etc/dhcpd.conf"
    1.20 +WGET_URL="https://ftp.isc.org/isc/dhcp/$TARBALL"
    1.21  
    1.22 -DEPENDS="libcrypto"
    1.23  BUILD_DEPENDS="perl"
    1.24 +SPLIT="dhcp-client dhcp-relay dhcp-dev"
    1.25 +SIBLINGS="dhcp6"
    1.26  
    1.27  # Rules to configure and make the package.
    1.28  compile_rules()
    1.29  {
    1.30 -	cd $src
    1.31  	grep -q MYEOL includes/dhctoken.h ||
    1.32  	sed -i "s/SEMI/MYEOL = '\\\\n',\n\tQUESTION = '?',\n\t&/" \
    1.33  		includes/dhctoken.h
    1.34  	sed -i 's/== NOERROR/== (isc_result_t) NOERROR/' server/ddns.c
    1.35 -	./configure --prefix=/usr --infodir=/usr/share/info \
    1.36 -	--disable-dhcpv6 \
    1.37 -	--sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
    1.38 +
    1.39 +	./configure \
    1.40 +		--disable-dhcpv6 \
    1.41 +		--sysconfdir=/etc \
    1.42 +		$CONFIGURE_ARGS &&
    1.43  	make && make DESTDIR=$DESTDIR install
    1.44 +
    1.45 +	mkdir -p $install/etc/init.d
    1.46 +	cp $stuff/dhcpd $install/etc/init.d
    1.47 +	cp $src/client/scripts/linux $install/etc/dhclient-script
    1.48  }
    1.49  
    1.50  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.51  genpkg_rules()
    1.52  {
    1.53 -	mkdir -p $fs/usr/sbin $fs/etc/init.d
    1.54 -	cp $install/etc/dhcpd.conf $fs/etc
    1.55 -	cp $install/usr/sbin/dhcpd $fs/usr/sbin
    1.56 -	cp $stuff/dhcpd $fs/etc/init.d
    1.57 +	case $PACKAGE in
    1.58 +		dhcp)
    1.59 +			copy dhcpd.conf dhcpd
    1.60 +			CONFIG_FILES="/etc/dhcpd.conf"
    1.61 +			;;
    1.62 +		dhcp-client)
    1.63 +			copy dhclient.conf dhclient-script dhclient omshell
    1.64 +			CAT="network|ISC client"
    1.65 +			DEPENDS=" "
    1.66 +			CONFIG_FILES="/etc/dhclient.conf"
    1.67 +			;;
    1.68 +		dhcp-relay)
    1.69 +			copy dhcrelay
    1.70 +			CAT="network|relay"
    1.71 +			DEPENDS=" "
    1.72 +			;;
    1.73 +		*-dev) copy @dev;;
    1.74 +	esac
    1.75  }
    1.76