diff options
Diffstat (limited to 'meta/recipes-devtools/dpkg/dpkg.inc')
-rw-r--r-- | meta/recipes-devtools/dpkg/dpkg.inc | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/meta/recipes-devtools/dpkg/dpkg.inc b/meta/recipes-devtools/dpkg/dpkg.inc index 6bb1e16617..555492089f 100644 --- a/meta/recipes-devtools/dpkg/dpkg.inc +++ b/meta/recipes-devtools/dpkg/dpkg.inc | |||
@@ -39,15 +39,6 @@ POSTLOG ?= "/var/log/postinstall.log" | |||
39 | REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>${POSTLOG} 2>&1', '', d)}" | 39 | REDIRECT_CMD = "${@base_contains('IMAGE_FEATURES', 'debug-tweaks', '>${POSTLOG} 2>&1', '', d)}" |
40 | 40 | ||
41 | DPKG_INIT_POSITION ?= "98" | 41 | DPKG_INIT_POSITION ?= "98" |
42 | do_install_prepend () { | ||
43 | install -d ${D}/${sysconfdir}/rcS.d | ||
44 | # this happens at S98 where our good 'ole packages script used to run | ||
45 | echo "#!/bin/sh | ||
46 | dpkg --configure -a ${REDIRECT_CMD} | ||
47 | rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | ||
48 | " > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | ||
49 | chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | ||
50 | } | ||
51 | 42 | ||
52 | do_install_append () { | 43 | do_install_append () { |
53 | if [ "${PN}" = "dpkg-native" ]; then | 44 | if [ "${PN}" = "dpkg-native" ]; then |
@@ -67,6 +58,20 @@ do_install_append_class-native () { | |||
67 | done | 58 | done |
68 | } | 59 | } |
69 | 60 | ||
61 | pkg_postinst_${PN} () { | ||
62 | #!/bin/sh | ||
63 | if [ "x$D" != "x" ] && [ -f $D/var/lib/dpkg/status ]; then | ||
64 | install -d ${D}/${sysconfdir}/rcS.d | ||
65 | |||
66 | # this happens at S98 where our good 'ole packages script used to run | ||
67 | echo "#!/bin/sh | ||
68 | dpkg --configure -a ${REDIRECT_CMD} | ||
69 | rm -f ${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | ||
70 | " > ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | ||
71 | chmod 0755 ${D}/${sysconfdir}/rcS.d/S${DPKG_INIT_POSITION}run-postinsts | ||
72 | fi | ||
73 | } | ||
74 | |||
70 | PROV = "virtual/update-alternatives" | 75 | PROV = "virtual/update-alternatives" |
71 | PROV_class-native = "" | 76 | PROV_class-native = "" |
72 | 77 | ||