SF.net SVN: gar:[25364] csw/mgar/pkg/zabbix/trunk/Makefile

janholzh at users.sourceforge.net janholzh at users.sourceforge.net
Mon Nov 9 17:59:22 CET 2015


Revision: 25364
          http://sourceforge.net/p/gar/code/25364
Author:   janholzh
Date:     2015-11-09 16:59:22 +0000 (Mon, 09 Nov 2015)
Log Message:
-----------
zabbix/trunk: more addjustments

Modified Paths:
--------------
    csw/mgar/pkg/zabbix/trunk/Makefile

Modified: csw/mgar/pkg/zabbix/trunk/Makefile
===================================================================
--- csw/mgar/pkg/zabbix/trunk/Makefile	2015-11-06 11:47:59 UTC (rev 25363)
+++ csw/mgar/pkg/zabbix/trunk/Makefile	2015-11-09 16:59:22 UTC (rev 25364)
@@ -12,6 +12,9 @@
 MASTER_SITES = $(SF_MIRROR)
 DISTFILES  = $(DISTNAME).tar.gz
 
+GARCOMPILER = SOS12U3
+
+
 # PACKAGING_PLATFORMS += solaris9-sparc solaris9-i386
 PACKAGING_PLATFORMS += solaris10-sparc solaris10-i386
 
@@ -19,6 +22,9 @@
 REINPLACE_MATCH_etc = /usr/local/etc
 REINPLACE_WITH_etc = $(sysconfdir)
 REINPLACE_FILES_etc += conf/zabbix_proxy.conf
+REINPLACE_FILES_etc += conf/zabbix_agentd.conf
+REINPLACE_FILES_etc += conf/zabbix_agent.conf
+REINPLACE_FILES_etc += conf/zabbix_server.conf
 
 # This is just for the server which is in 64 bit only on Solars 10
 BUILD64-5.9 =
@@ -33,13 +39,9 @@
 # PKGFILES is catchall
 RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibiconv2
 RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibcurl4
-RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibssh2-1
-#RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibmysqlclient18
-RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibpq5
-RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibnetsnmp30
 RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWlibldap2-4-2
 RUNTIME_DEP_PKGS_CSWzabbix-agent += CSWliblber2-4-2
-RUNTIME_DEP_PKGS_CSWzabbix-agent_sparc += CSWlibintl8
+#RUNTIME_DEP_PKGS_CSWzabbix-agent_sparc += CSWlibintl8
 
 # Linker anomaly
 RUNTIME_DEP_PKGS_CSWzabbix-agent += $(RUNTIME_DEP_PKGS_CSWzabbix-agent_$(GARCH))
@@ -47,13 +49,17 @@
 # These are just examples
 #CHECKPKG_OVERRIDES_CSWzabbix-agent += file-with-bad-content|/usr/local|root/opt/csw/share/man/man8/zabbix_agentd.8
 #CHECKPKG_OVERRIDES_CSWzabbix-agent += file-with-bad-content|/usr/local|root/opt/csw/share/man/man1/zabbix_sender.1
-CHECKPKG_OVERRIDES_CSWzabbix-agent += file-with-bad-content|/usr/local|root/etc/opt/csw/zabbix_agentd.conf.CSW
-CHECKPKG_OVERRIDES_CSWzabbix-agent += file-with-bad-content|/usr/local|root/etc/opt/csw/zabbix_agent.conf.CSW
+#CHECKPKG_OVERRIDES_CSWzabbix-agent += file-with-bad-content|/usr/local|root/etc/opt/csw/zabbix_agentd.conf.CSW
+#CHECKPKG_OVERRIDES_CSWzabbix-agent += file-with-bad-content|/usr/local|root/etc/opt/csw/zabbix_agent.conf.CSW
 
 PACKAGES-5.10 += CSWzabbix-server
 PACKAGES += $(PACKAGES-$(GAROSREL))
 SPKG_DESC_CSWzabbix-server = Zabbix monitoring system server
 PKGFILES_CSWzabbix-server += $(call baseisadirs,$(sbindir),zabbix_server)
