Michael Schröder
e1e20a716d
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=378
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
--- ./scripts/Makefile.am.orig 2017-01-19 13:05:33.490167306 +0000
|
|
+++ ./scripts/Makefile.am 2017-01-19 13:06:29.192005359 +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 = \
|
|
@@ -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 tgpg
|
|
|
|
rpmconfig_DATA = \
|
|
--- ./scripts/sysvinitdeps.sh.orig 2017-01-19 13:05:37.523155583 +0000
|
|
+++ ./scripts/sysvinitdeps.sh 2017-01-19 13:05:37.523155583 +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
|