summaryrefslogtreecommitdiff
path: root/package/dhcp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-02-28 15:00:23 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-02-28 15:00:23 +0100
commit43fa4bbf8b1dfcdee0a9fc46d25718eb1e520520 (patch)
treed9b7a80ff57ffcf8e84303d21eac29452da8954b /package/dhcp
parenta21751d05ee06fd4e0bfae705e8467922b344120 (diff)
add example configuration to dhcp package
Diffstat (limited to 'package/dhcp')
-rw-r--r--package/dhcp/Makefile4
-rw-r--r--package/dhcp/files/dhcpd.conf11
2 files changed, 14 insertions, 1 deletions
diff --git a/package/dhcp/Makefile b/package/dhcp/Makefile
index 6bd7cf6a9..1b12e3a5c 100644
--- a/package/dhcp/Makefile
+++ b/package/dhcp/Makefile
@@ -5,7 +5,7 @@ include ${TOPDIR}/rules.mk
PKG_NAME:= dhcp
PKG_VERSION:= 4.1.1
-PKG_RELEASE:= 1
+PKG_RELEASE:= 2
PKG_MD5SUM:= 38a74c89d8913b9b5f33737047623c18
PKG_DESCR:= ISC DHCP server
PKG_SECTION:= net
@@ -27,6 +27,8 @@ post-install:
${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcrelay \
${IDIR_DHCP_RELAY}/usr/sbin/
${INSTALL_DIR} ${IDIR_DHCP_SERVER}/usr/sbin
+ ${INSTALL_DIR} ${IDIR_DHCP_SERVER}/etc
+ ${INSTALL_DATA} ./files/dhcpd.conf ${IDIR_DHCP_SERVER}/etc
${INSTALL_BIN} ${WRKINST}/usr/sbin/dhcpd \
${IDIR_DHCP_SERVER}/usr/sbin/
diff --git a/package/dhcp/files/dhcpd.conf b/package/dhcp/files/dhcpd.conf
new file mode 100644
index 000000000..1caf07048
--- /dev/null
+++ b/package/dhcp/files/dhcpd.conf
@@ -0,0 +1,11 @@
+# basic example configuration
+ddns-update-style none;
+option domain-name "example.org";
+option domain-name-servers ns1.example.org, ns2.example.org;
+default-lease-time 600;
+max-lease-time 7200;
+authoritative;
+
+subnet 192.168.0.0 netmask 255.255.255.0 {
+ range 192.168.0.10 192.168.0.20;
+}