cshore eec5daa5b4 [net] IP Addresses and Names: Moved DHCP, DNS, mDNS, and DDNS program into IP Addresses and Names submenu
git-svn-id: svn://svn.openwrt.org/openwrt/packages@26068 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-03-12 06:16:47 +00:00

54 lines
1.2 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=dhcp-forwarder
PKG_VERSION:=0.8
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd
PKG_MD5SUM:=fb3670dee9f71af1e55ac5dcd64e213e
include $(INCLUDE_DIR)/package.mk
CONFIGURE_ARGS += \
--disable-dietlibc
define Package/dhcp-forwarder
SECTION:=net
CATEGORY:=Network
SUBMENU:=IP Addresses and Names
TITLE:=DHCP relay agent
URL:=http://www.nongnu.org/dhcp-fwd/
endef
define Package/dhcp-forwarder/conffiles
/etc/dhcp-fwd.conf
endef
# uses GNU configure
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
cfg_filename="/etc/dhcp-fwd.conf" \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/dhcp-forwarder/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd
endef
$(eval $(call BuildPackage,dhcp-forwarder))