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