diff options
author | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-07 03:53:18 +0000 |
---|---|---|
committer | mbm <mbm@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2004-07-07 03:53:18 +0000 |
commit | 217e8b330803a13fa4ff9b37882e3b53ccfdecdf (patch) | |
tree | 0dd7a08786dfb2558ea55768b68819326b69b86e /obsolete-buildroot | |
parent | 1a57f7fe60a3d749cff02728571f3d93dc9649c9 (diff) |
ipkg stuff
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@73 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'obsolete-buildroot')
-rw-r--r-- | obsolete-buildroot/make/ipkg-utils.mk | 41 | ||||
-rw-r--r-- | obsolete-buildroot/sources/ipkg-utils-1.7-ipkg_buildpackage.patch | 24 |
2 files changed, 65 insertions, 0 deletions
diff --git a/obsolete-buildroot/make/ipkg-utils.mk b/obsolete-buildroot/make/ipkg-utils.mk new file mode 100644 index 0000000000..478f29cf28 --- /dev/null +++ b/obsolete-buildroot/make/ipkg-utils.mk @@ -0,0 +1,41 @@ +############################################################# +# +# ipkg-utils for use on the host system +# +############################################################# + +IPKG_UTILS_VERSION:=1.7 +IPKG_UTILS_SITE:=http://handhelds.org/packages/ipkg-utils/ +IPKG_UTILS_SOURCE:=ipkg-utils-$(IPKG_UTILS_VERSION).tar.gz +IPKG_UTILS_DIR:=$(TOOL_BUILD_DIR)/ipkg-utils-$(IPKG_UTILS_VERSION) + +IPKG_UTILS_PATCHES += ipkg-utils-1.7-ipkg_buildpackage.patch + +$(DL_DIR)/$(IPKG_UTILS_SOURCE): + $(WGET) -P $(DL_DIR) $(IPKG_UTILS_SITE)/$(IPKG_UTILS_SOURCE) + +$(IPKG_UTILS_DIR)/.unpacked: $(DL_DIR)/$(IPKG_UTILS_SOURCE) + mkdir -p $(TOOL_BUILD_DIR) + mkdir -p $(DL_DIR) + zcat $(DL_DIR)/$(IPKG_UTILS_SOURCE) | tar -C $(TOOL_BUILD_DIR) -xvf - + cd $(SOURCE_DIR); cat $(IPKG_UTILS_PATCHES) | patch -p1 -d $(IPKG_UTILS_DIR) + touch $(IPKG_UTILS_DIR)/.unpacked + +$(STAGING_DIR)/bin/ipkg-build: $(IPKG_UTILS_DIR)/.unpacked + mkdir -p $(STAGING_DIR)/bin + install -m0755 $(IPKG_UTILS_DIR)/ipkg-build* $(STAGING_DIR)/bin + install -m0755 $(IPKG_UTILS_DIR)/ipkg-make-index $(STAGING_DIR)/bin + install -m0755 $(IPKG_UTILS_DIR)/ipkg.py $(STAGING_DIR)/bin + +ipkg-utils: $(STAGING_DIR)/bin/ipkg-build + +ipkg-utils-clean: + rm -f $(STAGING_DIR)/bin/ipkg-build* + +ipkg-utils-dirclean: + rm -rf $(IPKG_UTILS_DIR) + + +IPKG_BUILDPACKAGE := PATH=$(TARGET_PATH) ipkg-buildpackage -c -o root -g root +IPKG_MAKE_INDEX := PATH=$(TARGET_PATH) ipkg-make-index + diff --git a/obsolete-buildroot/sources/ipkg-utils-1.7-ipkg_buildpackage.patch b/obsolete-buildroot/sources/ipkg-utils-1.7-ipkg_buildpackage.patch new file mode 100644 index 0000000000..d0a30489ae --- /dev/null +++ b/obsolete-buildroot/sources/ipkg-utils-1.7-ipkg_buildpackage.patch @@ -0,0 +1,24 @@ +diff -ruN ipkg-utils-1.7-old/ipkg-buildpackage ipkg-utils-1.7-new/ipkg-buildpackage +--- ipkg-utils-1.7-old/ipkg-buildpackage 2001-07-26 17:36:36.000000000 +0200 ++++ ipkg-utils-1.7-new/ipkg-buildpackage 2004-07-05 19:46:24.000000000 +0200 +@@ -30,8 +30,9 @@ + + set -e + +-#SCRIPTDIR=/usr/local/bin +-SCRIPTDIR=/other/kurth/ipaq-dev/familiar/dist/ipkg/util/ ++SCRIPTDIR=/usr/local/bin ++ ++IPKG_BUILD_OPTIONS=$* + + SCRIPTNAME=`basename $0` + +@@ -212,7 +213,7 @@ + # build the ipk package + owd=`pwd` + cd .. +-ipkg-build /tmp/${pkg} || exit 1 ++ipkg-build $IPKG_BUILD_OPTIONS /tmp/${pkg} || exit 1 + + rm -rf /tmp/${pkg} + |