summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc')
-rw-r--r--meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc43
1 files changed, 0 insertions, 43 deletions
diff --git a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc b/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
deleted file mode 100644
index c881ae0219..0000000000
--- a/meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc
+++ /dev/null
@@ -1,43 +0,0 @@
1SUMMARY = "Manage alternatives"
2DESCRIPTION = "update-alternatives creates, removes, maintains and displays information about the symbolic links \
3comprising the Debian alternatives system. The Debian alternatives system attempts solve the problem of several \
4programs fulfilling the same or similar functions and how they can be installed onto a single system at the same \
5time."
6LICENSE = "GPL"
7SECTION = "base"
8SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2"
9S = "${WORKDIR}/dpkg-${PV}"
10PACKAGE_ARCH = "all"
11INC_PR = "r3"
12
13inherit gettext
14
15do_patch () {
16 cat ${S}/scripts/update-alternatives.pl | \
17 sed -n -e '
18 /^\$admindir=.*staging/{
19 x
20 s/^.*$/$D=$ENV{"D"} || ""\;/;
21 p;
22 x;
23 s,^\$admindir=.*staging.*$,$admindir="$D${localstatedir}/lib/dpkg"\;,;
24 };
25 s,^\$altdir=.*$,$altdir="$D${sysconfdir}/alternatives"\;,;
26 p;' > ${S}/scripts/update-alternatives
27}
28
29do_install () {
30 install -d ${D}${sbindir} \
31 ${D}${localstatedir}/lib/dpkg/alternatives \
32 ${D}${sysconfdir}/alternatives
33
34 install -m 0755 scripts/update-alternatives ${D}${sbindir}/update-alternatives
35}
36
37PROVIDES += "virtual/update-alternatives"
38RPROVIDES_${PN} += "update-alternatives"
39EXTRA_RDEPENDS = "perl dpkg"
40EXTRA_RDEPENDS_virtclass-native = ""
41RDEPENDS_${PN} += "${EXTRA_RDEPENDS}"
42
43BBCLASSEXTEND = "native"