1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = lib plugins plugins-scripts
5 EXTRA_DIST = REQUIREMENTS SUPPORT acconfig.h subst.in subst.sh Helper.pm \
6 contrib nagios-plugins.spec.in
8 ACLOCAL_AMFLAGS = -I lib
10 dist-hook:
11 sed "s/%%{VER}/@VER@/;s/%%{REL}/@REL@/;" $(srcdir)/nagios-plugins.spec.in > $(distdir)/nagios-plugins.spec
13 test:
14 cd plugins; $(MAKE) test
15 cd plugins-scripts; $(MAKE) test
17 # Solaris pkgmk
18 PACKDIR=build-pkg
19 VERSION=@PACKAGE_VERSION@
21 Prototype:
22 if [ ! -d $(PACKDIR) ] ; then mkdir $(PACKDIR); fi
23 cd build-solaris
24 $(MAKE) all
25 $(MAKE) DESTDIR=../$(PACKDIR) install
26 cd ..
27 echo i pkginfo> Prototype
28 if [ -f checkinstall ] ; then echo i checkinstall>> Prototype; fi
29 if [ -f preinstall ] ; then echo i preinstall>> Prototype; fi
30 if [ -f postinstall ] ; then echo i postinstall>> Prototype; fi
31 pkgproto $(PACKDIR)=/ | sed -e "s|$(LOGNAME) $(GROUP)$$|root root|" | egrep -v "(s|d) none (/|/etc|/var|/usr|/usr/local) " >> Prototype
33 pkgmap: ../Prototype
34 mkdir -p $(PACKDIR)/nagiosp
35 cd $(PACKDIR)/nagiosp
36 pkgmk -o -r / -f ../Prototype -d $(PACKDIR) nagiosp
37 cd ..
39 nagios.SPARC.pkg.tar.gz: pkgmap
40 cd $(PACKDIR) && tar -cf - nagiosp | gzip -9 -c > ../nagiosp.SPARC.pkg.tar.gz
42 pkgset: nagiosp.SPARC.pkg.tar.gz
44 pkgclean:
45 rm -rf Prototype nagiosp.SPARC.pkg.tar.gz