From 4fa2d11bb1fdb58ff426114169583672fc3d65b8 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 19 Sep 2006 09:04:09 +0000 Subject: Sync up.. all the deb/dpkg changes which I have locally are now in svn. git-svn-id: https://svn.o-hand.com/repos/poky/trunk@728 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- .../update-alternatives/update-alternatives-dpkg.inc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 meta/packages/update-alternatives/update-alternatives-dpkg.inc (limited to 'meta/packages/update-alternatives/update-alternatives-dpkg.inc') diff --git a/meta/packages/update-alternatives/update-alternatives-dpkg.inc b/meta/packages/update-alternatives/update-alternatives-dpkg.inc new file mode 100644 index 0000000000..e767ed632b --- /dev/null +++ b/meta/packages/update-alternatives/update-alternatives-dpkg.inc @@ -0,0 +1,20 @@ +LICENSE = "GPL" +SECTION = "base" +MAINTAINER = "Chris Larson " +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-54-g00ecf