wok-6.x rev 1338

Add dhcp
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Aug 31 12:20:54 2008 +0000 (2008-08-31)
parents c1ecd964ae3d
children 3f49dc9f3e80
files dhcp-client/receipt dhcp-dev/receipt dhcp-relay/receipt dhcp/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dhcp-client/receipt	Sun Aug 31 12:20:54 2008 +0000
     1.3 @@ -0,0 +1,20 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="dhcp-client"
     1.7 +VERSION="4.1.0a1"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="Dynamic Host Configuration Protocol ISC client."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://www.isc.org/products/DHCP/"
    1.12 +WANTED="dhcp"
    1.13 +CONFIG_FILES="/etc/dhclient.conf"
    1.14 +
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr/sbin $fs/usr/bin $fs/etc
    1.19 +	cp $_pkg/etc/dhclient.conf $fs/etc
    1.20 +	cp $_pkg/usr/sbin/dhclient $fs/usr/sbin
    1.21 +	cp $_pkg/usr/bin/omshell $fs/usr/bin
    1.22 +}
    1.23 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/dhcp-dev/receipt	Sun Aug 31 12:20:54 2008 +0000
     2.3 @@ -0,0 +1,18 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="dhcp-dev"
     2.7 +VERSION="4.1.0a1"
     2.8 +CATEGORY="development"
     2.9 +SHORT_DESC="Dynamic Host Configuration Protocol development files."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +WEB_SITE="http://www.isc.org/products/DHCP/"
    2.12 +WANTED="dhcp"
    2.13 +
    2.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.15 +genpkg_rules()
    2.16 +{
    2.17 +	mkdir -p $fs/usr
    2.18 +	cp -a $_pkg/usr/lib $fs/usr
    2.19 +	cp -a $_pkg/usr/include $fs/usr
    2.20 +}
    2.21 +
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/dhcp-relay/receipt	Sun Aug 31 12:20:54 2008 +0000
     3.3 @@ -0,0 +1,17 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="dhcp-relay"
     3.7 +VERSION="4.1.0a1"
     3.8 +CATEGORY="network"
     3.9 +SHORT_DESC="Dynamic Host Configuration Protocol relay."
    3.10 +MAINTAINER="pascal.bellard@slitaz.org"
    3.11 +WEB_SITE="http://www.isc.org/products/DHCP/"
    3.12 +WANTED="dhcp"
    3.13 +
    3.14 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.15 +genpkg_rules()
    3.16 +{
    3.17 +	mkdir -p $fs/usr/sbin
    3.18 +	cp -a $_pkg/usr/sbin/dhcrelay $fs/usr/sbin
    3.19 +}
    3.20 +
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/dhcp/receipt	Sun Aug 31 12:20:54 2008 +0000
     4.3 @@ -0,0 +1,34 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="dhcp"
     4.7 +VERSION="4.1.0a1"
     4.8 +CATEGORY="network"
     4.9 +SHORT_DESC="Dynamic Host Configuration Protocol server."
    4.10 +MAINTAINER="pascal.bellard@slitaz.org"
    4.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.12 +WEB_SITE="http://www.isc.org/products/DHCP/"
    4.13 +WGET_URL="http://ftp.isc.org/isc/$PACKAGE/$TARBALL"
    4.14 +CONFIG_FILES="/etc/dhcpd.conf"
    4.15 +
    4.16 +# Rules to configure and make the package.
    4.17 +compile_rules()
    4.18 +{
    4.19 +	cd $src
    4.20 +	./configure --prefix=/usr --infodir=/usr/share/info \
    4.21 +	--sysconfdir=/etc --mandir=/usr/share/man $CONFIGURE_ARGS && \
    4.22 +	make && make DESTDIR=$PWD/_pkg install
    4.23 +}
    4.24 +
    4.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    4.26 +genpkg_rules()
    4.27 +{
    4.28 +	mkdir -p $fs/usr/sbin $fs/etc
    4.29 +	cp $_pkg/etc/dhcpd.conf $fs/etc
    4.30 +	cp $_pkg/usr/sbin/dhcpd $fs/usr/sbin
    4.31 +	# Package all dhcp pkgs
    4.32 +	for i in $(cd $WOK; ls -d dhcp-*)
    4.33 +	do
    4.34 +		tazwok genpkg $i
    4.35 +	done
    4.36 +}
    4.37 +