summaryrefslogtreecommitdiffstats
path: root/dhcp/Pkgfile
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2012-04-30 16:52:40 +0200
committerpiernov <piernov@piernov.org>2012-04-30 16:52:40 +0200
commitb3c5ff5574d6a10f8dd8b78042e2c892f1d80484 (patch)
tree28be139f80886da803420a3ca800abfdc61c5742 /dhcp/Pkgfile
parent288cac3cc004a8db5c72cbf3bba4a89d4312f9a5 (diff)
downloadnutyx-extra-b3c5ff5574d6a10f8dd8b78042e2c892f1d80484.tar.gz
nutyx-extra-b3c5ff5574d6a10f8dd8b78042e2c892f1d80484.tar.bz2
nutyx-extra-b3c5ff5574d6a10f8dd8b78042e2c892f1d80484.tar.xz
nutyx-extra-b3c5ff5574d6a10f8dd8b78042e2c892f1d80484.zip
Revert "dhcp dans base"
This reverts commit 2efb4d3aee4d16f551c17b3ae96062e5d2b7a337.
Diffstat (limited to 'dhcp/Pkgfile')
-rw-r--r--dhcp/Pkgfile47
1 files changed, 47 insertions, 0 deletions
diff --git a/dhcp/Pkgfile b/dhcp/Pkgfile
new file mode 100644
index 000000000..d919b8af4
--- /dev/null
+++ b/dhcp/Pkgfile
@@ -0,0 +1,47 @@
+# 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
+# Run on: net-tools
+
+name=dhcp
+version=3.1.3
+release=2
+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
+ wget http://nutyx.meticul.eu/files/patchs/aaabasicfs/blfs-bootscripts-$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
+}
+