unfs3 is not parallel build safe
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=dhcp-forwarder
11 PKG_VERSION:=0.8
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=http://savannah.nongnu.org/download/dhcp-fwd
16 PKG_MD5SUM:=fb3670dee9f71af1e55ac5dcd64e213e
17
18 include $(INCLUDE_DIR)/package.mk
19
20 CONFIGURE_ARGS += \
21 --disable-dietlibc
22
23 define Package/dhcp-forwarder
24 SECTION:=net
25 CATEGORY:=Network
26 TITLE:=DHCP relay agent
27 URL:=http://www.nongnu.org/dhcp-fwd/
28 endef
29
30 define Package/dhcp-forwarder/conffiles
31 /etc/dhcp-fwd.conf
32 endef
33
34 # uses GNU configure
35
36 define Build/Compile
37 $(MAKE) -C $(PKG_BUILD_DIR) \
38 cfg_filename="/etc/dhcp-fwd.conf" \
39 DESTDIR="$(PKG_INSTALL_DIR)" \
40 all install
41 endef
42
43 define Package/dhcp-forwarder/install
44 $(INSTALL_DIR) $(1)/usr/bin
45 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/dhcp-fwd $(1)/usr/bin/
46 $(INSTALL_DIR) $(1)/etc
47 $(INSTALL_CONF) $(PKG_BUILD_DIR)/contrib/dhcp-fwd.conf $(1)/etc/
48 $(INSTALL_DIR) $(1)/etc/init.d
49 $(INSTALL_BIN) ./files/dhcp-fwd.init $(1)/etc/init.d/dhcp-fwd
50 endef
51
52 $(eval $(call BuildPackage,dhcp-forwarder))