Commit a8c271b6 authored by Rene Ladan's avatar Rene Ladan
Browse files

sysutils/ganglia-monitor-core: Remove expired port

2026-09-30 sysutils/ganglia-monitor-core: No upstream development since 2016
parent 14ef0ac8
Loading
Loading
Loading
Loading
+1
Changes for MOVED: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -5638,3 +5638,4 @@ devel/rubygem-google-api-client|devel/rubygem-google-apis-core|2026-09-29|Remove
devel/rubygem-redlock1|devel/rubygem-redlock|2026-09-29|Remove obsoleted port. Use devel/rubygem-redlock instead
security/openssl35|security/openssl|2026-09-30|Upgrade security/openssl to 3.5
lang/python310||2026-09-30|Python 3.10 is an old version in the last year of security support, see to it that your favorite ports get updated for newer Python releases in due time
sysutils/ganglia-monitor-core||2026-09-30|Has expired: No upstream development since 2016
−1
Changes for sysutils/Makefile: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -455,7 +455,6 @@
    SUBDIR += fx
    SUBDIR += g15daemon
    SUBDIR += gaffitter
    SUBDIR += ganglia-monitor-core
    SUBDIR += gapcmon
    SUBDIR += garcon
    SUBDIR += gather
−107
Changes for sysutils/ganglia-monitor-core/Makefile: 0 added lines, 107 removed lines.
Original line number Diff line number Diff line
PORTNAME=	monitor-core
PORTVERSION=	3.7.2
PORTREVISION=	3
CATEGORIES=	sysutils net
MASTER_SITES=	SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION}
PKGNAMEPREFIX=	ganglia-
.if defined(CLUSTER)
PKGNAMESUFFIX=	-${CLUSTER}
.endif
DISTNAME=	ganglia-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Ganglia cluster monitor, monitoring daemon
WWW=		http://ganglia.info/

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/COPYING

DEPRECATED=	No upstream development since 2016
EXPIRATION_DATE=2026-09-30

LIB_DEPENDS=	libapr-1.so:devel/apr1 \
		libconfuse.so:devel/libconfuse \
		libpcre.so:devel/pcre \
		libexpat.so:textproc/expat2

USES=		libtool localbase:ldflags pkgconfig
USE_LDCONFIG=	yes
USE_RC_SUBR=	gmond

GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=	${PREFIX}/share
CONFIGURE_ARGS=	--enable-setuid=ganglia --enable-setgid=ganglia \
		--disable-python
CONFIGURE_ENV=	GANGLIA_ACK_SYSCONFDIR=1

INSTALL_TARGET=	install-strip

SUB_FILES+=	pkg-message

USERS=		ganglia
GROUPS=		ganglia

PLIST_SUB+=	PORTVERSION=${PORTVERSION}

OPTIONS_DEFINE=	GMETAD
OPTIONS_DEFAULT=	GMETAD
OPTIONS_SUB=	yes

GMETAD_DESC=	include gmetad

GMETAD_LIB_DEPENDS=	librrd.so:databases/rrdtool
GMETAD_CONFIGURE_ON=	--with-gmetad
GMETAD_SUB_LIST=	GMETAD=""
GMETAD_SUB_LIST_OFF=	GMETAD="\#"

.include <bsd.port.options.mk>

.if ${OPSYS} == FreeBSD
CFLAGS+=	-Wno-error=incompatible-function-pointer-types
.endif

.if ${PORT_OPTIONS:MGMETAD}
USE_RC_SUBR+=	gmetad
.endif

CONF_DIR=	${PREFIX}/etc

MODULES=	modcpu.so \
		moddisk.so \
		modload.so \
		modmem.so \
		modmulticpu.so \
		modnet.so \
		modproc.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.
pre-configure:
	@${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" \
		${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:
	${INSTALL_DATA} ${WRKDIR}/gmond.conf \
		${STAGEDIR}${PREFIX}/etc/gmond.conf.sample
	${MKDIR} ${STAGEDIR}/var/db/ganglia/rrds
	@${CHMOD} -R a+rX ${STAGEDIR}/var/db/ganglia

post-install-GMETAD-on:
	${INSTALL_SCRIPT} ${FILESDIR}/gmetasnap.sh \
		${STAGEDIR}${PREFIX}/sbin/gmetasnap
	${INSTALL_DATA} ${WRKSRC}/gmetad/gmetad.conf \
		${STAGEDIR}${PREFIX}/etc/gmetad.conf.sample

.include <bsd.port.mk>
−3
Changes for sysutils/ganglia-monitor-core/distinfo: 0 added lines, 3 removed lines.
Original line number Diff line number Diff line
TIMESTAMP = 1601485985
SHA256 (ganglia-3.7.2.tar.gz) = 042dbcaf580a661b55ae4d9f9b3566230b2232169a0898e91a797a4c61888409
SIZE (ganglia-3.7.2.tar.gz) = 1302320
−59
Changes for sysutils/ganglia-monitor-core/files/gmetad.in: 0 added lines, 59 removed lines.
Original line number Diff line number Diff line
#!/bin/sh

# PROVIDE: gmetad
# REQUIRE: gmond
# KEYWORD: shutdown

. /etc/rc.subr

name=gmetad
rcvar=gmetad_enable
command="%%PREFIX%%/sbin/${name}"
start_precmd="gmetad_prestart"
stop_postcmd="gmetad_poststop"

gmetad_prestart()
{
	if [ ! -d ${gmetasnap_rrddir} ]; then
		mkdir -p ${gmetasnap_rrddir}
	fi
	chown ganglia:ganglia ${gmetasnap_rrddir}
	if checkyesno gmetasnap_enable; then
		if [ ! -d ${gmetasnap_snapdir} ]; then
			mkdir -p ${gmetasnap_snapdir}
			chown ganglia:ganglia ${gmetasnap_snapdir}
		fi
		if [ `ls ${gmetasnap_rrddir} | egrep -v ^.snap | wc -l` -eq 0 ]; then
			${gmetasnap_command} -r ${gmetasnap_rrddir} \
			    -s ${gmetasnap_snapdir} ${gmetasnap_flags} \
			    restore ${gmetasnap_snapname}
		fi
	fi
}

gmetad_poststop()
{
	if checkyesno gmetasnap_enable; then
		${gmetasnap_command} -r ${gmetasnap_rrddir} \
		    -s ${gmetasnap_snapdir} ${gmetasnap_flags} \
		    save ${gmetasnap_snapname}
	fi
}

load_rc_config ganglia

load_rc_config $name

gmetad_enable=${gmetad_enable-NO}
gmetad_conf=${gmetad_conf-%%PREFIX%%/etc/gmetad.conf}

gmetasnap_enable=${gmetasnap_enable-NO}
gmetasnap_rrddir=${gmetasnap_rrddir-/var/db/ganglia/rrds}
gmetasnap_snapdir=${gmetasnap_snapdir-/var/db/ganglia/snaps}
gmetasnap_snapname=${gmetasnap_snapname-snap}
gmetasnap_command=${gmetasnap_command-%%PREFIX%%/sbin/gmetasnap}

command_args="-c ${gmetad_conf}"
required_files=${gmetad_conf}

run_rc_command $*
Loading