net/nagios-plugins: Add dependency on libpq (postgresql) and fix headers
authorAndy Boyett <agb@openwrt.org>
Sat, 2 Aug 2008 03:19:51 +0000 (03:19 +0000)
committerAndy Boyett <agb@openwrt.org>
Sat, 2 Aug 2008 03:19:51 +0000 (03:19 +0000)
SVN-Revision: 12070

net/nagios-plugins/Makefile
net/nagios-plugins/patches/003-pgsl-header-fix.patch [new file with mode: 0644]

index 1c919bfcb1d5832768d3d508b9033edf6f12bdf5..5ef65c714a20471cd8d8f0bcaa8adc4205ecf1ed 100644 (file)
@@ -1,4 +1,4 @@
-# 
+#
 # Copyright (C) 2008 OpenWrt.org
 #
 # This is free software, licensed under the GNU General Public License v2.
@@ -24,7 +24,7 @@ define Package/nagios-plugins
   SECTION:=net
   CATEGORY:=Network
   SUBMENU:=Monitoring
-  DEPENDS:=+uclibcxx
+  DEPENDS:=+uclibcxx +libpq
   TITLE:=plugins for Nagios checks
   URL:=http://nagiosplug.sourceforge.net/
 endef
diff --git a/net/nagios-plugins/patches/003-pgsl-header-fix.patch b/net/nagios-plugins/patches/003-pgsl-header-fix.patch
new file mode 100644 (file)
index 0000000..8129754
--- /dev/null
@@ -0,0 +1,11 @@
+--- nagios-plugins-1.4.12/plugins/check_pgsql.orig.c   2008-08-01 16:05:51.000000000 -0700
++++ nagios-plugins-1.4.12/plugins/check_pgsql.c        2008-08-01 16:06:17.000000000 -0700
+@@ -41,7 +41,7 @@
+ #include "netutils.h"
+ #include <libpq-fe.h>
+-#include <pg_config_manual.h>
++#include <postgresql/server/pg_config_manual.h>
+ #define NAMEDATALEN 64
+ #define DEFAULT_DB "template1"