Add dhcp-forwarder package
[openwrt.git] / openwrt / package / dhcp-forwarder / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := dhcp-forwarder
6 PKG_VERSION := 0.7
7 PKG_RELEASE := 4
8 PKG_MD5SUM := e7f876e615ebc3f96418f6477b4451e2
9
10 PKG_SOURCE_SITE := http://savannah.nongnu.org/download/dhcp-fwd/
11 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_SOURCE_CAT := bzcat
13 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
15 PKG_IPK := $(PACKAGE_DIR)/lib$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
16
17 $(DL_DIR)/$(PKG_SOURCE_FILE):
18 mkdir -p $(DL_DIR)
19 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
20
21 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
22 mkdir -p $(TOOL_BUILD_DIR)
23 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
24 $(PATCH) $(PKG_BUILD_DIR) . $(PKG_NAME)-\*.diff
25 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
26
27 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
28 cd $(PKG_BUILD_DIR); \
29 ipkg/rules \
30 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
31 package
32
33 $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list: $(PKG_IPK)
34 $(IPKG) install $(PKG_IPK)
35
36 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
37 prepare: $(PKG_BUILD_DIR)/ipkg/rules
38 compile: $(PKG_IPK)
39 install: $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list
40
41 clean:
42 -cd $(PKG_BUILD_DIR); \
43 ipkg/rules \
44 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
45 clean
46 rm -rf $(PKG_BUILD_DIR)
47 rm -f $(PKG_IPK)
48
This page took 0.052057 seconds and 5 git commands to generate.