diff options
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 38 |
1 files changed, 33 insertions, 5 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 8c2511dc43..a8486d9359 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -2,7 +2,7 @@ DESCRIPTION = "Package maintenance system for Debian." | |||
2 | LICENSE = "GPL" | 2 | LICENSE = "GPL" |
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | 4 | ||
5 | INC_PR = "r5" | 5 | INC_PR = "r10" |
6 | 6 | ||
7 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \ | 7 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.bz2 \ |
8 | file://ignore_extra_fields.patch" | 8 | file://ignore_extra_fields.patch" |
@@ -18,8 +18,24 @@ PARALLEL_MAKE = "" | |||
18 | 18 | ||
19 | inherit autotools gettext perlnative | 19 | inherit autotools gettext perlnative |
20 | 20 | ||
21 | DPKG_INIT_POSITION = "98" | 21 | export PERL_LIBDIR = "${libdir}/perl" |
22 | 22 | ||
23 | EXTRA_OECONF = "--without-static-progs \ | ||
24 | --without-dselect \ | ||
25 | --with-start-stop-daemon \ | ||
26 | --with-zlib \ | ||
27 | --with-bz2lib \ | ||
28 | --without-selinux \ | ||
29 | --without-sgml-doc" | ||
30 | |||
31 | do_configure () { | ||
32 | echo >> m4/compiler.m4 | ||
33 | sed -i -e 's#PERL_LIBDIR=.*$#PERL_LIBDIR="${libdir}/perl"#' ${S}/configure | ||
34 | autotools_do_configure | ||
35 | } | ||
36 | |||
37 | |||
38 | DPKG_INIT_POSITION ?= "98" | ||
23 | do_install_prepend () { | 39 | do_install_prepend () { |
24 | install -d ${D}/${sysconfdir}/rcS.d | 40 | install -d ${D}/${sysconfdir}/rcS.d |
25 | # this happens at S98 where our good 'ole packages script used to run | 41 | # this happens at S98 where our good 'ole packages script used to run |
@@ -30,7 +46,19 @@ rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | |||
30 | chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | 46 | chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure |
31 | } | 47 | } |
32 | 48 | ||
33 | do_configure () { | 49 | do_install_append () { |
34 | echo >> m4/compiler.m4 | 50 | mv ${D}${bindir}/update-alternatives ${D}${sbindir} |
35 | autotools_do_configure | ||
36 | } | 51 | } |
52 | |||
53 | PROVIDES += "virtual/update-alternatives" | ||
54 | |||
55 | PACKAGES =+ "update-alternatives-dpkg" | ||
56 | FILES_update-alternatives-dpkg = "${sbindir}/update-alternatives ${localstatedir}/lib/dpkg/alternatives ${sysconfdir}/alternatives" | ||
57 | RPROVIDES_update-alternatives-dpkg += "update-alternatives" | ||
58 | |||
59 | PACKAGES += "${PN}-perl" | ||
60 | FILES_${PN}-perl = "${libdir}/perl" | ||
61 | |||
62 | BBCLASSEXTEND = "native" | ||
63 | |||
64 | |||