summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rpm/rpm-postinsts.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/rpm/rpm-postinsts.bb')
-rw-r--r--meta/recipes-devtools/rpm/rpm-postinsts.bb54
1 files changed, 0 insertions, 54 deletions
diff --git a/meta/recipes-devtools/rpm/rpm-postinsts.bb b/meta/recipes-devtools/rpm/rpm-postinsts.bb
deleted file mode 100644
index ba58cd49b1..0000000000
--- a/meta/recipes-devtools/rpm/rpm-postinsts.bb
+++ /dev/null
@@ -1,54 +0,0 @@
1DESCRIPTION = "RPM postinstall script"
2SECTION = "core"
3LICENSE = "LGPLv2.1"
4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/LGPL-2.1;md5=1a6d268fd218675ffea8be556788b780"
5
6inherit allarch
7#
8# Allow distributions to alter when [postponed] package install scripts are run
9#
10POSTINSTALL_INITPOSITION ?= "98"
11
12do_fetch() {
13 :
14}
15
16do_configure() {
17 :
18}
19
20do_compile() {
21 :
22}
23
24do_install() {
25 :
26}
27
28pkg_postinst_${PN} () {
29if [ "x$D" != "x" ] && [ -f $D/var/lib/rpm/Packages ]; then
30 install -d $D/${sysconfdir}/rcS.d
31 cat > $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts << "EOF"
32#!/bin/sh
33[ -e ${sysconfdir}/default/postinst ] && . ${sysconfdir}/default/postinst
34[ -d ${sysconfdir}/rpm-postinsts ] && for i in `ls ${sysconfdir}/rpm-postinsts/`; do
35 i=${sysconfdir}/rpm-postinsts/$i
36 echo "Running postinst $i..."
37 if [ -x $i ]; then
38 if [ "$POSTINST_LOGGING" = "1" ]; then
39 $i >>$LOGFILE 2>&1
40 else
41 $i
42 fi
43 rm $i
44 else
45 echo "ERROR: postinst $i failed."
46 fi
47done
48rm -f ${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts 2>/dev/null
49EOF
50 chmod 0755 $D${sysconfdir}/rcS.d/S${POSTINSTALL_INITPOSITION}run-postinsts
51fi
52}
53
54ALLOW_EMPTY_${PN} = "1"