summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am32
1 files changed, 9 insertions, 23 deletions
diff --git a/Makefile.am b/Makefile.am
index 33182593..8cc15144 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@
3SUBDIRS = lib plugins plugins-scripts 3SUBDIRS = lib plugins plugins-scripts
4 4
5EXTRA_DIST = CODING FAQ LEGAL REQUIREMENTS SUPPORT \ 5EXTRA_DIST = CODING FAQ LEGAL REQUIREMENTS SUPPORT \
6 Helper.pm contrib nagios-plugins.spec.in 6 Helper.pm contrib pkg nagios-plugins.spec.in
7 7
8ACLOCAL_AMFLAGS = -I lib 8ACLOCAL_AMFLAGS = -I lib
9 9
@@ -18,31 +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
21PACKDIR=build-pkg 21BUILDDIR=`pwd`/build-solaris
22PACKDIR=`pwd`/build-pkg
22VERSION=@PACKAGE_VERSION@ 23VERSION=@PACKAGE_VERSION@
23 24
24Prototype: 25solpkg:
26 if [ ! -d $(BUILDDIR) ] ; then mkdir $(BUILDDIR); fi
25 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi 27 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
26 cd build-solaris
27 $(MAKE) all 28 $(MAKE) all
28 $(MAKE) DESTDIR=../$(PACKDIR) install 29 $(MAKE) DESTDIR=$(BUILDDIR) install
29 cd .. 30 $(INSTALL) pkg/solaris/pkginfo $(BUILDDIR)
30 echo i pkginfo> Prototype 31 $(cd $(BUILDDIR) && `pwd`/pkg/solaris/solpkg $(PACKDIR))
31 if [ -f checkinstall ] ; then echo i checkinstall>> Prototype; fi
32 if [ -f preinstall ] ; then echo i preinstall>> Prototype; fi
33 if [ -f postinstall ] ; then echo i postinstall>> Prototype; fi
34 pkgproto $(PACKDIR)=/ | sed -e "s|$(LOGNAME) $(GROUP)$$|root root|" | egrep -v "(s|d) none (/|/etc|/var|/usr|/usr/local) " >> Prototype
35
36pkgmap: ../Prototype
37 mkdir -p $(PACKDIR)/nagiosp
38 cd $(PACKDIR)/nagiosp
39 pkgmk -o -r / -f ../Prototype -d $(PACKDIR) nagiosp
40 cd ..
41
42nagios.SPARC.pkg.tar.gz: pkgmap
43 cd $(PACKDIR) && tar -cf - nagiosp | gzip -9 -c > ../nagiosp.SPARC.pkg.tar.gz
44
45pkgset: nagiosp.SPARC.pkg.tar.gz
46 32
47pkgclean: 33pkgclean:
48 rm -rf Prototype nagiosp.SPARC.pkg.tar.gz 34 rm -rf $(BUILDDIR) $(PACKDIR)