2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
12 PKG_SOURCE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_MD5SUM
:= da3e3ef772973d7370a6ac95f0fef9b8
14 PKG_SOURCE_URL
:= http
://handhelds.org
/packages
/ipkg-utils
/
17 PKG_BUILD_DIR
:= $(TOOL_BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
19 include $(INCLUDE_DIR
)/host-build.mk
22 mkdir
-p
$(STAGING_DIR
)/etc
23 echo
"dest root /" > $(STAGING_DIR
)/etc
/ipkg.conf
24 echo
"option offline_root $(TARGET_DIR)" >> $(STAGING_DIR
)/etc
/ipkg.conf
25 mkdir
-p
$(STAGING_DIR
)/usr
/bin
26 install -m0755
$(PKG_BUILD_DIR
)/ipkg-build
$(STAGING_DIR
)/usr
/bin
27 install -m0755
$(PKG_BUILD_DIR
)/ipkg-buildpackage
$(STAGING_DIR
)/usr
/bin
28 install -m0755
$(PKG_BUILD_DIR
)/ipkg-make-index
$(STAGING_DIR
)/usr
/bin
29 install -m0755
$(PKG_BUILD_DIR
)/ipkg.py
$(STAGING_DIR
)/usr
/bin
33 rm -f
$(STAGING_DIR
)/etc
/ipkg.conf
34 rm -f
$(STAGING_DIR
)/usr
/bin
/ipkg
*
35 rm -rf
$(PKG_BUILD_DIR
)
38 $(eval
$(call HostBuild
))