UCIfied Polipo (patch by "SnapShot_")
[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
19 include $(INCLUDE_DIR)/package.mk
20
21 CONFIGURE_ARGS += \
22 --disable-dietlibc
23
24 define Package/dhcp-forwarder
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=DHCP relay agent
28 URL:=http://www.nongnu.org/dhcp-fwd/
29 endef
30
31 define Package/dhcp-forwarder/conffiles
32 /etc/dhcp-fwd.conf
33 endef
34
35 # uses GNU configure
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR) \
39 cfg_filename="/etc/dhcp-fwd.conf" \
40 DESTDIR="$(PKG_INSTALL_DIR)" \
41 all install
42 endef
43
44 define Package/dhcp-forwarder/install
45 $(INSTALL_DIR) $(1)/usr/bin
46 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/
47 $(INSTALL_DIR) $(1)/etc
48 $(INSTALL_DATA) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/
49 $(INSTALL_DIR) $(1)/etc/init.d
50 $(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd
51 endef
52
53 $(eval $(call BuildPackage,dhcp-forwarder))