diff options
author | Koen Kooi <koen@openembedded.org> | 2006-11-04 08:59:02 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2006-11-04 08:59:02 +0000 |
commit | 01d89442ec83daafb95343634768ffc86a61b68e (patch) | |
tree | 610dc0cc4350678a89098cea8952bc695cc756a8 /packages/update-alternatives/update-alternatives-dpkg.inc | |
parent | 7c89c8d4a8902ae8d59db3df91fd6da73ae2e056 (diff) |
update-alternatives: add from poky
* Poky rev 728: "Sync up.. all the deb/dpkg changes which I have locally are now in svn."
Diffstat (limited to 'packages/update-alternatives/update-alternatives-dpkg.inc')
-rw-r--r-- | packages/update-alternatives/update-alternatives-dpkg.inc | 19 |
1 files changed, 19 insertions, 0 deletions
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 +} |