diff options
author | Richard Purdie <richard@openedhand.com> | 2008-08-25 20:46:02 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2008-08-25 20:46:02 +0000 |
commit | 666c69518d4fafcd8365c79dbffa7b4912863e68 (patch) | |
tree | c89a0bf4f39b0d74e84e08147fd11123bb0dfa1a /meta/packages/yum | |
parent | 2b67142f3b510acd2aa6837738756384773490fa (diff) | |
download | openembedded-core-666c69518d4fafcd8365c79dbffa7b4912863e68.tar.gz openembedded-core-666c69518d4fafcd8365c79dbffa7b4912863e68.tar.bz2 openembedded-core-666c69518d4fafcd8365c79dbffa7b4912863e68.zip |
Add yum-native and createrepo
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5098 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/yum')
-rw-r--r-- | meta/packages/yum/createrepo-native/pathfix.patch | 81 | ||||
-rw-r--r-- | meta/packages/yum/createrepo-native_0.9.bb | 13 | ||||
-rw-r--r-- | meta/packages/yum/yum-native_3.2.18.bb | 14 |
3 files changed, 108 insertions, 0 deletions
diff --git a/meta/packages/yum/createrepo-native/pathfix.patch b/meta/packages/yum/createrepo-native/pathfix.patch new file mode 100644 index 0000000000..a09a51ccc9 --- /dev/null +++ b/meta/packages/yum/createrepo-native/pathfix.patch @@ -0,0 +1,81 @@ +Index: createrepo-0.9/Makefile +=================================================================== +--- createrepo-0.9.orig/Makefile 2008-08-23 17:49:24.000000000 +0100 ++++ createrepo-0.9/Makefile 2008-08-23 17:52:01.000000000 +0100 +@@ -10,22 +10,6 @@ + SHELL = /bin/sh + top_srcdir = . + srcdir = . +-prefix = /usr +-exec_prefix = ${prefix} +- +-bindir = ${exec_prefix}/bin +-sbindir = ${exec_prefix}/sbin +-libexecdir = ${exec_prefix}/libexec +-datadir = ${prefix}/share +-sysconfdir = ${prefix}/etc +-sharedstatedir = ${prefix}/com +-localstatedir = ${prefix}/var +-libdir = ${exec_prefix}/lib +-infodir = ${prefix}/info +-docdir = +-includedir = ${prefix}/include +-oldincludedir = /usr/include +-mandir = ${prefix}/share/man + + pkgdatadir = $(datadir)/$(PKGNAME) + pkglibdir = $(libdir)/$(PKGNAME) +Index: createrepo-0.9/bin/Makefile +=================================================================== +--- createrepo-0.9.orig/bin/Makefile 2008-08-23 17:50:13.000000000 +0100 ++++ createrepo-0.9/bin/Makefile 2008-08-23 17:50:23.000000000 +0100 +@@ -1,22 +1,6 @@ + SHELL = /bin/sh + top_srcdir = .. + srcdir = ../bin +-prefix = /usr +-exec_prefix = ${prefix} +- +-bindir = ${exec_prefix}/bin +-sbindir = ${exec_prefix}/sbin +-libexecdir = ${exec_prefix}/libexec +-datadir = ${prefix}/share +-sysconfdir = ${prefix}/etc +-sharedstatedir = ${prefix}/com +-localstatedir = ${prefix}/var +-libdir = ${exec_prefix}/lib +-infodir = ${prefix}/info +-docdir = +-includedir = ${prefix}/include +-oldincludedir = /usr/include +-mandir = ${prefix}/man + + pkgdatadir = $(datadir)/$(PKGNAME) + pkglibdir = $(libdir)/$(PKGNAME) +Index: createrepo-0.9/docs/Makefile +=================================================================== +--- createrepo-0.9.orig/docs/Makefile 2008-08-23 17:52:42.000000000 +0100 ++++ createrepo-0.9/docs/Makefile 2008-08-23 17:52:50.000000000 +0100 +@@ -1,22 +1,6 @@ + SHELL = /bin/sh + top_srcdir = .. + srcdir = ../docs +-prefix = /usr +-exec_prefix = ${prefix} +- +-bindir = ${exec_prefix}/bin +-sbindir = ${exec_prefix}/sbin +-libexecdir = ${exec_prefix}/libexec +-datadir = ${prefix}/share +-sysconfdir = ${prefix}/etc +-sharedstatedir = ${prefix}/com +-localstatedir = ${prefix}/var +-libdir = ${exec_prefix}/lib +-infodir = ${prefix}/info +-docdir = +-includedir = ${prefix}/include +-oldincludedir = /usr/include +-mandir = ${datadir}/man + + pkgdatadir = $(datadir)/$(PKGNAME) + pkglibdir = $(libdir)/$(PKGNAME) diff --git a/meta/packages/yum/createrepo-native_0.9.bb b/meta/packages/yum/createrepo-native_0.9.bb new file mode 100644 index 0000000000..e682667c51 --- /dev/null +++ b/meta/packages/yum/createrepo-native_0.9.bb @@ -0,0 +1,13 @@ +SRC_URI = "http://linux.duke.edu/projects/metadata/generate/createrepo-${PV}.tar.gz \ + file://pathfix.patch;patch=1 " + +inherit autotools native + +S = "${WORKDIR}/createrepo-${PV}" + +do_compile_append () { + sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/createrepo + sed -e 's#exec /usr/share#exec ${datadir}#' -i ${S}/bin/modifyrepo + sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/genpkgmetadata.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -i ${S}/modifyrepo.py +} diff --git a/meta/packages/yum/yum-native_3.2.18.bb b/meta/packages/yum/yum-native_3.2.18.bb new file mode 100644 index 0000000000..6657c52d80 --- /dev/null +++ b/meta/packages/yum/yum-native_3.2.18.bb @@ -0,0 +1,14 @@ +HOMEPAGE = "http://linux.duke.edu/projects/yum/" + +SRC_URI = "http://linux.duke.edu/projects/yum/download/3.2/yum-${PV}.tar.gz" + +DEPENDS = "rpm-native python-native python-iniparse-native python-urlgrabber-native yum-metadata-parser-native" + +S = "${WORKDIR}/yum-${PV}" + +inherit autotools native + +do_compile_append () { + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum.py + sed -e 's#!/usr/bin/python#!${bindir}/python#' -e 's#/usr/share#${datadir}#' -i ${S}/bin/yum-updatesd.py +} |