-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- main file now processed by automake
- version added to help output - upgrade from net-snmp-subagent package fixed
- Loading branch information
Showing
3 changed files
with
24 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ Net SNMP subagent executes arbitrary commands and provide results via snmpd | |
|
||
%files | ||
%defattr(-,root,root) | ||
%_bindir/* | ||
%attr(755,root,root) %_bindir/* | ||
%dir /etc/snmp/subagent-shell | ||
%dir /etc/snmp/subagent-shell/mibs | ||
%dir /etc/snmp/subagent-shell/conf.d | ||
|
@@ -61,6 +61,24 @@ if [ $1 = 0 ] ; then | |
fi | ||
exit 0 | ||
|
||
# this section is required to smooth upgrade from net-snmp-subagent package | ||
%triggerpostun -- net-snmp-subagent | ||
if [ "$1" == "1" ]; then | ||
if [ -d /etc/snmp/subagent ]; then | ||
for f in `find /etc/snmp/subagent/ -maxdepth 1 -type f -name '*.rpmsave'` | ||
do | ||
mv $f /etc/snmp/subagent-shell/`basename $f` | ||
done | ||
pushd /etc/snmp/subagent >/dev/null 2>&1 | ||
find -maxdepth 1 -type f -exec cp '{}' /etc/snmp/subagent-shell ';' | ||
popd >/dev/null 2>&1 | ||
rm -rf /etc/snmp/subagent | ||
echo 'Files from /etc/snmp/subagent moved to new /etc/snmp/subagent-shell directory ...' | ||
fi | ||
/sbin/chkconfig --add subagent-shell || : | ||
/sbin/service subagent-shell start >/dev/null 2>&1 || : | ||
fi | ||
|
||
%changelog | ||
* Wed Nov 23 2011 Serge <[email protected]> 1.1.0.0-ssv1 | ||
-- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
AC_INIT(net-snmp-subagent-shell, 2.1.2.0, [email protected]) | ||
AM_INIT_AUTOMAKE(net-snmp-subagent-shell, 2.1.2.0) | ||
AC_INIT(net-snmp-subagent-shell, 2.1.2.1, [email protected]) | ||
AM_INIT_AUTOMAKE | ||
AC_PROG_INSTALL | ||
AC_OUTPUT(Makefile) | ||
AC_OUTPUT(subagent-shell) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters