diff --git a/debian/control b/debian/control index f3645ef..36c948d 100644 --- a/debian/control +++ b/debian/control @@ -11,7 +11,7 @@ Standards-Version: 3.9.5 Package: nagios-snmp-plugins Architecture: all -Depends: ${perl:Depends}, ${misc:Depends}, libnet-snmp-perl, nagios-plugins-basic (>= 1.4.5-2), perl-base (>= 5.8.4-8), ucf +Depends: ${perl:Depends}, ${misc:Depends}, libnet-snmp-perl, monitoring-plugins-common | nagios-plugins-basic (>= 1.4.5-2), perl-base (>= 5.8.4-8), ucf Description: SNMP Plugins for nagios A set of Nagios plugins to check hosts/devices using snmp protocol . diff --git a/debian/postinst b/debian/postinst index 55a755d..c27de01 100644 --- a/debian/postinst +++ b/debian/postinst @@ -5,7 +5,11 @@ set -e templdir=/usr/share/nagios-snmp-plugins/pluginconfig if [ "$1" = "configure" ]; then - if [ -f /usr/share/nagios-plugins/dpkg/functions ]; then + if [ -f /usr/share/monitoring-plugins/dpkg/functions ]; then + # only working with monitoring-plugins-basic + . /usr/share/monitoring-plugins/dpkg/functions + register_cfgs $2 + elif [ -f /usr/share/nagios-plugins/dpkg/functions ]; then # only working with nagios-plugins-basic (>= 1.4.5-2) . /usr/share/nagios-plugins/dpkg/functions register_cfgs $2