From 01d89442ec83daafb95343634768ffc86a61b68e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sat, 4 Nov 2006 08:59:02 +0000 Subject: update-alternatives: add from poky * Poky rev 728: "Sync up.. all the deb/dpkg changes which I have locally are now in svn." --- packages/update-alternatives/.mtn2git_empty | 0 .../update-alternatives-cworth-native_0.99.154.bb | 11 +++++++++++ .../update-alternatives-cworth.inc | 5 +++++ .../update-alternatives-cworth_0.99.154.bb | 11 +++++++++++ .../update-alternatives-dpkg-native_1.13.22.bb | 14 ++++++++++++++ .../update-alternatives/update-alternatives-dpkg.inc | 19 +++++++++++++++++++ .../update-alternatives-dpkg_1.13.22.bb | 12 ++++++++++++ 7 files changed, 72 insertions(+) create mode 100644 packages/update-alternatives/.mtn2git_empty create mode 100644 packages/update-alternatives/update-alternatives-cworth-native_0.99.154.bb create mode 100644 packages/update-alternatives/update-alternatives-cworth.inc create mode 100644 packages/update-alternatives/update-alternatives-cworth_0.99.154.bb create mode 100644 packages/update-alternatives/update-alternatives-dpkg-native_1.13.22.bb create mode 100644 packages/update-alternatives/update-alternatives-dpkg.inc create mode 100644 packages/update-alternatives/update-alternatives-dpkg_1.13.22.bb (limited to 'packages/update-alternatives') diff --git a/packages/update-alternatives/.mtn2git_empty b/packages/update-alternatives/.mtn2git_empty new file mode 100644 index 0000000000..e69de29bb2 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 +} -- cgit v1.2.3