git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2880 311d38ba-8fff-0310-9ca6-ca027cbcb966
21 lines
523 B
PHP
21 lines
523 B
PHP
LICENSE = "GPL"
|
|
SECTION = "base"
|
|
SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz"
|
|
S = "${WORKDIR}/dpkg-${PV}"
|
|
PACKAGE_ARCH = "all"
|
|
PR = "r1"
|
|
|
|
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
|
|
}
|