Index: autodeps/linux.prov =================================================================== --- autodeps/linux.prov.orig 2011-12-09 15:13:23.686700264 +0100 +++ autodeps/linux.prov 2011-12-09 15:13:23.733698039 +0100 @@ -101,4 +101,9 @@ fi [ -x /usr/lib/rpm/gstreamer-provides ] && printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/gstreamer-provides | sort -u +# +# --- Provides of sysvinit scripts +[ -x /usr/lib/rpm/sysvinitdeps.sh ] && + printf "%s\n" "${filelist[@]}" | /usr/lib/rpm/sysvinitdeps.sh -P | sort -u + exit 0 Index: scripts/Makefile.am =================================================================== --- scripts/Makefile.am.orig 2011-12-09 15:13:22.917736665 +0100 +++ scripts/Makefile.am 2011-12-09 15:13:23.733698039 +0100 @@ -21,6 +21,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 = \ @@ -37,6 +38,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 = \ Index: scripts/sysvinitdeps.sh =================================================================== --- /dev/null 1970-01-01 00:00:00.000000000 +0000 +++ scripts/sysvinitdeps.sh 2011-12-09 15:13:23.733698039 +0100 @@ -0,0 +1,17 @@ +#!/bin/sh + +[ "$1" = '-P' -o "$1" = '--provides' ] || { + cat > /dev/null + exit 0 +} + +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