Date: Fri, 20 Mar 2009 15:11:07 +0100 (CET) From: Michael Ranner <mranner@inode.at> To: FreeBSD-gnats-submit@FreeBSD.org Cc: michael@ranner.eu Subject: ports/132856: [PATCH] net-mgmt/nrg: [SUMMARIZE CHANGES] Message-ID: <20090320141107.8920ACC300@files.jawa.at> Resent-Message-ID: <200903201420.n2KEK1Tq049316@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 132856 >Category: ports >Synopsis: [PATCH] net-mgmt/nrg: [SUMMARIZE CHANGES] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Mar 20 14:20:01 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Michael Ranner >Release: FreeBSD 7.0-RELEASE-p6 i386 >Organization: >Environment: System: FreeBSD files.jawa.at 7.0-RELEASE-p6 FreeBSD 7.0-RELEASE-p6 #4: Tue Dec 23 12:53:42 CET 2008 >Description: Maintainer changed to my new mail address. Added file(s): - Makefile-e Port maintainer (michael@ranner.eu) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- nrg-0.99.25_1.patch begins here --- diff -ruN --exclude=CVS /usr/ports/net-mgmt/nrg/Makefile /.amd_mnt/shadow/host/usr/ports/net-mgmt/nrg.bak/Makefile --- /usr/ports/net-mgmt/nrg/Makefile 2008-06-24 14:34:54.000000000 +0200 +++ /.amd_mnt/shadow/host/usr/ports/net-mgmt/nrg.bak/Makefile 2009-03-20 15:10:45.000000000 +0100 @@ -12,7 +12,7 @@ MASTER_SITES= ftp://nrg.hep.wisc.edu/pub/src/nrg/ \ http://www.ranner.jawa.at/stuff/ -MAINTAINER= mranner@inode.at +MAINTAINER= michael@ranner.eu COMMENT= Tool for visualizing network and resource utilization data BUILD_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \ diff -ruN --exclude=CVS /usr/ports/net-mgmt/nrg/Makefile-e /.amd_mnt/shadow/host/usr/ports/net-mgmt/nrg.bak/Makefile-e --- /usr/ports/net-mgmt/nrg/Makefile-e 1970-01-01 01:00:00.000000000 +0100 +++ /.amd_mnt/shadow/host/usr/ports/net-mgmt/nrg.bak/Makefile-e 2009-03-20 15:10:45.000000000 +0100 @@ -0,0 +1,85 @@ +# New ports collection makefile for: nrg +# Date created: 18 January 2004 +# Whom: Michael Ranner +# +# $FreeBSD: ports/net-mgmt/nrg/Makefile,v 1.7 2008/06/24 12:34:54 rafan Exp $ +# + +PORTNAME= nrg +PORTVERSION= 0.99.25 +PORTREVISION= 1 +CATEGORIES= net-mgmt sysutils +MASTER_SITES= ftp://nrg.hep.wisc.edu/pub/src/nrg/ \ + http://www.ranner.jawa.at/stuff/ + +MAINTAINER= mranner@inode.at +COMMENT= Tool for visualizing network and resource utilization data + +BUILD_DEPENDS= ${SITE_PERL}/RRDp.pm:${PORTSDIR}/databases/rrdtool \ + ${LOCALBASE}/bin/snmpget:${PORTSDIR}/net-mgmt/net-snmp4 +RUN_DEPENDS= ${BUILD_DEPENDS} \ + ${SITE_PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes + +NRG_WEB_PREFIX?= ${PREFIX}/www/data +NRG_WEB_DIR?= nrg +NRG_WEB_TITLE?= FreeBSD NRG Homepage + +NRG_DIR?= nrg +NRGDIR= ${NRG_DIR} +DOCSDIR= ${NRGDIR}/html +EXAMPLESDIR= ${NRGDIR}/examples + +SITE_PERL_ARCH= ${SITE_PERL}/${PERL_ARCH} + +PKGMESSAGE= ${WRKDIR}/pkg-message +USE_PERL5= yes +HAS_CONFIGURE= yes +CONFIGURE_ARGS= --prefix=${PREFIX}/${NRGDIR} +ALL_TARGET= pingd +PLIST_SUB= NRGDIR=${NRG_DIR} + +pre-fetch: + @${ECHO} "" + @${ECHO} "You may use the following build options:" + @${ECHO} "" + @${ECHO} " -DWITH_APCNISCLIENT to build collector for nrg-apcupsdstat" + @${ECHO} "" + +.if defined(WITH_APCNISCLIENT) +EXTRA_PATCHES+= ${PATCHDIR}/nrg-apcupsdstat.patch +PLIST_FILES+= nrg/bin/nrg-apcupsdstat +.endif + +post-patch: + @${REINPLACE_CMD} -e "s,= @WEB_PREFIX@,= ${NRG_WEB_PREFIX},g" \ + -e "s,= @NRG_WEB_DIR@,= ${NRG_WEB_DIR},g" \ + -e "s,= @NRG_WEB_TITLE@,= \"${NRG_WEB_TITLE}\",g" \ + ${WRKSRC}/examples/Makefile.ops.in + @${REINPLACE_CMD} -e "s,<malloc.h>,<stdlib.h>,g" \ + ${WRKSRC}/roverpingd/send.c ${WRKSRC}/roverpingd/pingd.c \ + ${WRKSRC}/roverpingd/read_list.c + @${REINPLACE_CMD} -e "s,<values.h>,<limits.h>,g" \ + -e "s, MAXINT, INT_MAX,g" \ + ${WRKSRC}/roverpingd/write_stats.c + @${REINPLACE_CMD} -e "s,-D__FreeBSD__,,g" \ + ${WRKSRC}/configure + @${REINPLACE_CMD} -e "s,@bindir@/rrdtool,${PREFIX}/bin/rrdtool,g" \ + ${WRKSRC}/etc/run-star-head.pl.in + @${REINPLACE_CMD} -e "s,@prefix@,${PREFIX},g" \ + -e "s,NOW \"%a %b %d %H:%M %Z %Y\",NOW '%a %b %d %H:%M %Z %Y',g" \ + ${WRKSRC}/templates/*.in + @${CP} ${TEMPLATES}/config.guess ${WRKSRC}/config/ + @${CP} ${TEMPLATES}/config.sub ${WRKSRC}/config/ + +pre-install: + @${SED} 's|%%PREFIX%%|${PREFIX}|g' <${.CURDIR}/pkg-message >${PKGMESSAGE} + +post-install: + ${INSTALL_DATA} ${WRKSRC}/examples/Makefile.ops ${PREFIX}/nrg/Makefile-dist + ${INSTALL_DATA} ${WRKSRC}/examples/Default.conf ${PREFIX}/nrg/Default.conf-dist + ${INSTALL_DATA} ${WRKSRC}/examples/NRG.mconf ${PREFIX}/nrg/NRG.mconf-dist + ${INSTALL_DATA} ${WRKSRC}/examples/Site.mconf ${PREFIX}/nrg/Site.mconf-dist + @${INSTALL_SCRIPT} ${FILESDIR}/run-nrg.sh ${PREFIX}/nrg/ + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.mk> --- nrg-0.99.25_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090320141107.8920ACC300>