diff options
author | morr <morr@pkgsrc.org> | 2011-04-08 22:48:40 +0000 |
---|---|---|
committer | morr <morr@pkgsrc.org> | 2011-04-08 22:48:40 +0000 |
commit | c98892ea5e9a977e92fd646dc992d0d474e07a03 (patch) | |
tree | 61c9adf79f2fa9ebc5376f21f45e4ddabdf32c2b /net/nagios-plugin-mysql | |
parent | 92ea98aab860752e9e94ccf78a31921d5d9bfd42 (diff) | |
download | pkgsrc-c98892ea5e9a977e92fd646dc992d0d474e07a03.tar.gz |
Add DESTDIR support and LICENSE
Diffstat (limited to 'net/nagios-plugin-mysql')
-rw-r--r-- | net/nagios-plugin-mysql/Makefile | 6 | ||||
-rw-r--r-- | net/nagios-plugin-mysql/distinfo | 14 | ||||
-rw-r--r-- | net/nagios-plugin-mysql/patches/patch-ak | 45 | ||||
-rw-r--r-- | net/nagios-plugin-mysql/patches/patch-al | 4 | ||||
-rw-r--r-- | net/nagios-plugin-mysql/patches/patch-am | 4 |
5 files changed, 22 insertions, 51 deletions
diff --git a/net/nagios-plugin-mysql/Makefile b/net/nagios-plugin-mysql/Makefile index 4c6033d1ddd..2bca90904cf 100644 --- a/net/nagios-plugin-mysql/Makefile +++ b/net/nagios-plugin-mysql/Makefile @@ -1,12 +1,14 @@ -# $NetBSD: Makefile,v 1.8 2010/09/30 10:49:11 obache Exp $ +# $NetBSD: Makefile,v 1.9 2011/04/08 22:48:40 morr Exp $ # PKGNAME= nagios-plugin-mysql-${PLUGINSVERSION} -PKGREVISION= 2 CATEGORIES= net sysutils databases MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Nagios mysql plugin +LICENSE= gnu-gpl-v3 + +PKG_DESTDIR_SUPPORT= user-destdir DEPENDS+= nagios-plugins-${PLUGINSVERSION}{,nb[0-9]*}:../../net/nagios-plugins diff --git a/net/nagios-plugin-mysql/distinfo b/net/nagios-plugin-mysql/distinfo index 30d2cd362ff..f6dfbe2d936 100644 --- a/net/nagios-plugin-mysql/distinfo +++ b/net/nagios-plugin-mysql/distinfo @@ -1,8 +1,8 @@ -$NetBSD: distinfo,v 1.6 2009/12/15 18:59:54 bouyer Exp $ +$NetBSD: distinfo,v 1.7 2011/04/08 22:48:40 morr Exp $ -SHA1 (nagios-plugins-1.4.14.tar.gz) = b9998231f992c92b9370b62f15ac80323042f22c -RMD160 (nagios-plugins-1.4.14.tar.gz) = f4e1768d84474fc4fa2b59a52efe320c7cbefb3a -Size (nagios-plugins-1.4.14.tar.gz) = 1950729 bytes -SHA1 (patch-ak) = 801eaa64d88db20880c8b7e61922f198fc5791ac -SHA1 (patch-al) = 658079cb3669ffcf2b0d158816b048c412f78d01 -SHA1 (patch-am) = ed7e108505679e739449b5eed6101f307e23f436 +SHA1 (nagios-plugins-1.4.15.tar.gz) = 1faab309c06d37e559490fd852ecb0dc8a8ab610 +RMD160 (nagios-plugins-1.4.15.tar.gz) = c2780a3523cf4eaaed34a94c07f5f6bd6fb1f736 +Size (nagios-plugins-1.4.15.tar.gz) = 2095419 bytes +SHA1 (patch-ak) = dd9aba7a0930a6448e372b581ba04d62018a973b +SHA1 (patch-al) = 63e28ae36d671e773acfe6aeb45ab7603c112594 +SHA1 (patch-am) = adc95ba1037a7d7caab6dde6ca1e27e47754db62 diff --git a/net/nagios-plugin-mysql/patches/patch-ak b/net/nagios-plugin-mysql/patches/patch-ak index c3b74c269cd..3d1509c55ba 100644 --- a/net/nagios-plugin-mysql/patches/patch-ak +++ b/net/nagios-plugin-mysql/patches/patch-ak @@ -1,8 +1,8 @@ -$NetBSD: patch-ak,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ +$NetBSD: patch-ak,v 1.3 2011/04/08 22:48:41 morr Exp $ ---- gl/mountlist.c.orig 2007-01-24 23:47:25.000000000 +0100 +--- gl/mountlist.c.orig 2010-07-27 20:47:15.000000000 +0000 +++ gl/mountlist.c -@@ -57,7 +57,11 @@ char *strstr (); +@@ -52,7 +52,11 @@ # if HAVE_STRUCT_FSSTAT_F_FSTYPENAME # define FS_TYPE(Ent) ((Ent).f_fstypename) # else @@ -15,7 +15,7 @@ $NetBSD: patch-ak,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ # endif #endif /* MOUNTED_GETFSSTAT */ -@@ -104,6 +108,10 @@ char *strstr (); +@@ -99,6 +103,10 @@ # include <sys/statfs.h> #endif @@ -26,7 +26,7 @@ $NetBSD: patch-ak,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ #ifdef MOUNTED_LISTMNTENT # include <mntent.h> #endif -@@ -178,7 +186,7 @@ char *strstr (); +@@ -169,7 +177,7 @@ #if MOUNTED_GETMNTINFO @@ -35,7 +35,7 @@ $NetBSD: patch-ak,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ static char * fstype_to_string (short int t) { -@@ -275,9 +283,13 @@ fstype_to_string (short int t) +@@ -266,9 +274,13 @@ fstype_to_string (short int t) # endif static char * @@ -50,19 +50,7 @@ $NetBSD: patch-ak,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ return (char *) (fsp->f_fstypename); # else return fstype_to_string (fsp->f_type); -@@ -413,7 +425,11 @@ read_file_system_list (bool need_fs_type - - #ifdef MOUNTED_GETMNTINFO /* 4.4BSD. */ - { -+#ifdef STAT_STATVFS -+ struct statvfs *fsp; -+#else - struct statfs *fsp; -+#endif - int entries; - - entries = getmntinfo (&fsp, MNT_NOWAIT); -@@ -601,9 +617,17 @@ read_file_system_list (bool need_fs_type +@@ -592,9 +604,17 @@ read_file_system_list (bool need_fs_type { int numsys, counter; size_t bufsize; @@ -80,22 +68,3 @@ $NetBSD: patch-ak,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ if (numsys < 0) return (NULL); if (SIZE_MAX / sizeof *stats <= numsys) -@@ -666,10 +690,18 @@ read_file_system_list (bool need_fs_type - # ifdef GETFSTYP /* SVR3. */ - if (need_fs_type) - { -+#ifdef STAT_STATVFS -+ struct statvfs fsd; -+#else - struct statfs fsd; -+#endif - char typebuf[FSTYPSZ]; - -+#ifdef STAT_STATVFS -+ if (statvfs (me->me_mountdir, &fsd, sizeof fsd, 0) != -1 -+#else - if (statfs (me->me_mountdir, &fsd, sizeof fsd, 0) != -1 -+#endif - && sysfs (GETFSTYP, fsd.f_fstyp, typebuf) != -1) - { - me->me_type = xstrdup (typebuf); diff --git a/net/nagios-plugin-mysql/patches/patch-al b/net/nagios-plugin-mysql/patches/patch-al index a88fb89ef0b..c673daf1ce5 100644 --- a/net/nagios-plugin-mysql/patches/patch-al +++ b/net/nagios-plugin-mysql/patches/patch-al @@ -1,6 +1,6 @@ -$NetBSD: patch-al,v 1.2 2008/05/27 21:22:02 tonnerre Exp $ +$NetBSD: patch-al,v 1.3 2011/04/08 22:48:41 morr Exp $ ---- contrib/check_axis.sh.orig 2003-05-26 12:09:23.000000000 +0200 +--- contrib/check_axis.sh.orig 2010-07-27 20:47:15.000000000 +0000 +++ contrib/check_axis.sh @@ -5,7 +5,7 @@ port=$2 usr=$3 diff --git a/net/nagios-plugin-mysql/patches/patch-am b/net/nagios-plugin-mysql/patches/patch-am index 495de47227e..440b6569158 100644 --- a/net/nagios-plugin-mysql/patches/patch-am +++ b/net/nagios-plugin-mysql/patches/patch-am @@ -1,6 +1,6 @@ -$NetBSD: patch-am,v 1.1 2006/10/16 08:40:45 seb Exp $ +$NetBSD: patch-am,v 1.2 2011/04/08 22:48:41 morr Exp $ ---- contrib/check_mssql.sh.orig 2003-08-05 09:56:13.000000000 +0000 +--- contrib/check_mssql.sh.orig 2010-07-27 20:47:15.000000000 +0000 +++ contrib/check_mssql.sh @@ -35,10 +35,10 @@ pswd=$3 srv=$4 |