diff options
-rw-r--r-- | Makefile.am | 9 | ||||
-rw-r--r-- | pkg/solaris/.cvsignore | 2 | ||||
-rw-r--r-- | pkg/solaris/pkginfo.in | 6 | ||||
-rw-r--r-- | plugins/check_disk.c | 3 |
4 files changed, 13 insertions, 7 deletions
diff --git a/Makefile.am b/Makefile.am index 8cc15144..5e117a5d 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -18,17 +18,18 @@ nagios-plugins.spec: nagios-plugins.spec.in | |||
18 | sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@ | 18 | sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@ |
19 | 19 | ||
20 | # Solaris pkgmk | 20 | # Solaris pkgmk |
21 | BUILDDIR=`pwd`/build-solaris | 21 | BUILDDIR := $(shell pwd)/build-solaris |
22 | PACKDIR=`pwd`/build-pkg | 22 | PACKDIR := $(shell pwd)/build-pkg |
23 | PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg | ||
23 | VERSION=@PACKAGE_VERSION@ | 24 | VERSION=@PACKAGE_VERSION@ |
24 | 25 | ||
25 | solpkg: | 26 | solpkg: |
26 | if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi | 27 | if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi |
27 | if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi | 28 | if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi |
28 | $(MAKE) all | 29 | $(MAKE) all |
29 | $(MAKE) DESTDIR=$(BUILDDIR) install | 30 | $(MAKE) DESTDIR=$(BUILDDIR) prefix=/ install |
30 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) | 31 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) |
31 | $(cd $(BUILDDIR) && `pwd`/pkg/solaris/solpkg $(PACKDIR)) | 32 | cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR) |
32 | 33 | ||
33 | pkgclean: | 34 | pkgclean: |
34 | rm -rf $(BUILDDIR) $(PACKDIR) | 35 | rm -rf $(BUILDDIR) $(PACKDIR) |
diff --git a/pkg/solaris/.cvsignore b/pkg/solaris/.cvsignore new file mode 100644 index 00000000..a6bb7e4c --- /dev/null +++ b/pkg/solaris/.cvsignore | |||
@@ -0,0 +1,2 @@ | |||
1 | .cvsignore | ||
2 | pkginfo | ||
diff --git a/pkg/solaris/pkginfo.in b/pkg/solaris/pkginfo.in index be4b97fa..9211fcf8 100644 --- a/pkg/solaris/pkginfo.in +++ b/pkg/solaris/pkginfo.in | |||
@@ -1,12 +1,12 @@ | |||
1 | PKG="NPDTplugins" | 1 | PKG="NAGplugin" |
2 | NAME="nagiosplugins" | 2 | NAME="nagios-plugins" |
3 | DESC="Nagios network monitoring plugins" | 3 | DESC="Nagios network monitoring plugins" |
4 | ARCH="@PKG_ARCH@" | 4 | ARCH="@PKG_ARCH@" |
5 | VERSION="@PACKAGE_VERSION@,REV=@REV_DATESTAMP@" | 5 | VERSION="@PACKAGE_VERSION@,REV=@REV_DATESTAMP@" |
6 | CATEGORY="application" | 6 | CATEGORY="application" |
7 | VENDOR="Nagios Plugin Development Team" | 7 | VENDOR="Nagios Plugin Development Team" |
8 | EMAIL="nagiosplug-devel@lists.sourceforge.net" | 8 | EMAIL="nagiosplug-devel@lists.sourceforge.net" |
9 | PSTAMP="sfw@REV_TIMESTAMP@" | 9 | PSTAMP="nag@REV_TIMESTAMP@" |
10 | BASEDIR="/usr/local" | 10 | BASEDIR="/usr/local" |
11 | CLASSES="none" | 11 | CLASSES="none" |
12 | 12 | ||
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index a7dd5cce..347c4c77 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -64,6 +64,9 @@ const char *options = "\ | |||
64 | #include <stdarg.h> | 64 | #include <stdarg.h> |
65 | #include "../lib/fsusage.h" | 65 | #include "../lib/fsusage.h" |
66 | #include "../lib/mountlist.h" | 66 | #include "../lib/mountlist.h" |
67 | #if HAVE_LIMITS_H | ||
68 | # include <limits.h> | ||
69 | #endif | ||
67 | 70 | ||
68 | /* If nonzero, show inode information. */ | 71 | /* If nonzero, show inode information. */ |
69 | static int inode_format; | 72 | static int inode_format; |