Sfoglia il codice sorgente

add example configuration to dhcp package

Waldemar Brodkorb 14 anni fa
parent
commit
43fa4bbf8b
2 ha cambiato i file con 14 aggiunte e 1 eliminazioni
  1. 3 1
      package/dhcp/Makefile
  2. 11 0
      package/dhcp/files/dhcpd.conf

+ 3 - 1
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/
 

+ 11 - 0
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;
+}