summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/dpkg/dpkg.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r--meta/recipes-devtools/dpkg/dpkg.inc40
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 @@
1DESCRIPTION = "Package maintenance system for Debian."
2LICENSE = "GPL"
3SECTION = "base"
4PR = "r7"
5
6SRC_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
10DEPENDS = "zlib bzip2"
11DEPENDS_virtclass-native = "bzip2-native zlib-native virtual/update-alternatives-native gettext-native"
12RDEPENDS_${PN} = "${VIRTUAL-RUNTIME_update-alternatives}"
13RDEPENDS_${PN}_virtclass-native = ""
14
15S = "${WORKDIR}/${BPN}-${PV}"
16
17PARALLEL_MAKE = ""
18
19inherit autotools gettext
20
21DPKG_INIT_POSITION = "98"
22DPKG_INIT_POSITION_slugos = "41"
23
24pkg_postinst_dpkg () {
25#!/bin/sh
26if [ "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
34fi
35}
36
37do_configure () {
38 echo >> m4/compiler.m4
39 autotools_do_configure
40}