+PKGFILES_CSWzabbix-server += $(mandir)/man8/zabbix_server\.8
+PKGFILES_CSWzabbix-server += $(sysconfdir)/zabbix_server\.conf\.CSW
+PKGFILES_CSWzabbix-server += $(sysconfdir)/zabbix_proxy\.conf\.d
+PKGFILES_CSWzabbix-server += /opt/csw/share/zabbix/frontends/php/.*
 #RUNTIME_DEP_PKGS_CSWzabbix-server += CSWlibmysqlclient18
 RUNTIME_DEP_PKGS_CSWzabbix-server += CSWlibpq5
 RUNTIME_DEP_PKGS_CSWzabbix-server += CSWlibiconv2
@@ -64,6 +70,38 @@
 RUNTIME_DEP_PKGS_CSWzabbix-server += CSWlibldap2-4-2
 RUNTIME_DEP_PKGS_CSWzabbix-server += CSWlibiksemel3
 
+#PHP for frontend
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-session
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-gd
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-sockets
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-bcmath
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-xmlwriter
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-xmlreader
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-gettext
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-mbstring
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-ctype
+RUNTIME_DEP_PKGS_CSWzabbix-server += CSWphp5-dom
+#For database connection
+
+PACKAGES += CSWzabbix-proxy
+SPKG_DESC_CSWzabbix-proxy = Zabbix monitoring system proxy
+PKGFILES_CSWzabbix-proxy += $(call baseisadirs,$(sbindir),zabbix_proxy)
+PKGFILES_CSWzabbix-proxy += $(mandir)/man8/zabbix_proxy\.8
+PKGFILES_CSWzabbix-proxy += $(sysconfdir)/zabbix_proxy\.conf\.CSW
+PKGFILES_CSWzabbix-proxy += $(sysconfdir)/zabbix_proxy\.conf\.d
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWliblber2-4-2
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibiconv2
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibintl8
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibcurl4
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibssh2-1
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibnetsnmp30
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibldap2-4-2
+#With postgres build
+RUNTIME_DEP_PKGS_CSWzabbix-proxy += CSWlibpq5
+
+# Config files are in 64bit build
+MERGE_SCRIPTS_isa-default64 = copy-relocate
+
 # Linker anomaly
 # RUNTIME_DEP_PKGS_CSWzabbix-server += $(RUNTIME_DEP_PKGS_CSWzabbix-agent_$(GARCH))
 
@@ -89,8 +127,6 @@
 CONFIGURE_ARGS += --with-ssh2=$(prefix)
 CONFIGURE_ARGS += --with-ldap
 
-# We need the latest Solaris 10 for the mysql bindings
-LINKER_MAP_RELEASE =
 
 # CONFIGURE_ARGS += --with-mysql=$(bindir)/mysql_config
 # CONFIGURE_ARGS += --with-sqlite3
@@ -107,6 +143,15 @@
 
 PRESERVECONF += $(sysconfdir)/zabbix_agent.conf
 PRESERVECONF += $(sysconfdir)/zabbix_agentd.conf
+PRESERVECONF += $(sysconfdir)/zabbix_proxy.conf
+PRESERVECONF += $(sysconfdir)/zabbix_server.conf
 
 include gar/category.mk
 
+post-install-modulated:
+	ginstall -d $(DESTDIR)/opt/csw/share/zabbix/frontends
+	ginstall -d $(DESTDIR)/opt/csw/share/zabbix/database
+	cp -r $(WORKDIR)/zabbix-$(VERSION)/frontends/php $(DESTDIR)/opt/csw/share/zabbix/frontends
+	cp -r $(WORKDIR)/zabbix-$(VERSION)/database $(DESTDIR)/opt/csw/share/zabbix/database
+	rm $(DESTDIR)/opt/csw/share/zabbix/database/Make*
+	@$(MAKECOOKIE)

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