summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4460396)
raw | patch | inline | side by side (parent: 4460396)
author | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | |
Mon, 24 Mar 2003 17:45:01 +0000 (17:45 +0000) | ||
committer | Jeremy T. Bouse <undrgrid@users.sourceforge.net> | |
Mon, 24 Mar 2003 17:45:01 +0000 (17:45 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@459 f882894a-f735-0410-b71e-b25c423dba1c
Makefile.am | patch | blob | history | |
pkg/solaris/.cvsignore | [new file with mode: 0644] | patch | blob |
pkg/solaris/pkginfo.in | patch | blob | history | |
plugins/check_disk.c | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index 8cc151445d4dbc949d879a7fe06ee774631ecc7d..5e117a5d9435d5c064005981aab8c4d86380b1a5 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
# Solaris pkgmk
-BUILDDIR=`pwd`/build-solaris
-PACKDIR=`pwd`/build-pkg
+BUILDDIR := $(shell pwd)/build-solaris
+PACKDIR := $(shell pwd)/build-pkg
+PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg
VERSION=@PACKAGE_VERSION@
solpkg:
if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
$(MAKE) all
- $(MAKE) DESTDIR=$(BUILDDIR) install
+ $(MAKE) DESTDIR=$(BUILDDIR) prefix=/ install
$(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
- $(cd $(BUILDDIR) && `pwd`/pkg/solaris/solpkg $(PACKDIR))
+ cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR)
pkgclean:
rm -rf $(BUILDDIR) $(PACKDIR)
diff --git a/pkg/solaris/.cvsignore b/pkg/solaris/.cvsignore
--- /dev/null
+++ b/pkg/solaris/.cvsignore
@@ -0,0 +1,2 @@
+.cvsignore
+pkginfo
diff --git a/pkg/solaris/pkginfo.in b/pkg/solaris/pkginfo.in
index be4b97fa669ee2bd89979634be5edad7c7545133..9211fcf84df2c0a5cff93483b1237c1be6e1cdd1 100644 (file)
--- a/pkg/solaris/pkginfo.in
+++ b/pkg/solaris/pkginfo.in
-PKG="NPDTplugins"
-NAME="nagiosplugins"
+PKG="NAGplugin"
+NAME="nagios-plugins"
DESC="Nagios network monitoring plugins"
ARCH="@PKG_ARCH@"
VERSION="@PACKAGE_VERSION@,REV=@REV_DATESTAMP@"
CATEGORY="application"
VENDOR="Nagios Plugin Development Team"
EMAIL="nagiosplug-devel@lists.sourceforge.net"
-PSTAMP="sfw@REV_TIMESTAMP@"
+PSTAMP="nag@REV_TIMESTAMP@"
BASEDIR="/usr/local"
CLASSES="none"
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index a7dd5cce02e331e27c82c61f5c1e29f1dabdcb0e..347c4c77006c4e44c45fdb30d3537d0c9ce9389c 100644 (file)
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
#include <stdarg.h>
#include "../lib/fsusage.h"
#include "../lib/mountlist.h"
+#if HAVE_LIMITS_H
+# include <limits.h>
+#endif
/* If nonzero, show inode information. */
static int inode_format;