diff options
Diffstat (limited to 'meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc')
-rw-r--r-- | meta/recipes-devtools/update-alternatives/update-alternatives-dpkg.inc | 43 |
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 @@ | |||
1 | SUMMARY = "Manage alternatives" | ||
2 | DESCRIPTION = "update-alternatives creates, removes, maintains and displays information about the symbolic links \ | ||
3 | comprising the Debian alternatives system. The Debian alternatives system attempts solve the problem of several \ | ||
4 | programs fulfilling the same or similar functions and how they can be installed onto a single system at the same \ | ||
5 | time." | ||
6 | LICENSE = "GPL" | ||
7 | SECTION = "base" | ||
8 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2" | ||
9 | S = "${WORKDIR}/dpkg-${PV}" | ||
10 | PACKAGE_ARCH = "all" | ||
11 | INC_PR = "r3" | ||
12 | |||
13 | inherit gettext | ||
14 | |||
15 | do_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 | |||
29 | do_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 | |||
37 | PROVIDES += "virtual/update-alternatives" | ||
38 | RPROVIDES_${PN} += "update-alternatives" | ||
39 | EXTRA_RDEPENDS = "perl dpkg" | ||
40 | EXTRA_RDEPENDS_virtclass-native = "" | ||
41 | RDEPENDS_${PN} += "${EXTRA_RDEPENDS}" | ||
42 | |||
43 | BBCLASSEXTEND = "native" | ||