Changeset 143408 for trunk/dports


Ignore:
Timestamp:
Dec 12, 2015, 9:26:02 AM (3 years ago)
Author:
mojca@…
Message:

nrg: whitespace, first line, checksums only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/net/nrg/Portfile

    r136578 r143408  
     1# -*- 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
    12# $Id$
    23
    3 PortSystem      1.0
     4PortSystem          1.0
    45
    5 name                            nrg
    6 version                         0.99.27
     6name                nrg
     7version             0.99.27
    78revision            2
    8 categories                      net
    9 maintainers                     nomaintainer
    10 platforms                       darwin
     9categories          net
     10maintainers         nomaintainer
     11platforms           darwin
    1112
    12 description                     Network Resource Grapher
     13description         Network Resource Grapher
    1314
    14 long_description                NRG is an RRDtool front-end tool to monitor traffic and load \
    15                                 on network links or any other resource utilization source.  It \
    16                                 automatically creates and maintains web pages and RRDtool databases, \
    17                                 while providing short and long-term graph web pages just like MRTG.
     15long_description    NRG is an RRDtool front-end tool to monitor traffic and load \
     16                    on network links or any other resource utilization source.  It \
     17                    automatically creates and maintains web pages and RRDtool databases, \
     18                    while providing short and long-term graph web pages just like MRTG.
    1819
    19 homepage                        http://ginseng.hep.wisc.edu/NRG/
    20 master_sites                    ftp://noc.hep.wisc.edu/src/nrg/ \
    21                                 ftp://noc.hep.wisc.edu/pub/src/nrg/
    22 checksums                       md5 c38e6b27bc99f8f7fd825bc6e1a44f68
    23 depends_lib                     port:rrdtool port:p5.16-time-hires
    24 patchfiles                      patch-nrg-discover-tcp.in.diff \
    25                                 patch-roverpingd-send.c.diff
     20homepage            http://ginseng.hep.wisc.edu/NRG/
     21master_sites        ftp://noc.hep.wisc.edu/src/nrg/ \
     22                    ftp://noc.hep.wisc.edu/pub/src/nrg/
    2623
    27 configure.perl                  ${prefix}/bin/perl5.16
     24checksums           rmd160  1192ce02d14447abdcff994671693eeb4ca67e28 \
     25                    sha256  ef851705f9ebd2bf55892823f258c7cffc079ae0276df4f40860c520262971c2
    2826
    29 configure.pre_args              --prefix=${prefix}/var/${name}
     27depends_lib         port:rrdtool \
     28                    port:p5.16-time-hires
    3029
    31 configure.args                  --bindir=${prefix}/bin \
    32                                 --sysconfdir=${prefix}/etc/${name} \
    33                                 --datadir=${prefix}/share \
    34                                 --build=powerpc-unknown-freebsd \
    35                                 CFLAGS="-D__FreeBSD__"
     30patchfiles          patch-nrg-discover-tcp.in.diff \
     31                    patch-roverpingd-send.c.diff
     32
     33configure.perl      ${prefix}/bin/perl5.16
     34
     35configure.pre_args  --prefix=${prefix}/var/${name}
     36
     37configure.args      --bindir=${prefix}/bin \
     38                    --sysconfdir=${prefix}/etc/${name} \
     39                    --datadir=${prefix}/share \
     40                    --build=powerpc-unknown-freebsd \
     41                    CFLAGS="-D__FreeBSD__"
    3642
    3743platform i386 {
    38         configure.args-delete   --build=powerpc-unknown-freebsd
    39         configure.args-append   --build=i386-unknown-freebsd
     44    configure.args-delete   --build=powerpc-unknown-freebsd
     45    configure.args-append   --build=i386-unknown-freebsd
    4046}
    4147
    4248variant pingd_server description {pingd daemon to graph network latency with NRG} {
    43         startupitem.create      yes
    44         startupitem.name        pingd
    45         startupitem.executable  "${prefix}/bin/pingd"
     49    startupitem.create      yes
     50    startupitem.name        pingd
     51    startupitem.executable  "${prefix}/bin/pingd"
    4652}
    4753
    48 build.target                    pingd
    49 destroot.target                 install.pingd install
     54build.target                pingd
     55destroot.target             install.pingd install
    5056
    5157# Maintain empty directories
     
    5561
    5662### Path fixes ###
    57         reinplace "s|@prefix@/bin|@bindir@|g" \
    58                 ${worksrcpath}/examples/NRG.mconf.in \
    59                 ${worksrcpath}/src/nrg-spiketrimmer.in
     63    reinplace "s|@prefix@/bin|@bindir@|g" \
     64        ${worksrcpath}/examples/NRG.mconf.in \
     65        ${worksrcpath}/src/nrg-spiketrimmer.in
    6066
    61         reinplace "s|@prefix@/bin|@bindir@|g" \
    62                 {*}[glob ${worksrcpath}/templates/*.in]
     67    reinplace "s|@prefix@/bin|@bindir@|g" \
     68        {*}[glob ${worksrcpath}/templates/*.in]
    6369
    6470#### Make NRG page title the way I want it ####
    65        reinplace "s|Somesite's NRG Home Page|NRG Home Page|g" \
    66                "${worksrcpath}/examples/Makefile.ops.in"
     71    reinplace "s|Somesite's NRG Home Page|NRG Home Page|g" \
     72        "${worksrcpath}/examples/Makefile.ops.in"
    6773
    6874
    6975#### Fix paths for proper destrooting ####
    70         reinplace "s|exec_prefix = @prefix@|exec_prefix = ${destroot}@prefix@|g" \
    71                 ${worksrcpath}/Makefile.in
    72         reinplace "s|prefix = @prefix@|prefix = ${destroot}@prefix@|g" \
    73                 ${worksrcpath}/Makefile.in
    74         reinplace "s|BIN_DIR = @bindir@|BIN_DIR = ${destroot}@bindir@|g" \
    75                 ${worksrcpath}/Makefile.in
    76         reinplace "s|ETC_DIR = @sysconfdir@|ETC_DIR = ${destroot}@sysconfdir@|g" \
    77                 ${worksrcpath}/Makefile.in
    78         reinplace "s|TEMPLATE_DIR = \${prefix}/templates|TEMPLATE_DIR = ${destroot}@prefix@/templates|g" \
    79                 ${worksrcpath}/Makefile.in
    80         reinplace "s|EXAMPLE_DIR = \${prefix}/examples|EXAMPLE_DIR = ${destroot}@datadir@/doc/nrg/examples|g" \
    81                 ${worksrcpath}/Makefile.in
    82         reinplace "s|HTML_DIR = \${prefix}/html|HTML_DIR = ${destroot}@datadir@/doc/nrg/html|g" \
    83                 ${worksrcpath}/Makefile.in
    84         reinplace "s|ARCHIVE_DIR = \${prefix}/archive|ARCHIVE_DIR = ${destroot}@prefix@/archive|g" \
    85                 ${worksrcpath}/Makefile.in
    86         reinplace "s|CONTRIB_DIR = \${prefix}/contrib|CONTRIB_DIR = ${destroot}@datadir@/doc/nrg/contrib|g" \
    87                 ${worksrcpath}/Makefile.in
     76    reinplace "s|exec_prefix = @prefix@|exec_prefix = ${destroot}@prefix@|g" \
     77        ${worksrcpath}/Makefile.in
     78    reinplace "s|prefix = @prefix@|prefix = ${destroot}@prefix@|g" \
     79        ${worksrcpath}/Makefile.in
     80    reinplace "s|BIN_DIR = @bindir@|BIN_DIR = ${destroot}@bindir@|g" \
     81        ${worksrcpath}/Makefile.in
     82    reinplace "s|ETC_DIR = @sysconfdir@|ETC_DIR = ${destroot}@sysconfdir@|g" \
     83        ${worksrcpath}/Makefile.in
     84    reinplace "s|TEMPLATE_DIR = \${prefix}/templates|TEMPLATE_DIR = ${destroot}@prefix@/templates|g" \
     85        ${worksrcpath}/Makefile.in
     86    reinplace "s|EXAMPLE_DIR = \${prefix}/examples|EXAMPLE_DIR = ${destroot}@datadir@/doc/nrg/examples|g" \
     87        ${worksrcpath}/Makefile.in
     88    reinplace "s|HTML_DIR = \${prefix}/html|HTML_DIR = ${destroot}@datadir@/doc/nrg/html|g" \
     89        ${worksrcpath}/Makefile.in
     90    reinplace "s|ARCHIVE_DIR = \${prefix}/archive|ARCHIVE_DIR = ${destroot}@prefix@/archive|g" \
     91        ${worksrcpath}/Makefile.in
     92    reinplace "s|CONTRIB_DIR = \${prefix}/contrib|CONTRIB_DIR = ${destroot}@datadir@/doc/nrg/contrib|g" \
     93        ${worksrcpath}/Makefile.in
    8894}
    8995
    9096post-destroot {
    9197# Install images to \${prefix}/var/nrg/web/icons
    92         xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
    93         xinstall -m 755 {*}[glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
     98    xinstall -d -m 755 ${destroot}${prefix}/var/${name}/web/icons
     99    xinstall -m 755 {*}[glob ${worksrcpath}/images/*.*] ${destroot}${prefix}/var/${name}/web/icons
    94100
    95101# Rename Site.mconf so graphed devices won't get rewritten on port upgrades
    96         move ${destroot}${prefix}/var/${name}/Site.mconf \
    97                 ${destroot}${prefix}/var/${name}/Site.mconf.sample
     102    move ${destroot}${prefix}/var/${name}/Site.mconf \
     103        ${destroot}${prefix}/var/${name}/Site.mconf.sample
    98104}
    99105
     
    108114
    109115Uncomment lines:   AddHandler cgi-script .cgi
    110                    LoadModule expires_module   libexec/httpd/mod_expires.so
    111                    AddModule mod_expires.c
     116           LoadModule expires_module   libexec/httpd/mod_expires.so
     117           AddModule mod_expires.c
    112118
    113 Add directives:    <Directory /my-Apache-document-root/nrg>
    114                       Options ExecCGI
    115                    </Directory>
     119Add directives:    <Directory /my-Apache-document-root/nrg>
     120              Options ExecCGI
     121           </Directory>
    116122
    117                    <Files \"*.gif\">
    118                       ExpiresActive On
    119                       ExpiresDefault M5
    120                    </Files>
     123           <Files \"*.gif\">
     124              ExpiresActive On
     125              ExpiresDefault M5
     126           </Files>
    121127
    122128Change the Apache user and group to the NRG user and group so Apache will
    123129have permissions to create graphs when you click an RRD file link.
    124130
    125                    User <nrg-user>
    126                    Group <nrg-group>
     131           User <nrg-user>
     132           Group <nrg-group>
    127133
    1281343) Change the web root variables at the top of files Makefile and Site.mconf
Note: See TracChangeset for help on using the changeset viewer.