Changeset 21562


Ignore:
Timestamp:
Jan 29, 2007, 2:12:57 AM (13 years ago)
Author:
markd@…
Message:

Add apple_apache variant for using Apple's Apache; use perl5 portgroup to set a path to 'perl -V:sitearch'.

Location:
trunk/dports/net/smokeping
Files:
4 edited

Legend:

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

    r21550 r21562  
    22
    33PortSystem 1.0
     4PortGroup               perl5 1.0
    45name                    smokeping
    56version                 2.0.9
    6 categories              net
     7revision                1
     8categories              net perl
    79maintainers             markd@macports.org
    810description             A deluxe latency logging and graphing system.
     
    4749        startupitem.executable  ${prefix}/bin/smokeping
    4850
     51variant apple_apache {
     52# This variant is for using Smokeping with Apple's built-in Apache.  The variant
     53# doesn't do anything in the Smokeping port, but it triggers the same variant name
     54# in p5-cgi-speedycgi, which is necessary for SpeedyCGI to work with Apache 1, and
     55# therefore necessary for Smokeping to work with Apple's Apache.
     56}
     57
    4958use_configure           no
    5059build {}
     
    5564                [glob ${worksrcpath}/etc/*.dist] \
    5665                [glob ${worksrcpath}/htdocs/*.dist]
     66
     67        eval reinplace "s|__PERL5__ARCHLIB__|${perl5.archlib}|g" \
     68                [glob ${worksrcpath}/bin/*.dist] \
     69                [glob ${worksrcpath}/etc/*.dist] \
     70                [glob ${worksrcpath}/htdocs/*.dist]
    5771
    5872        eval reinplace "s|/usr/bin/perl|${prefix}/bin/perl|g" \
     
    92106        xinstall -m 755 -d ${destroot}${smokeetc}
    93107        file copy ${worksrcpath}/etc/basepage.html.dist ${destroot}${smokeetc}/basepage.html
    94         file copy ${worksrcpath}/etc/config.dist ${destroot}${smokeetc}/config
     108# Leave the config.dist filename for users to remove so upgrades won't destroy the config file.
     109        file copy ${worksrcpath}/etc/config.dist ${destroot}${smokeetc}/config.dist
    95110        file copy ${worksrcpath}/etc/smokemail.dist ${destroot}${smokeetc}/smokemail
    96111        file copy ${worksrcpath}/etc/tmail.dist ${destroot}${smokeetc}/tmail
     
    158173
    159174
    160 4) Edit ${prefix}/etc/smokeping/config.
     1754) Use the ${smokeetc}/config sample file.
     176
     177   -Remove the .dist extension to activate the config file.
     178
     179        cd ${smokeetc}
     180        sudo mv config.dist config
    161181
    162182   -Paths are set by MacPorts, leave them alone.
     
    182202   -Add this statement to /etc/syslog.conf.
    183203
    184    local1.*     ${prefix}/var/smokeping/smokeping.log
     204   local1.*     ${smokedata}/log/smokeping.log
    185205
    186206   -Create a logfile to receive the log messages.
  • trunk/dports/net/smokeping/files/patch-bin-smokeping.dist

    r21542 r21562  
    88-use lib qw(/usr/pack/rrdtool-1.0.49-to/lib/perl);
    99-use lib qw(lib);
    10 +use lib qw(__PREFIX__/lib/perl5/site_perl/5.8.8/darwin-2level/auto/RRDs);
     10+use lib qw(__PERL5__ARCHLIB__/auto/RRDs);
    1111+use lib qw(__PREFIX__/lib/smokeping);
    1212 
  • trunk/dports/net/smokeping/files/patch-bin-tSmoke.dist

    r21542 r21562  
    1414-use lib "/usr/local/rrdtool-1.0.39/lib/perl";
    1515+use lib qw(__PREFIX__/lib/smokeping/lib);
    16 +use lib "__PREFIX__/lib/perl5/site_perl/5.8.8/darwin-2level/auto/RRDs";
     16+use lib "__PERL5__ARCHLIB__/auto/RRDs";
    1717 
    1818 use Smokeping 2.000009;
  • trunk/dports/net/smokeping/files/patch-htdocs-smokeping.cgi.dist

    r21542 r21562  
    88-use lib qw(/usr/pack/rrdtool-1.0.33-to/lib/perl);
    99-use lib qw(/home/oetiker/data/projects/AADJ-smokeping/dist/lib);
    10 +use lib qw(__PREFIX__/lib/perl5/site_perl/5.8.8/darwin-2level/auto/RRDs);
     10+use lib qw(__PERL5__ARCHLIB__/auto/RRDs);
    1111+use lib qw(__PREFIX__/lib/smokeping);
    1212 use CGI::Carp qw(fatalsToBrowser);
Note: See TracChangeset for help on using the changeset viewer.