diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 32 |
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 @@ | |||
3 | SUBDIRS = lib plugins plugins-scripts | 3 | SUBDIRS = lib plugins plugins-scripts |
4 | 4 | ||
5 | EXTRA_DIST = CODING FAQ LEGAL REQUIREMENTS SUPPORT \ | 5 | EXTRA_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 | ||
8 | ACLOCAL_AMFLAGS = -I lib | 8 | ACLOCAL_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 |
21 | PACKDIR=build-pkg | 21 | BUILDDIR=`pwd`/build-solaris |
22 | PACKDIR=`pwd`/build-pkg | ||
22 | VERSION=@PACKAGE_VERSION@ | 23 | VERSION=@PACKAGE_VERSION@ |
23 | 24 | ||
24 | Prototype: | 25 | solpkg: |
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 | |||
36 | pkgmap: ../Prototype | ||
37 | mkdir -p $(PACKDIR)/nagiosp | ||
38 | cd $(PACKDIR)/nagiosp | ||
39 | pkgmk -o -r / -f ../Prototype -d $(PACKDIR) nagiosp | ||
40 | cd .. | ||
41 | |||
42 | nagios.SPARC.pkg.tar.gz: pkgmap | ||
43 | cd $(PACKDIR) && tar -cf - nagiosp | gzip -9 -c > ../nagiosp.SPARC.pkg.tar.gz | ||
44 | |||
45 | pkgset: nagiosp.SPARC.pkg.tar.gz | ||
46 | 32 | ||
47 | pkgclean: | 33 | pkgclean: |
48 | rm -rf Prototype nagiosp.SPARC.pkg.tar.gz | 34 | rm -rf $(BUILDDIR) $(PACKDIR) |