summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2006-11-04 08:59:02 +0000
committerKoen Kooi <koen@openembedded.org>2006-11-04 08:59:02 +0000
commit01d89442ec83daafb95343634768ffc86a61b68e (patch)
tree610dc0cc4350678a89098cea8952bc695cc756a8
parent7c89c8d4a8902ae8d59db3df91fd6da73ae2e056 (diff)
update-alternatives: add from poky
* Poky rev 728: "Sync up.. all the deb/dpkg changes which I have locally are now in svn."
-rw-r--r--packages/update-alternatives/.mtn2git_empty0
-rw-r--r--packages/update-alternatives/update-alternatives-cworth-native_0.99.154.bb11
-rw-r--r--packages/update-alternatives/update-alternatives-cworth.inc5
-rw-r--r--packages/update-alternatives/update-alternatives-cworth_0.99.154.bb11
-rw-r--r--packages/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb14
-rw-r--r--packages/update-alternatives/update-alternatives-dpkg.inc19
-rw-r--r--packages/update-alternatives/update-alternatives-dpkg_1.13.22.bb12
7 files changed, 72 insertions, 0 deletions
diff --git a/packages/update-alternatives/.mtn2git_empty b/packages/update-alternatives/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/update-alternatives/.mtn2git_empty
diff --git a/packages/update-alternatives/update-alternatives-cworth-native_0.99.154.bb b/packages/update-alternatives/update-alternatives-cworth-native_0.99.154.bb
new file mode 100644
index 0000000000..36f023ec3a
--- /dev/null
+++ b/packages/update-alternatives/update-alternatives-cworth-native_0.99.154.bb
@@ -0,0 +1,11 @@
+require update-alternatives-cworth.inc
+inherit native
+
+PROVIDES += "virtual/update-alternatives-native"
+
+do_stage () {
+ install -d ${sbindir} \
+ ${libdir}/ipkg/alternatives
+
+ install -m 0755 update-alternatives ${sbindir}/update-alternatives
+}
diff --git a/packages/update-alternatives/update-alternatives-cworth.inc b/packages/update-alternatives/update-alternatives-cworth.inc
new file mode 100644
index 0000000000..d2d78c9a00
--- /dev/null
+++ b/packages/update-alternatives/update-alternatives-cworth.inc
@@ -0,0 +1,5 @@
+LICENSE = "GPL"
+SECTION = "base"
+SRC_URI = "${HANDHELDS_CVS};module=familiar/dist/ipkg;tag=${@'V' + bb.data.getVar('PV',d,1).replace('.', '-')}"
+S = "${WORKDIR}/ipkg/C"
+PACKAGE_ARCH = "all"
diff --git a/packages/update-alternatives/update-alternatives-cworth_0.99.154.bb b/packages/update-alternatives/update-alternatives-cworth_0.99.154.bb
new file mode 100644
index 0000000000..18dab4e65f
--- /dev/null
+++ b/packages/update-alternatives/update-alternatives-cworth_0.99.154.bb
@@ -0,0 +1,11 @@
+require update-alternatives-cworth.inc
+
+RPROVIDES_${PN} = "update-alternatives"
+
+do_install () {
+ install -d ${D}${sbindir} \
+ ${D}${sysconfdir}/alternatives \
+ ${D}${libdir}/ipkg/alternatives
+
+ install -m 0755 update-alternatives ${D}${sbindir}/update-alternatives
+}
diff --git a/packages/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb b/packages/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb
new file mode 100644
index 0000000000..6c193f9603
--- /dev/null
+++ b/packages/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb
@@ -0,0 +1,14 @@
+require update-alternatives-dpkg.inc
+inherit native
+
+PROVIDES += "virtual/update-alternatives-native"
+DEPENDS += "perl-native dpkg-native"
+DEFAULT_PREFERENCE = "-1"
+
+do_stage () {
+ install -d ${sbindir} \
+ ${localstatedir}/dpkg/alternatives \
+ ${sysconfdir}/alternatives
+
+ install -m 0755 scripts/update-alternatives ${sbindir}/update-alternatives
+}
diff --git a/packages/update-alternatives/update-alternatives-dpkg.inc b/packages/update-alternatives/update-alternatives-dpkg.inc
new file mode 100644
index 0000000000..cffcf836bf
--- /dev/null
+++ b/packages/update-alternatives/update-alternatives-dpkg.inc
@@ -0,0 +1,19 @@
+LICENSE = "GPL"
+SECTION = "base"
+SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz"
+S = "${WORKDIR}/dpkg-${PV}"
+PACKAGE_ARCH = "all"
+
+do_patch () {
+ cat ${S}/scripts/update-alternatives.pl | \
+ sed -n -e '
+ /^\$admindir=.*staging/{
+ x
+ s/^.*$/$D=$ENV{"D"} || ""\;/;
+ p;
+ x;
+ s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/dpkg"\;,;
+ };
+ s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,;
+ p;' > ${S}/scripts/update-alternatives
+}
diff --git a/packages/update-alternatives/update-alternatives-dpkg_1.13.22.bb b/packages/update-alternatives/update-alternatives-dpkg_1.13.22.bb
new file mode 100644
index 0000000000..a07d5e36d4
--- /dev/null
+++ b/packages/update-alternatives/update-alternatives-dpkg_1.13.22.bb
@@ -0,0 +1,12 @@
+require update-alternatives-dpkg.inc
+
+RPROVIDES_${PN} = "update-alternatives"
+RDEPENDS_${PN} = "perl dpkg"
+
+do_install () {
+ install -d ${D}${sbindir} \
+ ${D}${localstatedir}/dpkg/alternatives \
+ ${D}${sysconfdir}/alternatives
+
+ install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives
+}