iperf:
[openwrt/svn-archive/archive.git] / net / dhcp-forwarder / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=dhcp-forwarder
12 PKG_VERSION:=0.7
13 PKG_RELEASE:=4
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd
17 PKG_MD5SUM:=e7f876e615ebc3f96418f6477b4451e2
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 CONFIGURE_ARGS += \
26 --disable-dietlibc
27
28 define Package/dhcp-forwarder
29 SECTION:=net
30 CATEGORY:=Network
31 TITLE:=DHCP relay agent
32 URL:=http://www.nongnu.org/dhcp-fwd/
33 endef
34
35 define Package/dhcp-forwarder/conffiles
36 /etc/dhcp-fwd.conf
37 endef
38
39 # uses GNU configure
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) \
43 cfg_filename="/etc/dhcp-fwd.conf" \
44 DESTDIR="$(PKG_INSTALL_DIR)" \
45 all install
46 endef
47
48 define Package/dhcp-forwarder/install
49 $(INSTALL_DIR) $(1)/usr/bin
50 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/
53 $(INSTALL_DIR) $(1)/etc/init.d
54 $(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd
55 endef
56
57 $(eval $(call BuildPackage,dhcp-forwarder))