[143408] trunk/dports/net/nrg/Portfile
mojca at macports.org
mojca at macports.org
Sat Dec 12 10:49:01 PST 2015
Revision: 143408
https://trac.macports.org/changeset/143408
Author: mojca at macports.org
Date: 2015-12-12 01:26:02 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
nrg: whitespace, first line, checksums only
Modified Paths:
--------------
trunk/dports/net/nrg/Portfile
Modified: trunk/dports/net/nrg/Portfile
===================================================================
--- trunk/dports/net/nrg/Portfile 2015-12-12 09:21:09 UTC (rev 143407)
+++ trunk/dports/net/nrg/Portfile 2015-12-12 09:26:02 UTC (rev 143408)
@@ -1,52 +1,58 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id$
-PortSystem 1.0
+PortSystem 1.0
-name nrg
-version 0.99.27
+name nrg
+version 0.99.27
revision 2
-categories net
-maintainers nomaintainer
-platforms darwin
+categories net
+maintainers nomaintainer
+platforms darwin
-description Network Resource Grapher
+description Network Resource Grapher
-long_description NRG is an RRDtool front-end tool to monitor traffic and load \
- on network links or any other resource utilization source. It \
- automatically creates and maintains web pages and RRDtool databases, \
- while providing short and long-term graph web pages just like MRTG.
+long_description NRG is an RRDtool front-end tool to monitor traffic and load \
+ on network links or any other resource utilization source. It \
+ automatically creates and maintains web pages and RRDtool databases, \
+ while providing short and long-term graph web pages just like MRTG.
-homepage http://ginseng.hep.wisc.edu/NRG/
-master_sites ftp://noc.hep.wisc.edu/src/nrg/ \
- ftp://noc.hep.wisc.edu/pub/src/nrg/
-checksums md5 c38e6b27bc99f8f7fd825bc6e1a44f68
-depends_lib port:rrdtool port:p5.16-time-hires
-patchfiles patch-nrg-discover-tcp.in.diff \
- patch-roverpingd-send.c.diff
+homepage http://ginseng.hep.wisc.edu/NRG/
+master_sites ftp://noc.hep.wisc.edu/src/nrg/ \
+ ftp://noc.hep.wisc.edu/pub/src/nrg/
-configure.perl ${prefix}/bin/perl5.16
+checksums rmd160 1192ce02d14447abdcff994671693eeb4ca67e28 \
+ sha256 ef851705f9ebd2bf55892823f258c7cffc079ae0276df4f40860c520262971c2
-configure.pre_args --prefix=${prefix}/var/${name}
+depends_lib port:rrdtool \
+ port:p5.16-time-hires
-configure.args --bindir=${prefix}/bin \
- --sysconfdir=${prefix}/etc/${name} \
- --datadir=${prefix}/share \
- --build=powerpc-unknown-freebsd \
- CFLAGS="-D__FreeBSD__"
+patchfiles patch-nrg-discover-tcp.in.diff \
+ patch-roverpingd-send.c.diff
+configure.perl ${prefix}/bin/perl5.16
+
+configure.pre_args --prefix=${prefix}/var/${name}
+
+configure.args --bindir=${prefix}/bin \
+ --sysconfdir=${prefix}/etc/${name} \
+ --datadir=${prefix}/share \
+ --build=powerpc-unknown-freebsd \
+ CFLAGS="-D__FreeBSD__"
+
platform i386 {
- configure.args-delete --build=powerpc-unknown-freebsd
- configure.args-append --build=i386-unknown-freebsd
+ configure.args-delete --build=powerpc-unknown-freebsd
+ configure.args-append --build=i386-unknown-freebsd
}
variant pingd_server description {pingd daemon to graph network latency with NRG} {
- startupitem.create yes
- startupitem.name pingd
- startupitem.executable "${prefix}/bin/pingd"
+ startupitem.create yes
+ startupitem.name pingd
+ startupitem.executable "${prefix}/bin/pingd"
}
-build.target pingd
-destroot.target install.pingd install
+build.target pingd
+destroot.target install.pingd install
# Maintain empty directories
destroot.keepdirs ${destroot}${prefix}/var/${name}/archive
@@ -54,47 +60,47 @@
post-patch {
### Path fixes ###
- reinplace "s|@prefix@/bin|@bindir@|g" \
- ${worksrcpath}/examples/NRG.mconf.in \
- ${worksrcpath}/src/nrg-spiketrimmer.in
+ reinplace "s|@prefix@/bin|@bindir@|g" \
+ ${worksrcpath}/examples/NRG.mconf.in \
+ ${worksrcpath}/src/nrg-spiketrimmer.in
- reinplace "s|@prefix@/bin|@bindir@|g" \
- {*}[glob ${worksrcpath}/templates/*.in]
+ reinplace "s|@prefix@/bin|@bindir@|g" \
+ {*}[glob ${worksrcpath}/templates/*.in]
#### Make NRG page title the way I want it ####
- reinplace "s|Somesite's NRG Home Page|NRG Home Page|g" \
- "${worksrcpath}/examples/Makefile.ops.in"
+ reinplace "s|Somesite's NRG Home Page|NRG Home Page|g" \
+ "${worksrcpath}/examples/Makefile.ops.in"
#### Fix paths for proper destrooting ####
- reinplace "s|exec_prefix = @prefix@|exec_prefix = ${destroot}@prefix@|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|prefix = @prefix@|prefix = ${destroot}@prefix@|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|BIN_DIR = @bindir@|BIN_DIR = ${destroot}@bindir@|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|ETC_DIR = @sysconfdir@|ETC_DIR = ${destroot}@sysconfdir@|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|TEMPLATE_DIR = \${prefix}/templates|TEMPLATE_DIR = ${destroot}@prefix@/templates|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|EXAMPLE_DIR = \${prefix}/examples|EXAMPLE_DIR = ${destroot}@datadir@/doc/nrg/examples|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|HTML_DIR = \${prefix}/html|HTML_DIR = ${destroot}@datadir@/doc/nrg/html|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|ARCHIVE_DIR = \${prefix}/archive|ARCHIVE_DIR = ${destroot}@prefix@/archive|g" \
- ${worksrcpath}/Makefile.in
- reinplace "s|CONTRIB_DIR = \${prefix}/contrib|CONTRIB_DIR = ${destroot}@datadir@/doc/nrg/contrib|g" \
- ${worksrcpath}/Makefile.in
+ reinplace "s|exec_prefix = @prefix@|exec_prefix = ${destroot}@prefix@|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|prefix = @prefix@|prefix = ${destroot}@prefix@|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|BIN_DIR = @bindir@|BIN_DIR = ${destroot}@bindir@|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|ETC_DIR = @sysconfdir@|ETC_DIR = ${destroot}@sysconfdir@|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|TEMPLATE_DIR = \${prefix}/templates|TEMPLATE_DIR = ${destroot}@prefix@/templates|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|EXAMPLE_DIR = \${prefix}/examples|EXAMPLE_DIR = ${destroot}@datadir@/doc/nrg/examples|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|HTML_DIR = \${prefix}/html|HTML_DIR = ${destroot}@datadir@/doc/nrg/html|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|ARCHIVE_DIR = \${prefix}/archive|ARCHIVE_DIR = ${destroot}@prefix@/archive|g" \
+ ${worksrcpath}/Makefile.in
+ reinplace "s|CONTRIB_DIR = \${prefix}/contrib|CONTRIB_DIR = ${destroot}@datadir@/doc/nrg/contrib|g" \
+ ${worksrcpath}/Makefile.in
}
post-destroot {
# Install images to \${prefix}/var/nrg/web/icons
- xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
- xinstall -m 755 {*}[glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
+ xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
+ xinstall -m 755 {*}[glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
# Rename Site.mconf so graphed devices won't get rewritten on port upgrades
- move ${destroot}${prefix}/var/${name}/Site.mconf \
- ${destroot}${prefix}/var/${name}/Site.mconf.sample
+ move ${destroot}${prefix}/var/${name}/Site.mconf \
+ ${destroot}${prefix}/var/${name}/Site.mconf.sample
}
notes \
@@ -107,23 +113,23 @@
2) Modify your httpd.conf file for NRG graph pages:
Uncomment lines: AddHandler cgi-script .cgi
- LoadModule expires_module libexec/httpd/mod_expires.so
- AddModule mod_expires.c
+ LoadModule expires_module libexec/httpd/mod_expires.so
+ AddModule mod_expires.c
-Add directives: <Directory /my-Apache-document-root/nrg>
- Options ExecCGI
- </Directory>
+Add directives: <Directory /my-Apache-document-root/nrg>
+ Options ExecCGI
+ </Directory>
- <Files \"*.gif\">
- ExpiresActive On
- ExpiresDefault M5
- </Files>
+ <Files \"*.gif\">
+ ExpiresActive On
+ ExpiresDefault M5
+ </Files>
Change the Apache user and group to the NRG user and group so Apache will
have permissions to create graphs when you click an RRD file link.
- User <nrg-user>
- Group <nrg-group>
+ User <nrg-user>
+ Group <nrg-group>
3) Change the web root variables at the top of files Makefile and Site.mconf
in directory ${prefix}/var/${name} to your Apache document root location.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/68e39f6e/attachment.html>
More information about the macports-changes
mailing list