diff options
author | Thierry N <thierryn1 at hispeed dot ch> | 2009-10-15 11:27:23 +0200 |
---|---|---|
committer | Thierry N <thierryn1 at hispeed dot ch> | 2009-10-15 11:27:23 +0200 |
commit | ff1f85406ca2f341f763c411da119ad6990a1dc1 (patch) | |
tree | 8391d2865b5c935e63a136ccf90d9dd7ceeb2a65 /extra/dhcp/Pkgfile | |
parent | cfb9ebf140bdd0d61202d9a0deb4b7a870f9101c (diff) | |
download | nutyx-pakxe-ff1f85406ca2f341f763c411da119ad6990a1dc1.tar.gz nutyx-pakxe-ff1f85406ca2f341f763c411da119ad6990a1dc1.tar.bz2 nutyx-pakxe-ff1f85406ca2f341f763c411da119ad6990a1dc1.tar.xz nutyx-pakxe-ff1f85406ca2f341f763c411da119ad6990a1dc1.zip |
Ajout de dhcp#3.1.3-1
Diffstat (limited to 'extra/dhcp/Pkgfile')
-rw-r--r-- | extra/dhcp/Pkgfile | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/extra/dhcp/Pkgfile b/extra/dhcp/Pkgfile new file mode 100644 index 000000000..d0c1f48b7 --- /dev/null +++ b/extra/dhcp/Pkgfile @@ -0,0 +1,44 @@ +# Description: Serveur DHCP permettant de fournir une addresse dynamique +# URL: http://gd.tuwien.ac.at/ +# Maintainer: NuTyX core team +# Packager: thierryn1 at hispeed dot ch +# Depends on: net-tools + +name=dhcp +version=3.1.3 +release=1 +source=(ftp://ftp.isc.org/isc/$name/$name-$version.tar.gz\ + ) +build() { + source /etc/blfs-bootscripts +wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2 + tar xvf $scripts-$scriptsversion.tar.bz2 + cd $name-$version + ./configure + make + mkdir -p $PKG/var/state/dhcp + mkdir -p $PKG/etc + touch $PKG/var/state/dhcp/dhcpd.leases + + make DESTDIR=$PKG INCDIR=/usr/include LIBDIR=/usr/lib install + mkdir -p $PKG/usr/share + mv $PKG/usr/man $PKG/usr/share/man + # Installation of the script + cd ../$scripts-$scriptsversion + make DESTDIR=$PKG install-$name + + + # Install the script file +cat > $PKG/etc/dhcpd.conf << "EOF" +#All the addresses should be adjust to meet your circumstance +default-lease-time 72000; +max-lease-time 144000; +ddns-update-style ad-hoc; + +subnet <192.168.5.0> netmask <255.255.255.0> { + range <192.168.5.10> <192.168.5.240>; + option broadcast-address <192.168.5.255>; + option routers <192.168.5.1>; +} +EOF +} |