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." --- .../update-alternatives/update-alternatives-dpkg.inc | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 packages/update-alternatives/update-alternatives-dpkg.inc (limited to 'packages/update-alternatives/update-alternatives-dpkg.inc') 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 +} -- cgit v1.2.3