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
10 PKG_NAME:=dhcp-forwarder
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd
16 PKG_MD5SUM:=3b96dd27f6d05502d4048acab453808d
18 include $(INCLUDE_DIR)/package.mk
23 define Package/dhcp-forwarder
26 SUBMENU:=IP Addresses and Names
27 TITLE:=DHCP relay agent
28 URL:=http://www.nongnu.org/dhcp-fwd/
32 $(MAKE) -C $(PKG_BUILD_DIR) \
33 cfg_filename="/etc/dhcp-fwd.conf" \
34 DESTDIR="$(PKG_INSTALL_DIR)" \
38 define Package/dhcp-forwarder/conffiles
42 define Package/dhcp-forwarder/install
43 $(INSTALL_DIR) $(1)/usr/bin $(1)/etc $(1)/etc/init.d
44 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/
45 $(INSTALL_CONF) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/
46 $(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd
49 $(eval $(call BuildPackage,dhcp-forwarder))