summaryrefslogtreecommitdiff
path: root/package/dhcp
diff options
context:
space:
mode:
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;
+}