summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2011-05-19 16:03:57 -0500
committerMichael Olbrich <m.olbrich@pengutronix.de>2011-05-20 19:40:29 +0200
commit2111af720445bc5182e8d950bd3f5d07a6eb2041 (patch)
tree96d51ac95b266ed2d9d1084f7a3a7c20b1543848
parentb5d6f1c952e7e577098371dd875357c519b2b310 (diff)
downloadptxdist-2111af720445bc5182e8d950bd3f5d07a6eb2041.tar.gz
ptxdist-2111af720445bc5182e8d950bd3f5d07a6eb2041.tar.xz
host-opkg-utils: Added new host package.
Use opkg-utils instead of ipkg-utils when using opkg as the package managment system. svn trunk of opkg-utils is here: http://svn.openmoko.org/trunk/src/host/opkg-utils As of April 26, 2011 last change was: r4747 2008-11-02 21:59:59 I've hosted a tar.gz of r4747 at this URL: http://www.novatech-llc.com/files/opkg-utils-r4747.tar.gz Signed-off-by: George McCollister <george.mccollister@gmail.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch71
-rw-r--r--patches/opkg-utils-r4747/series1
-rw-r--r--rules/host-opkg-utils.in8
-rw-r--r--rules/host-opkg-utils.make35
4 files changed, 115 insertions, 0 deletions
diff --git a/patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch b/patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
new file mode 100644
index 000000000..745336306
--- /dev/null
+++ b/patches/opkg-utils-r4747/0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
@@ -0,0 +1,71 @@
+From a84ad7f392520432d6364523f17fc9777310fb13 Mon Sep 17 00:00:00 2001
+From: George McCollister <george.mccollister@gmail.com>
+Date: Fri, 13 May 2011 10:00:47 -0500
+Subject: [PATCH] opkg-utils: use env python instead of fixed path
+
+I moved this patch over from ipkg-utils. I believe this is needed so we
+use the copy of python built and installed by HOST_PYTHON instead of the
+copy provided by the disto.
+
+Signed-off-by: George McCollister <george.mccollister@gmail.com>
+---
+ opkg-list-fields | 2 +-
+ opkg-make-index | 2 +-
+ opkg-show-deps | 2 +-
+ opkg-unbuild | 2 +-
+ opkg-update-index | 2 +-
+ 5 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/opkg-list-fields b/opkg-list-fields
+index d263b90..da78d53 100755
+--- a/opkg-list-fields
++++ b/opkg-list-fields
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, opkg
+
+diff --git a/opkg-make-index b/opkg-make-index
+index ae829e6..6ebba5f 100755
+--- a/opkg-make-index
++++ b/opkg-make-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, os, posixpath
+ from glob import glob
+diff --git a/opkg-show-deps b/opkg-show-deps
+index a6681f4..9de1aac 100755
+--- a/opkg-show-deps
++++ b/opkg-show-deps
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, os, posixpath
+ from glob import glob
+diff --git a/opkg-unbuild b/opkg-unbuild
+index eff604b..b5c5227 100755
+--- a/opkg-unbuild
++++ b/opkg-unbuild
+@@ -1,4 +1,4 @@
+-#!/usr/bin/python
++#!/usr/bin/env python
+
+ import sys, os, re
+
+diff --git a/opkg-update-index b/opkg-update-index
+index 807f8f4..3864fa5 100755
+--- a/opkg-update-index
++++ b/opkg-update-index
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python2.1
++#!/usr/bin/env python
+
+ import sys, os
+ from glob import glob
+--
+1.7.1
+
diff --git a/patches/opkg-utils-r4747/series b/patches/opkg-utils-r4747/series
new file mode 100644
index 000000000..2ec6b23fd
--- /dev/null
+++ b/patches/opkg-utils-r4747/series
@@ -0,0 +1 @@
+0001-opkg-utils-use-env-python-instead-of-fixed-path.patch
diff --git a/rules/host-opkg-utils.in b/rules/host-opkg-utils.in
new file mode 100644
index 000000000..078255578
--- /dev/null
+++ b/rules/host-opkg-utils.in
@@ -0,0 +1,8 @@
+## SECTION=hosttools_noprompt
+
+config HOST_OPKG_UTILS
+ tristate
+ default ALLYES
+ help
+ opkg-utils let you build packages in the opkg format.
+
diff --git a/rules/host-opkg-utils.make b/rules/host-opkg-utils.make
new file mode 100644
index 000000000..88d177122
--- /dev/null
+++ b/rules/host-opkg-utils.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2011 by George McCollister <george.mccollister@gmail.com>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+HOST_PACKAGES-$(PTXCONF_HOST_OPKG_UTILS) += host-opkg-utils
+
+#
+# Paths and names
+#
+HOST_OPKG_UTILS_VERSION := r4747
+HOST_OPKG_UTILS_MD5 := 0dfe19a4a127bcea8e91a1735580841d
+HOST_OPKG_UTILS := opkg-utils-$(HOST_OPKG_UTILS_VERSION)
+HOST_OPKG_UTILS_SUFFIX := tar.gz
+HOST_OPKG_UTILS_URL := http://www.novatech-llc.com/files/$(HOST_OPKG_UTILS).$(HOST_OPKG_UTILS_SUFFIX)
+HOST_OPKG_UTILS_SOURCE := $(SRCDIR)/$(HOST_OPKG_UTILS).$(HOST_OPKG_UTILS_SUFFIX)
+HOST_OPKG_UTILS_DIR := $(HOST_BUILDDIR)/$(HOST_OPKG_UTILS)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+HOST_OPKG_UTILS_CONF_TOOL := NO
+HOST_OPKG_UTILS_MAKE_OPT := PREFIX= $(HOST_ENV_CC)
+HOST_OPKG_UTILS_INSTALL_OPT := $(HOST_OPKG_UTILS_MAKE_OPT) install
+
+# vim: syntax=make