Minor changes to build for Solaris packages

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@459 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
Jeremy T. Bouse 2003-03-24 17:45:01 +00:00
parent 446039608c
commit ed1fda6bd9
4 changed files with 13 additions and 7 deletions

View file

@ -18,17 +18,18 @@ nagios-plugins.spec: nagios-plugins.spec.in
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)

2
pkg/solaris/.cvsignore Normal file
View file

@ -0,0 +1,2 @@
.cvsignore
pkginfo

View file

@ -1,12 +1,12 @@
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"

View file

@ -64,6 +64,9 @@ const char *options = "\
#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;