[Pkg-nagios-changes] [pkg-nagios-plugins] 324/413: fixing LP: #1086151 (rpcinfo)
Jan Wagner
waja at moszumanska.debian.org
Tue Nov 26 23:13:38 UTC 2013
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins.
commit 192bef3aab494e43ba92c926c7557d8e7a54c837
Author: Jan Wagner <waja at cyconet.org>
Date: Sat Dec 15 20:45:45 2012 +0000
fixing LP: #1086151 (rpcinfo)
---
debian/changelog | 2 ++
debian/control | 2 +-
debian/rules | 12 ++++++++++--
3 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index cb7f5b1..441347a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ nagios-plugins (1.4.16-2) UNRELEASED; urgency=low
* Add versioned dependency to inetutils-ping (Closes: #680416), thanks to
Robert Millan
* Move nagios-plugins-contrib from Recommends to Suggests
+ * Define the path for rpcinfo on ubuntu to /usr/sbin and depended on rpcbind
+ - LP: #1086151
-- Jan Wagner <waja at cyconet.org> Wed, 27 Jun 2012 23:14:40 +0200
diff --git a/debian/control b/debian/control
index b546c4d..d954fcb 100644
--- a/debian/control
+++ b/debian/control
@@ -65,7 +65,7 @@ Package: nagios-plugins-standard
Architecture: any
Conflicts: nagios-plugins (<= 1.4.2-3)
Replaces: nagios-plugins
-Depends: ${shlibs:Depends}, ${misc:Depends}, ucf, nagios-plugins-basic (>= 1.4.5-2)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${dist:Depends}, ucf, nagios-plugins-basic (>= 1.4.5-2)
Recommends: ${shlibs:Recommends}, fping, snmp, libnet-snmp-perl, dnsutils, bind9-host | host, smbclient, whois, qstat
Suggests: nagios3 | icinga, postfix | sendmail-bin | exim4-daemon-heavy | exim4-daemon-light
Description: Plugins for nagios compatible monitoring systems
diff --git a/debian/rules b/debian/rules
index 90e8c29..5e409dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,14 @@ NP_BASIC_TEMPLATES:=$(NP_BASIC_DIR)/usr/share/nagios-plugins/templates-basic
NP_STD_DIR:=$(DEBIANDIR)/nagios-plugins-standard
NP_STD_TEMPLATES:=$(NP_STD_DIR)/usr/share/nagios-plugins/templates-standard
+ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
+ DEPSUBSTVARS = -Vdist:Depends="rpcbind"
+ RPCINFO_CONFIGURE_ARGS = /usr/sbin/rpcinfo
+else
+ DEPSUBSTVARS = -Vdist:Depends=""
+ RPCINFO_CONFIGURE_ARGS = /usr/bin/rpcinfo
+endif
+
std_plugins:=check_breeze check_ifoperstatus check_hpjd check_ifstatus \
check_rpc check_snmp check_wave check_fping check_game \
check_radius check_mysql check_mysql_query check_pgsql \
@@ -101,7 +109,7 @@ config.status: configure
$(PING_CONFIGURE_ARGS) \
--with-nslookup-command="/usr/bin/nslookup -sil" \
--with-uptime-command="/usr/bin/uptime" \
- --with-rpcinfo-command="/usr/bin/rpcinfo" \
+ --with-rpcinfo-command=${RPCINFO_CONFIGURE_ARGS} \
--with-smbclient-command="/usr/bin/smbclient" \
--with-snmpget-command="/usr/bin/snmpget" \
--with-snmpgetnext-command="/usr/bin/snmpgetnext" \
@@ -224,7 +232,7 @@ binary-arch: build install
grep shlibs:Suggests debian/nagios-plugins-standard.substvars.in \
| sed -e 's/shlibs:Suggests/shlibs:Recommends/' \
>> debian/nagios-plugins-standard.substvars
- dh_gencontrol -s
+ dh_gencontrol -s -- $(DEPSUBSTVARS)
dh_md5sums -s
dh_builddeb -s
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git
More information about the Pkg-nagios-changes
mailing list