2 # Copyright (C) 2006-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=ftp://ftp.isc.org/isc/dhcp/
16 PKG_MD5SUM:=27d179a3c3fbef576566b456a1168246
18 include $(INCLUDE_DIR)/package.mk
20 define Package/dhcp/Default
23 SUBMENU:=IP Addresses and Names
25 URL:=https://www.isc.org/software/dhcp
28 define Package/dhcp-relay
29 $(call Package/dhcp/Default)
33 define Package/dhcp-server
34 $(call Package/dhcp/Default)
39 define Build/Configure
40 # it's not GNU autoconf stuff
41 (cd $(PKG_BUILD_DIR) ; \
46 --copts "$(TARGET_CFLAGS)" \
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 $(TARGET_CONFIGURE_OPTS) \
56 DESTDIR="$(PKG_INSTALL_DIR)" \
61 define Package/dhcp-relay/install
62 $(INSTALL_DIR) $(1)/usr/sbin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcrelay $(1)/usr/sbin/
66 define Package/dhcp-server/install
67 $(INSTALL_DIR) $(1)/usr/sbin
68 $(INSTALL_DIR) $(1)/usr/bin
69 $(INSTALL_DIR) $(1)/usr/local/lib
70 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcpd $(1)/usr/sbin/
71 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/omshell $(1)/usr/bin/
72 $(INSTALL_DIR) $(1)/etc/init.d
73 $(INSTALL_BIN) ./files/dhcpd.init $(1)/etc/init.d/dhcpd
76 $(eval $(call BuildPackage,dhcp-relay))
77 $(eval $(call BuildPackage,dhcp-server))