Michael Schröder
9c5d0ddfdb
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=420
39 lines
1.1 KiB
Diff
39 lines
1.1 KiB
Diff
--- ./scripts/Makefile.am.orig 2017-12-01 15:44:10.626118239 +0000
|
|
+++ ./scripts/Makefile.am 2017-12-01 15:44:14.182107984 +0000
|
|
@@ -23,6 +23,7 @@ EXTRA_DIST = \
|
|
ocaml-find-requires.sh ocaml-find-provides.sh \
|
|
pkgconfigdeps.sh libtooldeps.sh metainfo.prov \
|
|
fontconfig.prov desktop-file.prov script.req \
|
|
+ sysvinitdeps.sh \
|
|
macros.perl macros.php macros.python
|
|
|
|
rpmconfig_SCRIPTS = \
|
|
@@ -41,6 +42,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-12-01 15:44:14.183107975 +0000
|
|
+++ ./scripts/sysvinitdeps.sh 2017-12-01 15:44:14.183107975 +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
|