diff options
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc new file mode 100644 index 0000000000..7a4a1a607a --- /dev/null +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -0,0 +1,40 @@ | |||
1 | DESCRIPTION = "Package maintenance system for Debian." | ||
2 | LICENSE = "GPL" | ||
3 | SECTION = "base" | ||
4 | PR = "r7" | ||
5 | |||
6 | SRC_URI = "${DEBIAN_MIRROR}/main/d/dpkg/dpkg_${PV}.tar.gz \ | ||
7 | file://ignore_extra_fields.patch;patch=1 \ | ||
8 | file://noupdalt.patch;patch=1" | ||
9 | |||
10 | DEPENDS = "zlib bzip2" | ||
11 | DEPENDS_virtclass-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native" | ||
12 | RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}" | ||
13 | RDEPENDS_${PN}_virtclass-native = "" | ||
14 | |||
15 | S = "${WORKDIR}/${BPN}-${PV}" | ||
16 | |||
17 | PARALLEL_MAKE = "" | ||
18 | |||
19 | inherit autotools gettext | ||
20 | |||
21 | DPKG_INIT_POSITION = "98" | ||
22 | DPKG_INIT_POSITION_slugos = "41" | ||
23 | |||
24 | pkg_postinst_dpkg () { | ||
25 | #!/bin/sh | ||
26 | if [ "x$D" != "x" ]; then | ||
27 | install -d $D/${sysconfdir}/rcS.d | ||
28 | # this happens at S98 where our good 'ole packages script used to run | ||
29 | echo -e "#!/bin/sh | ||
30 | dpkg --configure -a | ||
31 | rm -f /${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | ||
32 | " > ${IMAGE_ROOTFS}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | ||
33 | chmod 0755 $D/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}configure | ||
34 | fi | ||
35 | } | ||
36 | |||
37 | do_configure () { | ||
38 | echo >> m4/compiler.m4 | ||
39 | autotools_do_configure | ||
40 | } | ||