.
OBS-URL: https://build.opensuse.org/package/show/Base:System/syslogd?expand=0&rev=83
This commit is contained in:
parent
91a0fd3dc0
commit
55bc86606b
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Mar 7 14:22:13 UTC 2012 - werner@suse.de
|
||||||
|
|
||||||
|
- Restart the syslog service only from post of the klogd package if
|
||||||
|
the needed script is available (bnc#750478) Thanks to Lars Müller.
|
||||||
|
- Some cleanup due rpm lint warnings
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Mar 6 12:33:27 UTC 2012 - werner@suse.de
|
Tue Mar 6 12:33:27 UTC 2012 - werner@suse.de
|
||||||
|
|
||||||
|
36
syslogd.spec
36
syslogd.spec
@ -24,8 +24,14 @@ Name: syslogd
|
|||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
BuildRequires: pkg-config systemd-devel
|
BuildRequires: pkg-config systemd-devel
|
||||||
PreReq: coreutils %fillup_prereq sed
|
Requires(post): %fillup_prereq
|
||||||
PreReq: klogd syslog-service
|
Requires(post): %insserv_prereq
|
||||||
|
Requires(post): permissions
|
||||||
|
Requires(postun): %insserv_prereq
|
||||||
|
Requires(prereq): coreutils
|
||||||
|
Requires(prereq): klogd
|
||||||
|
Requires(prereq): sed
|
||||||
|
Requires(prereq): syslog-service
|
||||||
Provides: syslog
|
Provides: syslog
|
||||||
Provides: sysklogd
|
Provides: sysklogd
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
@ -95,7 +101,9 @@ Authors:
|
|||||||
%package -n klogd
|
%package -n klogd
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
Provides: klogd:/sbin/klogd
|
Provides: klogd:/sbin/klogd
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
|
Requires(post): %insserv_prereq
|
||||||
|
Requires(postun): %insserv_prereq
|
||||||
Summary: The kernel log daemon
|
Summary: The kernel log daemon
|
||||||
Group: System/Daemons
|
Group: System/Daemons
|
||||||
AutoReqProv: on
|
AutoReqProv: on
|
||||||
@ -118,7 +126,9 @@ Authors:
|
|||||||
|
|
||||||
%package -n syslog-service
|
%package -n syslog-service
|
||||||
License: GPL-2.0+
|
License: GPL-2.0+
|
||||||
PreReq: %insserv_prereq %fillup_prereq
|
Requires(post): %fillup_prereq
|
||||||
|
Requires(post): %insserv_prereq
|
||||||
|
Requires(postun): %insserv_prereq
|
||||||
Provides: klogd:/etc/init.d/syslog
|
Provides: klogd:/etc/init.d/syslog
|
||||||
Requires: /etc/init.d/network logrotate
|
Requires: /etc/init.d/network logrotate
|
||||||
Summary: Syslog service files & scripts
|
Summary: Syslog service files & scripts
|
||||||
@ -204,7 +214,13 @@ mv sample-s390.conf sample.conf
|
|||||||
> $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.syslog
|
> $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.syslog
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if %{defined verify_permissions}
|
||||||
|
%verifyscript
|
||||||
|
%verify_permissions -e /etc/syslog.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
|
%set_permissions /etc/syslog.conf
|
||||||
#
|
#
|
||||||
# add syslog variables provided by syslogd if needed
|
# add syslog variables provided by syslogd if needed
|
||||||
#
|
#
|
||||||
@ -245,7 +261,9 @@ touch var/log/news/news.notice; chmod 640 var/log/news/news.notice
|
|||||||
chown news:news var/log/news/news.notice
|
chown news:news var/log/news/news.notice
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
if test -x /etc/init.d/syslog ; then
|
||||||
%restart_on_update syslog
|
%restart_on_update syslog
|
||||||
|
fi
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
# reset SYSLOG_DAEMON variable
|
# reset SYSLOG_DAEMON variable
|
||||||
if test -f etc/sysconfig/syslog ; then
|
if test -f etc/sysconfig/syslog ; then
|
||||||
@ -266,10 +284,14 @@ mkdir -p -m 0755 var/run/rsyslog
|
|||||||
mkdir -p -m 0755 var/run/syslog-ng
|
mkdir -p -m 0755 var/run/syslog-ng
|
||||||
|
|
||||||
%preun -n syslog-service
|
%preun -n syslog-service
|
||||||
|
if test -x /etc/init.d/syslog ; then
|
||||||
%stop_on_removal syslog
|
%stop_on_removal syslog
|
||||||
|
fi
|
||||||
|
|
||||||
%postun -n syslog-service
|
%postun -n syslog-service
|
||||||
|
if test -x /etc/init.d/syslog ; then
|
||||||
%restart_on_update syslog
|
%restart_on_update syslog
|
||||||
|
fi
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
|
|
||||||
%post -n klogd
|
%post -n klogd
|
||||||
@ -277,13 +299,19 @@ mkdir -p -m 0755 var/run/syslog-ng
|
|||||||
# add syslog variables provided by klogd if needed
|
# add syslog variables provided by klogd if needed
|
||||||
#
|
#
|
||||||
%{fillup_only -ns syslog klogd}
|
%{fillup_only -ns syslog klogd}
|
||||||
|
if test -x /etc/init.d/syslog ; then
|
||||||
%restart_on_update syslog
|
%restart_on_update syslog
|
||||||
|
fi
|
||||||
|
|
||||||
%preun -n klogd
|
%preun -n klogd
|
||||||
|
if test -x /etc/init.d/syslog ; then
|
||||||
%restart_on_update syslog
|
%restart_on_update syslog
|
||||||
|
fi
|
||||||
|
|
||||||
%postun -n klogd
|
%postun -n klogd
|
||||||
|
if test -x /etc/init.d/syslog ; then
|
||||||
%restart_on_update syslog
|
%restart_on_update syslog
|
||||||
|
fi
|
||||||
%{insserv_cleanup}
|
%{insserv_cleanup}
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user