diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2003-05-14 21:39:48 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2003-05-14 21:39:48 (GMT) |
commit | 7abe670895f8c4921c93d518ccb56170cdc33629 (patch) | |
tree | 1f4e11eb8469689b6380d49aa7fab0dd29eea5e9 | |
parent | 61b0173555ec08f2b03182c9113f1abbc40a4291 (diff) | |
download | monitoring-plugins-7abe670895f8c4921c93d518ccb56170cdc33629.tar.gz |
Remove dependency on gnu make
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@509 f882894a-f735-0410-b71e-b25c423dba1c
-rw-r--r-- | Makefile.am | 12 | ||||
-rw-r--r-- | pkg/solaris/pkginfo.in | 2 | ||||
-rwxr-xr-x | pkg/solaris/solpkg | 2 |
3 files changed, 7 insertions, 9 deletions
diff --git a/Makefile.am b/Makefile.am index 760d8e7..02514aa 100644 --- a/Makefile.am +++ b/Makefile.am | |||
@@ -18,19 +18,17 @@ 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 := $(shell pwd)/build-solaris | 21 | BUILDDIR = build-solaris |
22 | PACKDIR := $(shell pwd)/build-pkg | 22 | PACKDIR = build-pkg |
23 | PKGSCRIPT := $(shell pwd)/pkg/solaris/solpkg | 23 | PKGSCRIPT = pkg/solaris/solpkg |
24 | PKGPFX := $(shell echo ${prefix} |sed -e 's@^/usr/local@@') | ||
25 | VERSION=@PACKAGE_VERSION@ | ||
26 | 24 | ||
27 | solpkg: | 25 | solpkg: |
28 | if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi | 26 | if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi |
29 | if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi | 27 | if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi |
30 | $(MAKE) all | 28 | $(MAKE) all |
31 | $(MAKE) DESTDIR=$(BUILDDIR) prefix=$(PKGPFX) install | 29 | $(MAKE) DESTDIR=$$PWD/$(BUILDDIR) install |
32 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) | 30 | $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR) |
33 | cd $(BUILDDIR) && $(PERL) $(PKGSCRIPT) $(PACKDIR) | 31 | cd $(BUILDDIR) && $(PERL) ../$(PKGSCRIPT) ../$(PACKDIR) |
34 | 32 | ||
35 | pkgclean: | 33 | pkgclean: |
36 | rm -rf $(BUILDDIR) $(PACKDIR) | 34 | rm -rf $(BUILDDIR) $(PACKDIR) |
diff --git a/pkg/solaris/pkginfo.in b/pkg/solaris/pkginfo.in index 9211fcf..c9dcced 100644 --- a/pkg/solaris/pkginfo.in +++ b/pkg/solaris/pkginfo.in | |||
@@ -7,6 +7,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="nag@REV_TIMESTAMP@" | 9 | PSTAMP="nag@REV_TIMESTAMP@" |
10 | BASEDIR="/usr/local" | 10 | BASEDIR="/" |
11 | CLASSES="none" | 11 | CLASSES="none" |
12 | 12 | ||
diff --git a/pkg/solaris/solpkg b/pkg/solaris/solpkg index 0b82bce..00846d0 100755 --- a/pkg/solaris/solpkg +++ b/pkg/solaris/solpkg | |||
@@ -18,7 +18,7 @@ if ($pwd =~ '\/usr\/local') { | |||
18 | die "Wrong location, please cd to <PKGBASE>/usr/local/ and run again.\n" | 18 | die "Wrong location, please cd to <PKGBASE>/usr/local/ and run again.\n" |
19 | if ($pwd eq ""); | 19 | if ($pwd eq ""); |
20 | 20 | ||
21 | open (PREPROTO,"$find . -print |$pkgproto |") || | 21 | open (PREPROTO,"$find . -print |$egrep -v \"^.(/usr(/local)|/opt)?\$\" | $pkgproto |") || |
22 | die "Unable to read prototype information ($!)\n"; | 22 | die "Unable to read prototype information ($!)\n"; |
23 | open (PROTO,">$prototype") || | 23 | open (PROTO,">$prototype") || |
24 | die "Unable to write file prototype ($!)\n"; | 24 | die "Unable to write file prototype ($!)\n"; |