FreeBSD Bugzilla – Attachment 155065 Details for
Bug 199074
[maintainer update] sysutils/ganglia-monitor-core: Upgrade to 3.6.0 and adopt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Unified diff
ganglia-monitor-core-diff.txt (text/plain), 12.47 KB, created by
Jason W. Bacon
on 2015-03-31 19:24:45 UTC
(
hide
)
Description:
Unified diff
Filename:
MIME Type:
Creator:
Jason W. Bacon
Created:
2015-03-31 19:24:45 UTC
Size:
12.47 KB
patch
obsolete
>diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/Makefile /usr/wip/sysutils/ganglia-monitor-core/Makefile >--- /usr/ports/sysutils/ganglia-monitor-core/Makefile 2014-10-24 11:56:10.000000000 -0500 >+++ /usr/wip/sysutils/ganglia-monitor-core/Makefile 2015-03-31 14:16:21.000000000 -0500 >@@ -1,9 +1,8 @@ > # $FreeBSD: head/sysutils/ganglia-monitor-core/Makefile 371454 2014-10-24 16:56:10Z mva $ > > PORTNAME= monitor-core >-PORTVERSION= 3.4.0 >-PORTREVISION= 6 >-CATEGORIES= sysutils net parallel >+PORTVERSION= 3.6.0 >+CATEGORIES= sysutils net > MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION} > PKGNAMEPREFIX= ganglia- > .if defined(CLUSTER) >@@ -11,9 +10,11 @@ > .endif > DISTNAME= ganglia-${PORTVERSION} > >-MAINTAINER= ports@FreeBSD.org >+MAINTAINER= jwbacon@tds.net > COMMENT= Ganglia cluster monitor, monitoring daemon > >+LICENSE= BSD3CLAUSE >+ > LIB_DEPENDS= libapr-1.so:${PORTSDIR}/devel/apr1 \ > libconfuse.so:${PORTSDIR}/devel/libconfuse \ > libpcre.so:${PORTSDIR}/devel/pcre \ >@@ -22,7 +23,7 @@ > PKGINSTALL= ${WRKDIR}/pkg-install > > OPTIONS_DEFINE= GMETAD >-OPTIONS_DEFAULT= GMETAD >+OPTIONS_DEFAULT=GMETAD > GMETAD_DESC= include gmetad > > USES= libtool pkgconfig python >@@ -30,7 +31,7 @@ > GNU_CONFIGURE= yes > CONFIGURE_ARGS= --enable-setuid=ganglia --enable-setgid=ganglia \ > --with-python=${PYTHON_CMD} >-CONFIGURE_ENV= GANGLIA_ACK_SYSCONFDIR=1 "LDFLAGS=${LDFLAGS}" >+CONFIGURE_ENV= GANGLIA_ACK_SYSCONFDIR=1 > CFLAGS+= -I${LOCALBASE}/include > LDFLAGS+= -L${LOCALBASE}/lib > >@@ -41,6 +42,8 @@ > > SUB_FILES= pkg-install > >+INSTALL_TARGET= install-strip >+ > .if defined (GMETAD_CONF) > .if !exists (${GMETAD_CONF}) > IGNORE= the variable GMETAD_CONF must point to a file when defined >@@ -62,7 +65,6 @@ > USE_RC_SUBR= gmond > .if ${PORT_OPTIONS:MGMETAD} > USE_RC_SUBR+= gmetad >- > LIB_DEPENDS+= librrd.so:${PORTSDIR}/databases/rrdtool > CONFIGURE_ARGS+= --with-gmetad > PLIST_SUB+= GMETAD= >@@ -76,20 +78,6 @@ > > CONF_DIR= ${PREFIX}/etc > >-FIX_CONF_FILES= README \ >- mans/gmetad.1 \ >- mans/gmond.1 >-FIX_GMOND_CONF_DIR= \ >- gmond/modules/conf.d/modpython.conf.in \ >- gmond/modules/python/Makefile.in \ >- lib/default_conf.h.in >-# gmond.conf.5 and gmond.conf.html can be generated from conf.pod, but >-# doing so requires perl installed in the build stage. >-FIX_USER_FILES= gmetad/gmetad.conf.in \ >- gmond/conf.pod \ >- gmond/gmond.conf.5 \ >- gmond/gmond.conf.html >- > MODULES= modcpu.so \ > moddisk.so \ > modload.so \ >@@ -100,27 +88,40 @@ > modpython.so \ > modsys.so > >+# gmond.conf.5 and gmond.conf.html can be generated from conf.pod, but >+# doing so requires perl installed in the build stage. > post-patch: >- ${REINPLACE_CMD} -e "s|/etc/ganglia/\(gm[a-z]*d.conf\)|${PREFIX}/etc/\1|g" \ >- ${FIX_CONF_FILES:S|^|${WRKSRC}/|} >- ${REINPLACE_CMD} -e "s|%%GMONDCONFDIR%%|gmond.conf.d|g" \ >- ${FIX_GMOND_CONF_DIR:S|^|${WRKSRC}/|} >+ ${REINPLACE_CMD} \ >+ -e "s|/etc/ganglia/\(gm[a-z]*d.conf\)|${PREFIX}/etc/\1|g" \ >+ ${WRKSRC}/README \ >+ ${WRKSRC}/mans/gmetad.1 \ >+ ${WRKSRC}/mans/gmond.1 > ${REINPLACE_CMD} -e "s|nobody|ganglia|g" \ >- ${FIX_USER_FILES:S|^|${WRKSRC}/|} >+ ${WRKSRC}/gmetad/gmetad.conf.in \ >+ ${WRKSRC}/gmond/conf.pod \ >+ ${WRKSRC}/gmond/gmond.conf.5 \ >+ ${WRKSRC}/gmond/gmond.conf.html > > post-build: > ${WRKSRC}/gmond/gmond -t > ${WRKDIR}/gmond.conf > > post-install: > .if ${PORT_OPTIONS:MGMETAD} >- ${INSTALL_SCRIPT} ${FILESDIR}/gmetasnap.sh ${STAGEDIR}${PREFIX}/sbin/gmetasnap >+ ${INSTALL_SCRIPT} ${FILESDIR}/gmetasnap.sh \ >+ ${STAGEDIR}${PREFIX}/sbin/gmetasnap > ${INSTALL_MAN} ${WRKSRC}/mans/gmetad.1 ${STAGEDIR}${MANPREFIX}/man/man1 >- ${INSTALL_DATA} ${GMETAD_CONF} ${STAGEDIR}${PREFIX}/etc/gmetad.conf.sample >+ ${INSTALL_DATA} ${GMETAD_CONF} \ >+ ${STAGEDIR}${PREFIX}/etc/gmetad.conf.sample > .endif >- ${INSTALL_MAN} ${WRKSRC}/mans/gmetric.1 ${STAGEDIR}${MANPREFIX}/man/man1 >- ${INSTALL_MAN} ${WRKSRC}/mans/gmond.1 ${STAGEDIR}${MANPREFIX}/man/man1 >- ${INSTALL_MAN} ${WRKSRC}/gmond/gmond.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5 >- ${INSTALL_MAN} ${WRKSRC}/mans/gstat.1 ${STAGEDIR}${MANPREFIX}/man/man1 >- ${INSTALL_DATA} ${GMOND_CONF} ${STAGEDIR}${PREFIX}/etc/gmond.conf.sample >+ ${INSTALL_MAN} \ >+ ${WRKSRC}/mans/gmetric.1 \ >+ ${WRKSRC}/mans/gmond.1 \ >+ ${WRKSRC}/mans/gstat.1 \ >+ ${STAGEDIR}${MANPREFIX}/man/man1 >+ ${INSTALL_MAN} ${WRKSRC}/gmond/gmond.conf.5 \ >+ ${STAGEDIR}${MANPREFIX}/man/man5 >+ ${INSTALL_DATA} ${GMOND_CONF} \ >+ ${STAGEDIR}${PREFIX}/etc/gmond.conf.sample >+ ${MKDIR} ${STAGEDIR}${PREFIX}/lib/ganglia/python_modules > > .include <bsd.port.mk> >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/distinfo /usr/wip/sysutils/ganglia-monitor-core/distinfo >--- /usr/ports/sysutils/ganglia-monitor-core/distinfo 2014-01-22 09:30:13.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/distinfo 2015-03-31 08:42:39.000000000 -0500 >@@ -1,2 +1,2 @@ >-SHA256 (ganglia-3.4.0.tar.gz) = 036838b17621c10383daa98f705bb01a10d44031eeb6f310c3685a9ec2dbe800 >-SIZE (ganglia-3.4.0.tar.gz) = 1156001 >+SHA256 (ganglia-3.6.0.tar.gz) = 89eae02e1a117040d60b3b561fe55f88d7f8cf41b94af1492969ef68e6797886 >+SIZE (ganglia-3.6.0.tar.gz) = 1248273 >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in >--- /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in 2014-01-22 11:40:44.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in 2015-03-31 08:42:39.000000000 -0500 >@@ -1,7 +1,7 @@ >---- gmetad.orig/Makefile.in 2012-10-01 18:24:48.000000000 +0000 >-+++ gmetad/Makefile.in 2012-10-01 18:38:55.000000000 +0000 >-@@ -591,8 +591,6 @@ >- $(FIXCONFIG) gmetad.conf.in >+--- gmetad/Makefile.in.orig 2013-05-07 09:39:40.000000000 -0500 >++++ gmetad/Makefile.in 2014-10-14 15:31:54.000000000 -0500 >+@@ -659,8 +659,6 @@ >+ $(FIXCONFIG) gmetad.service.in > > install-data-hook: gmetad.conf > - mkdir -p $(DESTDIR)$(sysconfdir) && \ >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmetad_conf.c.in /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmetad_conf.c.in >--- /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmetad_conf.c.in 2014-01-22 11:40:44.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmetad_conf.c.in 2014-10-17 11:04:49.000000000 -0500 >@@ -1,6 +1,6 @@ >---- gmetad/conf.c.in.orig 2012-10-01 18:44:59.000000000 +0000 >-+++ gmetad/conf.c.in 2012-10-01 18:45:20.000000000 +0000 >-@@ -330,7 +330,7 @@ >+--- gmetad/conf.c.in.orig 2013-05-07 09:39:40.000000000 -0500 >++++ gmetad/conf.c.in 2014-10-14 15:31:54.000000000 -0500 >+@@ -374,7 +374,7 @@ > config->trusted_hosts = NULL; > config->debug_level = 0; > config->should_setuid = 1; >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmond_modules_conf.d_modpython.conf.in /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmond_modules_conf.d_modpython.conf.in >--- /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmond_modules_conf.d_modpython.conf.in 2014-01-22 11:40:44.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmond_modules_conf.d_modpython.conf.in 2014-10-17 11:04:49.000000000 -0500 >@@ -1,8 +1,13 @@ >---- gmond/modules/conf.d/modpython.conf.in.orig 2012-10-01 18:52:02.000000000 +0000 >-+++ gmond/modules/conf.d/modpython.conf.in 2012-10-01 18:52:22.000000000 +0000 >-@@ -13,4 +13,4 @@ >+--- gmond/modules/conf.d/modpython.conf.in.orig 2013-05-07 09:39:40.000000000 -0500 >++++ gmond/modules/conf.d/modpython.conf.in 2014-10-14 15:31:54.000000000 -0500 >+@@ -9,8 +9,8 @@ >+ module { >+ name = "python_module" >+ path = "modpython.so" >+- params = "@moduledir@/python_modules" >++ params = "@moduledir@" > } > } > > -include ("@sysconfdir@/conf.d/*.pyconf") >-+include ("@sysconfdir@/%%GMONDCONFDIR%%/*.pyconf") >++include ("@sysconfdir@/gmond.conf.d/*.pyconf") >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmond_modules_python_Makefile.in /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmond_modules_python_Makefile.in >--- /usr/ports/sysutils/ganglia-monitor-core/files/patch-gmond_modules_python_Makefile.in 2014-01-22 11:40:44.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/files/patch-gmond_modules_python_Makefile.in 2014-10-17 11:04:49.000000000 -0500 >@@ -1,13 +1,13 @@ >---- gmond/modules/python/Makefile.in.orig 2012-10-01 19:01:51.000000000 +0000 >-+++ gmond/modules/python/Makefile.in 2012-10-01 19:03:40.000000000 +0000 >-@@ -588,8 +588,8 @@ >+--- gmond/modules/python/Makefile.in.orig 2013-05-07 09:39:40.000000000 -0500 >++++ gmond/modules/python/Makefile.in 2014-10-14 15:31:54.000000000 -0500 >+@@ -601,8 +601,8 @@ > # Note that README is listed as a dependency to be generated, but it > # is not currently installed anywhere > install-exec-hook: ../conf.d/modpython.conf README > - mkdir -p $(DESTDIR)$(sysconfdir)/conf.d && \ > - $(INSTALL_DATA) ../conf.d/modpython.conf $(DESTDIR)$(sysconfdir)/conf.d/modpython.conf >-+ mkdir -p $(DESTDIR)$(sysconfdir)/%%GMONDCONFDIR%% && \ >-+ $(INSTALL_DATA) ../conf.d/modpython.conf $(DESTDIR)$(sysconfdir)/%%GMONDCONFDIR%%/modpython.conf >++ mkdir -p $(DESTDIR)$(sysconfdir)/gmond.conf.d && \ >++ $(INSTALL_DATA) ../conf.d/modpython.conf $(DESTDIR)$(sysconfdir)/gmond.conf.d/modpython.conf > > # Tell versions [3.59,3.63) of GNU make to not export all variables. > # Otherwise a system limit (for SysV at least) may be exceeded. >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/files/patch-lib_default__conf.h.in /usr/wip/sysutils/ganglia-monitor-core/files/patch-lib_default__conf.h.in >--- /usr/ports/sysutils/ganglia-monitor-core/files/patch-lib_default__conf.h.in 2014-01-22 11:40:44.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/files/patch-lib_default__conf.h.in 2014-10-17 11:04:49.000000000 -0500 >@@ -1,11 +1,11 @@ >---- lib/default_conf.h.in.orig 2012-10-01 19:06:52.000000000 +0000 >-+++ lib/default_conf.h.in 2012-10-01 19:08:01.000000000 +0000 >-@@ -381,7 +381,7 @@ >+--- lib/default_conf.h.in.orig 2013-05-07 09:39:40.000000000 -0500 >++++ lib/default_conf.h.in 2014-10-14 15:31:54.000000000 -0500 >+@@ -397,7 +397,7 @@ > }\n\ > }\n\ > \n\ > -include (\"" SYSCONFDIR "/conf.d/*.conf\")\n\ >-+include (\"" SYSCONFDIR "/%%GMONDCONFDIR%%/*.conf\")\n\ >++include (\"" SYSCONFDIR "/gmond.conf.d/*.conf\")\n\ > \n\ > " > >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/files/patch-libmetrics_freebsd_metrics.c /usr/wip/sysutils/ganglia-monitor-core/files/patch-libmetrics_freebsd_metrics.c >--- /usr/ports/sysutils/ganglia-monitor-core/files/patch-libmetrics_freebsd_metrics.c 1969-12-31 18:00:00.000000000 -0600 >+++ /usr/wip/sysutils/ganglia-monitor-core/files/patch-libmetrics_freebsd_metrics.c 2014-10-17 11:04:49.000000000 -0500 >@@ -0,0 +1,20 @@ >+--- libmetrics/freebsd/metrics.c.orig 2013-05-07 09:39:40.000000000 -0500 >++++ libmetrics/freebsd/metrics.c 2014-10-14 15:32:43.000000000 -0500 >+@@ -461,6 +461,17 @@ >+ return val; >+ } >+ >++/* >++** FIXME - Not yet implemented on FreeBSD. >++*/ >++g_val_t >++cpu_steal_func ( void ) >++{ >++ g_val_t val; >++ val.f = 0.0; >++ return val; >++} >++ >+ g_val_t >+ load_one_func ( void ) >+ { >diff -ruN --exclude=CVS --exclude=.svn /usr/ports/sysutils/ganglia-monitor-core/pkg-plist /usr/wip/sysutils/ganglia-monitor-core/pkg-plist >--- /usr/ports/sysutils/ganglia-monitor-core/pkg-plist 2014-07-25 15:12:11.000000000 -0500 >+++ /usr/wip/sysutils/ganglia-monitor-core/pkg-plist 2015-02-05 15:04:57.000000000 -0600 >@@ -1,6 +1,6 @@ > bin/ganglia-config >-bin/gstat > bin/gmetric >+bin/gstat > @unexec if cmp -s %D/etc/gmond.conf %D/etc/gmond.conf.sample; then rm -f %D/etc/gmond.conf; fi > etc/gmond.conf.d/modpython.conf > etc/gmond.conf.sample >@@ -9,15 +9,11 @@ > include/ganglia.h > include/ganglia_gexec.h > include/gm_file.h >-include/gm_mmn.h > include/gm_metric.h >+include/gm_mmn.h > include/gm_msg.h > include/gm_protocol.h > include/gm_value.h >-lib/libganglia-%%PORTVERSION%%.so.0 >-lib/libganglia-%%PORTVERSION%%.so.0.0.0 >-lib/libganglia.a >-lib/libganglia.so > lib/ganglia/modcpu.so > lib/ganglia/moddisk.so > lib/ganglia/modload.so >@@ -27,14 +23,17 @@ > lib/ganglia/modproc.so > lib/ganglia/modpython.so > lib/ganglia/modsys.so >-man/man1/gmetric.1.gz >+lib/libganglia-%%PORTVERSION%%.so.0 >+lib/libganglia-%%PORTVERSION%%.so.0.0.0 >+lib/libganglia.a >+lib/libganglia.so > %%GMETAD%%man/man1/gmetad.1.gz > %%GMETAD%%man/man1/gmetad.py.1.gz >+man/man1/gmetric.1.gz > man/man1/gmond.1.gz > man/man1/gstat.1.gz > man/man5/gmond.conf.5.gz > %%GMETAD%%sbin/gmetad > %%GMETAD%%sbin/gmetasnap > sbin/gmond >-@dirrmtry etc/gmond.conf.d >-@dirrm lib/ganglia >+@dir lib/ganglia/python_modules
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 199074
:
155065
|
155236
|
155889