--- ./scripts/Makefile.am.orig 2014-02-20 12:52:33.971814948 +0000 +++ ./scripts/Makefile.am 2014-02-20 12:52:40.089814937 +0000 @@ -21,6 +21,7 @@ EXTRA_DIST = \ ocaml-find-requires.sh ocaml-find-provides.sh \ pkgconfigdeps.sh libtooldeps.sh appdata.prov \ 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 = \ --- ./scripts/sysvinitdeps.sh.orig 2014-02-20 12:52:40.089814937 +0000 +++ ./scripts/sysvinitdeps.sh 2014-02-20 12:52:40.089814937 +0000 @@ -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