3 include $(TOPDIR
)/rules.mk
5 PKG_NAME
:= dhcp-forwarder
8 PKG_MD5SUM
:= e7f876e615ebc3f96418f6477b4451e2
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
17 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
19 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
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
27 $(PKG_IPK
): $(PKG_BUILD_DIR
)/ipkg
/rules
28 cd
$(PKG_BUILD_DIR
); \
30 TOPDIR
="$(TOPDIR)" IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
33 $(IPKG_STATE_DIR
)/info/lib
$(PKG_NAME
).list
: $(PKG_IPK
)
34 $(IPKG
) install $(PKG_IPK
)
36 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
37 prepare
: $(PKG_BUILD_DIR
)/ipkg
/rules
39 install: $(IPKG_STATE_DIR
)/info/lib
$(PKG_NAME
).list
42 -cd
$(PKG_BUILD_DIR
); \
44 TOPDIR
="$(TOPDIR)" IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
46 rm -rf
$(PKG_BUILD_DIR
)