2006-09-19 09:04:09 +00:00
|
|
|
LICENSE = "GPL"
|
|
|
|
SECTION = "base"
|
|
|
|
SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz"
|
|
|
|
S = "${WORKDIR}/dpkg-${PV}"
|
|
|
|
PACKAGE_ARCH = "all"
|
2007-10-15 15:45:14 +00:00
|
|
|
PR = "r1"
|
2006-09-19 09:04:09 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|