summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61b0173)
raw | patch | inline | side by side (parent: 61b0173)
author | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 14 May 2003 21:39:48 +0000 (21:39 +0000) | ||
committer | Ton Voon <tonvoon@users.sourceforge.net> | |
Wed, 14 May 2003 21:39:48 +0000 (21:39 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@509 f882894a-f735-0410-b71e-b25c423dba1c
Makefile.am | patch | blob | history | |
pkg/solaris/pkginfo.in | patch | blob | history | |
pkg/solaris/solpkg | patch | blob | history |
diff --git a/Makefile.am b/Makefile.am
index 760d8e79f73bb3503e1b1e09b16bc40b0115da3f..02514aa0fe64ffbd0f11cdbda89315190e6961a3 100644 (file)
--- a/Makefile.am
+++ b/Makefile.am
sed "s/%%{VER}/${VER}/;s/%%{REL}/${REL}/;" $? > $@
# Solaris pkgmk
-BUILDDIR := $(shell pwd)/build-solaris
-PACKDIR := $(shell pwd)/build-pkg
-PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg
-PKGPFX := $(shell echo ${prefix} |sed -e 's@^/usr/local@@')
-VERSION=@PACKAGE_VERSION@
+BUILDDIR = build-solaris
+PACKDIR = build-pkg
+PKGSCRIPT = pkg/solaris/solpkg
solpkg:
if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
$(MAKE) all
- $(MAKE) DESTDIR=$(BUILDDIR) prefix=$(PKGPFX) install
+ $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install
$(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
- cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR)
+ cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR)
pkgclean:
rm -rf $(BUILDDIR) $(PACKDIR)
diff --git a/pkg/solaris/pkginfo.in b/pkg/solaris/pkginfo.in
index 9211fcf84df2c0a5cff93483b1237c1be6e1cdd1..c9dcced075573232314719bb47b2bb20ae349c92 100644 (file)
--- a/pkg/solaris/pkginfo.in
+++ b/pkg/solaris/pkginfo.in
VENDOR="Nagios Plugin Development Team"
EMAIL="nagiosplug-devel@lists.sourceforge.net"
PSTAMP="nag@REV_TIMESTAMP@"
-BASEDIR="/usr/local"
+BASEDIR="/"
CLASSES="none"
diff --git a/pkg/solaris/solpkg b/pkg/solaris/solpkg
index 0b82bce05578cca2d3a591667fe1f4deb6857828..00846d09223541469dbb9fda2d6ca62247f560a4 100755 (executable)
--- a/pkg/solaris/solpkg
+++ b/pkg/solaris/solpkg
die "Wrong location, please cd to <PKGBASE>/usr/local/ and run again.\n"
if ($pwd eq "");
-open (PREPROTO,"$find . -print |$pkgproto |") ||
+open (PREPROTO,"$find . -print |$egrep -v \"^.(/usr(/local)|/opt)?\$\" | $pkgproto |") ||
die "Unable to read prototype information ($!)\n";
open (PROTO,">$prototype") ||
die "Unable to write file prototype ($!)\n";