Accepting request 546559 from network:utilities

OBS-URL: https://build.opensuse.org/request/show/546559
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openslp?expand=0&rev=48
This commit is contained in:
Dominique Leuenberger 2017-12-03 09:04:22 +00:00 committed by Git OBS Bridge
commit 1466ccb794
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 29 17:25:48 CET 2017 - ro@suse.de
- add separate source openslp.logrotate.systemd to
use systemctl reload for logrotate configuration
-------------------------------------------------------------------
Tue Jun 13 08:28:35 UTC 2017 - daniel.molkentin@suse.com

14
openslp.logrotate.systemd Normal file
View File

@ -0,0 +1,14 @@
/var/log/slpd.log {
compress
dateext
maxage 14
rotate 99
size +1024k
notifempty
missingok
create 600 root root
sharedscripts
postrotate
systemctl reload slpd.service
endscript
}

View File

@ -45,6 +45,7 @@ Source6: slpd.xml
Source7: openslp.SuSEfirewall2
Source8: baselibs.conf
Source9: slpd.service
Source10: openslp.logrotate.systemd
Patch1: openslp.audit.diff
Patch2: extensions.diff
Patch3: openslp.truncate.diff
@ -166,13 +167,14 @@ cat > ${RPM_BUILD_ROOT}/usr/sbin/rcopenslp <<'EOF'
exec /usr/sbin/rcslpd "$@"
EOF
chmod 755 ${RPM_BUILD_ROOT}/usr/sbin/rcopenslp
install -D -m 0644 %{SOURCE10} ${RPM_BUILD_ROOT}/etc/logrotate.d/openslp-server
%else
mkdir -p ${RPM_BUILD_ROOT}/etc/init.d/
install -m 755 %{SOURCE1} ${RPM_BUILD_ROOT}/etc/init.d/slpd
ln -sf ../../etc/init.d/slpd ${RPM_BUILD_ROOT}/usr/sbin/rcslpd
ln -sf ../../etc/init.d/slpd ${RPM_BUILD_ROOT}/usr/sbin/rcopenslp
%endif
install -D -m 0644 %{SOURCE5} ${RPM_BUILD_ROOT}/etc/logrotate.d/openslp-server
%endif
# install susehelp file
mkdir -p $RPM_BUILD_ROOT/usr/share/susehelp/meta/Administration/
install -m 0644 %SOURCE3 \