GARNAME = ganglia
GARVERSION = 3.1.2
CATEGORIES = utils
DESCRIPTION = A scalable distributed monitoring system
define BLURB
Ganglia is a scalable distributed monitoring system for
high-performance computing
systems such as clusters and Grids. It is based on a hierarchical
design targeted
at federations of clusters.
endef
SF_PROJ = ganglia
MASTER_SITES = $(SF_MIRRORS)
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
#DISTFILES += $(call admfiles,CSWpackage,)
Did this come out of "gmake newpkg-ganglia"? Static gspec-files are
generally
discouraged and you can safely delete this line.
It was there before, and I commented it out because it looked suspicious
PACKAGES = CSWgangliaagent CSWgangliart
If you set PACKAGES you overwrite the default, which would be CSWganglia.
That means you only build the above packages, not CSWganglia. If you want
to build that also you must add that.
I didn't want a CSWganglia package, just the rt and agent packages
Later, there will be CSWgangliadev, CSWgangliagmetad, CSWgangliaweb and
CSWgangliamodpy or something like that perhaps.
CATALOGNAME_CSWganglia = ganglia
CATALOGNAME_CSWgangliart = ganglia_rt
CATALOGNAME_CSWgangliaagent = ganglia_agent
SPKG_DESC_CSWganglia = Dummy package
SPKG_DESC_CSWgangliart = Ganglia runtime libraries
SPKG_DESC_CSWgangliaagent = Ganglia performance monitoring
agent gmond
It is customary to have a base package which actually does something.
What
would that be in case of ganglia?
There isn't really:
- the rt package is shared by the agent (gmond) and the server (gmetad)
- usually people just want the agent on most of their machines, and the
server on one or two machines
PREREQUISITE_PKGS = CSWexpat CSWlibconfuse CSWapache2rt
REQUIRED_PKGS_CSWgangliart = CSWexpat CSWlibconfuse CSWapache2rt
REQUIRED_PKGS_CSWgangliaagent = CSWexpat CSWlibconfuse CSWapache2rt
REQUIRED_PKGS_CSWgangliaagent += CSWgangliart
# We define upstream file regex so we can be notifed of new upstream
software release
UPSTREAM_MASTER_SITES = $(SF_PROJECT_SHOWFILE)=43021
UPSTREAM_USE_SF = 1
UFILES_REGEX = (\d+(?:\.\d+)*)
# This is attachment #45 from Ganglia bug
# http://bugzilla.ganglia.info/cgi-bin/bugzilla/show_bug.cgi?id=77
#PATCHFILES = $(GARNAME)-$(GARVERSION)-solaris-cc.patch
CONFIGURE_ARGS = $(DIRPATHS)
# Don't build gmetad (not tested yet on Solaris, more deps required
to build)
CONFIGURE_ARGS += --without-gmetad
# Reduce dependencies, no gettext:
CONFIGURE_ARGS += --disable-nls
# For Ganglia 3.1.2, the test suite doesn't compile cleanly on Solaris,
# so we skip it. This should be re-assessed with each new release
# from upstream. Proposed fixes for the test suite to be submitted
# upstream.
ifeq ($(GARVERSION),3.1.2)
#TEST_TARGET = check
TEST_SCRIPTS = skip
test-skip:
$(DONADA)
endif
You can just set
TEST_SCRIPTS =
Ok, the other code was something I copied from an example found by google
Additionally, please do not write rules above the include as the first
rule
is the default which should build the package.
I will move them - thanks for pointing this out
PKGFILES_CSWganglia =
PKGFILES_CSWgangliart = $(libdir)/libganglia.*
include gar/category.mk
For a first attempt this is quite good :-)
Thanks, I hope I can make it easy for people to use
_______________________________________________
maintainers mailing list
[email protected]
https://lists.opencsw.org/mailman/listinfo/maintainers