SHA256
1
0
forked from pool/s390-tools

Accepting request 834723 from home:oertel:branches:Base:System

- use libexecdir for net-snmp agent config

OBS-URL: https://build.opensuse.org/request/show/834723
OBS-URL: https://build.opensuse.org/package/show/Base:System/s390-tools?expand=0&rev=99
This commit is contained in:
Ruediger Oertel 2020-09-16 11:25:27 +00:00 committed by Git OBS Bridge
parent 58e312617d
commit 5f87a54d2f
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Sep 15 18:46:04 CEST 2020 - ro@suse.de
- use libexecdir for net-snmp agent config
-------------------------------------------------------------------
Fri Jul 24 21:17:36 UTC 2020 - Mark Post <mpost@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package s390-tools
#
# Copyright (c) 2001-2020 SUSE LLC
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -420,8 +420,8 @@ grep -v -E 'osasnmp|*\.conf$' %{_builddir}/%{name}-filelist >%{_builddir}/%{name
grep osasnmp[^-] %{_builddir}/%{name}-filelist >%{_builddir}/%{name}.osasnmp
touch boot/zipl/active_devices.txt
mkdir -p usr/lib/net-snmp/agents
cd usr/lib/net-snmp/agents
mkdir -p ./%{_libexecdir}/net-snmp/agents
cd ./%{_libexecdir}/net-snmp/agents
cat <<EOT >osasnmpd
#!/bin/sh
PIDFILE=%{_localstatedir}/run/osasnmpd.pid
@ -605,7 +605,7 @@ fi
%files -n osasnmpd -f %{_builddir}/%{name}.osasnmp
%defattr(-,root,root)
%{_prefix}/lib/net-snmp/agents/osasnmpd
%{_libexecdir}/net-snmp/agents/osasnmpd
%files zdsfs
%defattr(-,root,root)