SF.net SVN: gar:[25462] csw/mgar/pkg/nrpe/trunk/Makefile
cgrzemba at users.sourceforge.net
cgrzemba at users.sourceforge.net
Wed Dec 16 16:46:10 CET 2015
Revision: 25462
http://sourceforge.net/p/gar/code/25462
Author: cgrzemba
Date: 2015-12-16 15:46:10 +0000 (Wed, 16 Dec 2015)
Log Message:
-----------
nrpe/trunk: update recipe while ips packaging tests
Modified Paths:
--------------
csw/mgar/pkg/nrpe/trunk/Makefile
Modified: csw/mgar/pkg/nrpe/trunk/Makefile
===================================================================
--- csw/mgar/pkg/nrpe/trunk/Makefile 2015-12-16 15:29:10 UTC (rev 25461)
+++ csw/mgar/pkg/nrpe/trunk/Makefile 2015-12-16 15:46:10 UTC (rev 25462)
@@ -2,8 +2,6 @@
VERSION = 2.15
GARTYPE = v2
-SPKG_DESC_CSWnrpe = Nagios remote plugin executor
-SPKG_DESC_CSWnrpe-plugin = Nagios plugin that connects to nrpe demon
define BLURB
NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines. This allows you to monitor remote machine metrics (disk usage, CPU load, etc.). NRPE can also communicate with some of the Windows agent addons, so you can execute scripts and check metrics on remote Windows machines as well.
@@ -26,79 +24,83 @@
PATCHFILES_isa-sparcv8plus-size-8k = 0002-changing-packetbuffer-length-to-8k.patch
PATCHFILES_isa-pentium_pro-size-8k = 0002-changing-packetbuffer-length-to-8k.patch
+# needs autoconf!
+# PATCHFILES += 0003-remove-chown-on-install.patch
-PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386
+#
+# replace /usr/local
+#
+REINPLACE_USRLOCAL += .*/nrpe-2.15/SECURITY
+REINPLACE_USRLOCAL += .*/nrpe-2.15/README
+REINPLACE_USRLOCAL += sample-config/nrpe.cfg.in
+
+PACKAGING_PLATFORMS = solaris10-sparc solaris10-i386 solaris11-i386
+
+# GARCOMPILER = GCC5
+
#
#
#
+PRESERVECONF += $(sysconfdir)/nrpe.cfg
+USERGROUP += $(sysconfdir)/pkg/CSWnrpe/cswusergroup
+INITSMF += $(sysconfdir)/init.d/cswnrpe
-PACKAGES = CSWnrpe CSWnrpe-plugin
-CATALOGNAME_CSWnrpe = nrpe
-CATALOGNAME_CSWnrpe-plugin = nrpe_plugin
+# OBSOLETED_BY_CSWnrpe-plugin = CSWnrpeplugin
+# SPKG_CATALOG_NAME_CSWnrpeplugin = nrpe_plugin_stub
-OBSOLETED_BY_CSWnrpe-plugin = CSWnrpeplugin
-SPKG_CATALOG_NAME_CSWnrpeplugin = nrpe_plugin_stub
-
#
# files for CSWnrpe
#
-PKGFILES_CSWnrpe = /opt/csw/bin/nrpe_1k
-PKGFILES_CSWnrpe += /opt/csw/bin/nrpe_8k
-PKGFILES_CSWnrpe += /opt/csw/bin/nrpe
-PKGFILES_CSWnrpe += /etc/opt/csw/nrpe.cfg.CSW
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/NRPE.pdf
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/LEGAL
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/license
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/README
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/README_8k
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/README.SSL
-PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/SECURITY
-PKGFILES_CSWnrpe += /opt/csw/nagios
-PKGFILES_CSWnrpe += /etc/opt/csw/init.d/cswnrpe
-PKGFILES_CSWnrpe += /etc/opt/csw/pkg/CSWnrpe/cswusergroup
-PKGFILES_CSWnrpe += /opt/csw/etc/templates/CSWnrpe$(CFGDIR)
-PKGFILES_CSWnrpe += /opt/csw/etc/templates/CSWnrpe$(CFGDIR)/nrpe.cfg
+PACKAGES += CSWnrpe
+SPKG_DESC_CSWnrpe = Nagios remote plugin executor
+# PKGFILES_CSWnrpe += /opt/csw/bin/nrpe_1k
+# PKGFILES_CSWnrpe += /opt/csw/bin/nrpe_8k
+# PKGFILES_CSWnrpe += /opt/csw/bin/nrpe
+# PKGFILES_CSWnrpe += /etc/opt/csw/nrpe.cfg
+# PKGFILES_CSWnrpe += /etc/opt/csw/init.d/cswnrpe
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/NRPE.pdf
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/LEGAL
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/license
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/README
+# PKGFILES_CSWnrpe_SHARED += /opt/csw/share/doc/nrpe/README_8k
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/README.SSL
+# PKGFILES_CSWnrpe += /opt/csw/share/doc/nrpe/SECURITY
+# PKGFILES_CSWnrpe += /opt/csw/nagios
+RUNTIME_DEP_PKGS_CSWnrpe += CSWlibwrap1
+RUNTIME_DEP_PKGS_CSWnrpe += CSWlibssl1-0-0
+# README_8k should be in every package
+CHECKPKG_OVERRIDES_CSWnrpe += file-collision|/opt/csw/share/doc/nrpe/README_8k|CSWnrpe|CSWnrpe-plugin
+CHECKPKG_OVERRIDES_CSWnrpe-plugin += file-collision|/opt/csw/share/doc/nrpe/README_8k|CSWnrpe|CSWnrpe-plugin
+
+
#
# files for CSWnrpe-plugin
#
-PKGFILES_CSWnrpe-plugin = /opt/csw/libexec/nagios-plugins
+PACKAGES += CSWnrpe-plugin
+SPKG_DESC_CSWnrpe-plugin = Nagios plugin that connects to nrpe demon
+PKGFILES_CSWnrpe-plugin += /opt/csw/libexec/nagios-plugins
PKGFILES_CSWnrpe-plugin += /opt/csw/libexec/nagios-plugins/check_nrpe
PKGFILES_CSWnrpe-plugin += /opt/csw/libexec/nagios-plugins/check_nrpe_1k
PKGFILES_CSWnrpe-plugin += /opt/csw/libexec/nagios-plugins/check_nrpe_8k
PKGFILES_CSWnrpe-plugin += /opt/csw/share/doc/nrpe
-PKGFILES_CSWnrpe-plugin += /opt/csw/share/doc/nrpe/README_8k
+PKGFILES_CSWnrpe-plugin_SHARED += /opt/csw/share/doc/nrpe/README_8k
PKGFILES_CSWnrpe-plugin += /opt/csw/share/doc/nrpe_plugin
PKGFILES_CSWnrpe-plugin += /opt/csw/share/doc/nrpe_plugin/license
+RUNTIME_DEP_PKGS_CSWnrpe-plugin += CSWlibssl1-0-0
#
-# replace /usr/local
-#
-
-REINPLACE_USRLOCAL += .*/nrpe-2.15/SECURITY
-REINPLACE_USRLOCAL += .*/nrpe-2.15/README
-REINPLACE_USRLOCAL += sample-config/nrpe.cfg.in
-
-#
# migrate configuration
#
-MIGRATE_FILES_CSWnrpe = nrpe.cfg
-MIGRATE_SOURCE_DIR = /opt/csw/etc
-MIGRATE_DEST_DIR = /etc/opt/csw
+# MIGRATE_FILES_CSWnrpe = nrpe.cfg
+# MIGRATE_SOURCE_DIR = /opt/csw/etc
+# MIGRATE_DEST_DIR = /etc/opt/csw
-#
-#
-#
-
-RUNTIME_DEP_PKGS_CSWnrpe-plugin += CSWlibssl1-0-0
-RUNTIME_DEP_PKGS_CSWnrpe += CSWlibwrap1
-RUNTIME_DEP_PKGS_CSWnrpe += CSWlibssl1-0-0
-
LICENSE = LEGAL
NOISALIST = 1
@@ -120,6 +122,7 @@
datadir = $(prefix)/share
TEST_TARGET = all
+
INSTALL_SCRIPTS = custom
MERGE_SCRIPTS_isa-sparcv8plus-size-1k = copy-all
@@ -131,20 +134,12 @@
#
#
#
-
-INITSMF = /etc/opt/csw/init.d/cswnrpe
-USERGROUP = /etc/opt/csw/pkg/CSWnrpe/cswusergroup
#POSTMSG = /opt/csw/share/doc/nrpe/README.CSW
#
# overrides
#
-# README_8k should be in every package
-
-CHECKPKG_OVERRIDES_CSWnrpe += file-collision|/opt/csw/share/doc/nrpe/README_8k|CSWnrpe|CSWnrpe-plugin
-CHECKPKG_OVERRIDES_CSWnrpe-plugin += file-collision|/opt/csw/share/doc/nrpe/README_8k|CSWnrpe|CSWnrpe-plugin
-
#
#
#
@@ -155,13 +150,15 @@
CFGDIR=$(sysconfdir)
LIBEXECDIR=$(libexecdir)
BINDIR=$(bindir)
-CSWnrpe_TEMPLATEDIR = /opt/csw/etc/templates/CSWnrpe$(CFGDIR)
+# pre-configure:
+# cd $(WORKSRC) && autoconf
+# @$(MAKECOOKIE)
+
install-custom:
@ginstall -m 775 -d $(DESTDIR)$(DOCDIR)
@ginstall -m 755 -d $(DESTDIR)$(LIBEXECDIR)
@ginstall -m 755 -d $(DESTDIR)$(BINDIR)
- @ginstall -m 755 -d $(DESTDIR)/nagios
@ginstall -m 755 $(WORKSRC)/src/check_nrpe $(DESTDIR)$(LIBEXECDIR)/check_nrpe_1k
@ln -s $(LIBEXECDIR)/check_nrpe_1k $(DESTDIR)$(LIBEXECDIR)/check_nrpe
@ginstall -m 755 $(WORKSRC)/src/nrpe $(DESTDIR)$(BINDIR)/nrpe_1k
@@ -172,21 +169,13 @@
@ginstall -m 644 $(WORKSRC)/README $(DESTDIR)$(DOCDIR)
@ginstall -m 644 $(WORKSRC)/README.SSL $(DESTDIR)$(DOCDIR)
@ginstall -m 644 $(WORKSRC)/SECURITY $(DESTDIR)$(DOCDIR)
+ # @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSWnrpe
+ # @ginstall -m 644 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWnrpe/cswusergroup
@#
- @# configuration file for CSWnrpe -> cswcptemplates
- @#
- @ginstall -m 775 -d $(DESTDIR)$(CSWnrpe_TEMPLATEDIR)
- @ginstall -m 644 $(WORKSRC)/sample-config/nrpe.cfg $(DESTDIR)$(CSWnrpe_TEMPLATEDIR)/nrpe.cfg
- @#
- @# create user and group -> cswusergroup
- @#
- @ginstall -m 755 -d $(DESTDIR)/etc/opt/csw/pkg/CSWnrpe
- @ginstall -m 644 $(FILEDIR)/cswusergroup $(DESTDIR)/etc/opt/csw/pkg/CSWnrpe/cswusergroup
- @#
@# Start / Stop script
- @#
@ginstall -d $(DESTDIR)/etc/$(BUILD_PREFIX)/init.d
@ginstall -m 755 $(FILEDIR)/cswnrpe $(DESTDIR)/etc/$(BUILD_PREFIX)/init.d/cswnrpe
+ cd $(WORKSRC) && gmake install-daemon-config DESTDIR=$(DESTDIR)
@$(MAKECOOKIE)
merge-copy-nrpe-only:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list