2010-12-08 14:40:05 +01:00
|
|
|
Index: rpm-4.8.0/autodeps/linux.prov
|
|
|
|
===================================================================
|
2010-12-08 15:18:22 +01:00
|
|
|
--- rpm-4.8.0.orig/autodeps/linux.prov 2010-12-08 15:16:12.984842683 +0100
|
|
|
|
+++ rpm-4.8.0/autodeps/linux.prov 2010-12-08 15:16:52.530842661 +0100
|
2010-12-08 14:40:05 +01:00
|
|
|
@@ -107,4 +107,9 @@ fi
|
|
|
|
[ -x /usr/lib/rpm/gstreamer-provides ] &&
|
|
|
|
printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/gstreamer-provides | sort -u
|
|
|
|
|
|
|
|
+#
|
|
|
|
+# --- Provides of sysvinit scripts
|
2010-12-08 15:18:22 +01:00
|
|
|
+[ -x /usr/lib/rpm/sysvinitdeps.sh ] &&
|
|
|
|
+ printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/sysvinitdeps.sh -P | sort -u
|
2010-12-08 14:40:05 +01:00
|
|
|
+
|
|
|
|
exit 0
|
2010-12-08 15:18:22 +01:00
|
|
|
Index: rpm-4.8.0/scripts/sysvinitdeps.sh
|
2010-12-08 14:40:05 +01:00
|
|
|
===================================================================
|
|
|
|
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
2010-12-08 15:18:22 +01:00
|
|
|
+++ rpm-4.8.0/scripts/sysvinitdeps.sh 2010-12-08 15:17:11.183843303 +0100
|
2010-12-08 14:40:05 +01:00
|
|
|
@@ -0,0 +1,13 @@
|
|
|
|
+#!/bin/sh
|
|
|
|
+
|
2010-12-08 15:18:22 +01:00
|
|
|
+# -P blindly assumed
|
2010-12-08 14:40:05 +01:00
|
|
|
+while read file; do
|
|
|
|
+ case $file in
|
|
|
|
+ */etc/init.d/*)
|
|
|
|
+ provs=`grep '^# *Provides:' $file | sed 's,^.*:,,'`
|
|
|
|
+ for p in $provs; do
|
|
|
|
+ echo "sysvinit($p)"
|
|
|
|
+ done
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+done
|
|
|
|
Index: rpm-4.8.0/scripts/Makefile.am
|
|
|
|
===================================================================
|
2010-12-08 15:18:22 +01:00
|
|
|
--- rpm-4.8.0.orig/scripts/Makefile.am 2010-12-08 15:16:12.985844013 +0100
|
|
|
|
+++ rpm-4.8.0/scripts/Makefile.am 2010-12-08 15:16:52.531842720 +0100
|
2010-12-08 14:40:05 +01:00
|
|
|
@@ -40,6 +40,7 @@ rpmconfig_SCRIPTS = \
|
|
|
|
pkgconfigdeps.sh libtooldeps.sh \
|
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
|
|
|
fontconfig.prov desktop-file.prov \
|
2010-12-08 15:18:22 +01:00
|
|
|
+ sysvinitdeps.sh \
|
2010-12-08 14:40:05 +01:00
|
|
|
rpmdb_loadcvt rpmdiff rpm2cpio.sh tcl.req tgpg
|
|
|
|
|
|
|
|
rpmconfig_DATA = \
|