2011-05-16 18:07:44 +02:00
|
|
|
--- ./autodeps/linux.prov.orig 2011-05-11 16:45:13.000000000 +0000
|
|
|
|
+++ ./autodeps/linux.prov 2011-05-11 16:51:10.000000000 +0000
|
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
|
2011-05-16 18:07:44 +02:00
|
|
|
--- ./scripts/Makefile.am.orig 2011-05-11 14:46:38.000000000 +0000
|
|
|
|
+++ ./scripts/Makefile.am 2011-05-11 16:52:10.000000000 +0000
|
|
|
|
@@ -22,6 +22,7 @@ EXTRA_DIST = \
|
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
|
|
|
pkgconfigdeps.sh libtooldeps.sh \
|
|
|
|
fontconfig.prov desktop-file.prov script.req \
|
|
|
|
+ sysvinitdeps.sh \
|
|
|
|
macros.perl macros.php macros.python
|
|
|
|
|
|
|
|
rpmconfig_SCRIPTS = \
|
|
|
|
@@ -38,6 +39,7 @@ rpmconfig_SCRIPTS = \
|
|
|
|
pkgconfigdeps.sh libtooldeps.sh \
|
|
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
|
|
|
fontconfig.prov desktop-file.prov script.req \
|
|
|
|
+ sysvinitdeps.sh \
|
|
|
|
rpmdb_loadcvt rpm2cpio.sh tcl.req tgpg
|
|
|
|
|
|
|
|
rpmconfig_DATA = \
|
|
|
|
--- ./scripts/sysvinitdeps.sh.orig 2011-05-11 16:51:10.000000000 +0000
|
|
|
|
+++ ./scripts/sysvinitdeps.sh 2011-05-11 16:54:33.000000000 +0000
|
|
|
|
@@ -0,0 +1,17 @@
|
2010-12-08 14:40:05 +01:00
|
|
|
+#!/bin/sh
|
|
|
|
+
|
2011-05-16 18:07:44 +02:00
|
|
|
+[ "$1" = '-P' -o "$1" = '--provides' ] || {
|
|
|
|
+ cat > /dev/null
|
|
|
|
+ exit 0
|
|
|
|
+}
|
|
|
|
+
|
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
|