Ignore:
Timestamp:
Oct 6, 2014, 1:34:43 AM (5 years ago)
Author:
khindenburg@…
Message:

logwatch: update to 7.4.1 #44013; add license; add perl dep; change how the bin link is done #44011; move ui_msg to notes; maintainer timeout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/logwatch/Portfile

    r126229 r126236  
    55
    66name                logwatch
    7 revision            2
    8 version             7.3.6
     7version             7.4.1
    98distname            logwatch-${version}
    109categories          security
     10license             MIT
    1111maintainers         cern.ch:lassi.tuura
    1212supported_archs     noarch
     
    2525
    2626platforms           darwin
    27 checksums           md5 937d982006b2a76a83edfcfd2e5a9d7d
     27depends_lib         path:bin/perl:perl5
     28
     29checksums           rmd160  dd9539b3880b3a9ce2d0772f09e52de238a89405 \
     30                    sha256  35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb
    2831
    2932patchfiles          scripts_logwatch.pl.diff
     
    3134use_configure       no
    3235build {
     36    reinplace s|#!/usr/bin/perl|#!${prefix}/bin/perl| ${worksrcpath}/scripts/logwatch.pl
    3337    reinplace s|/usr/share/${name}|${prefix}/share/${name}|g ${worksrcpath}/scripts/logwatch.pl
    3438    reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/scripts/logwatch.pl
     
    4953    file copy ${worksrcpath}/lib     ${destroot}${prefix}/share/${name}/lib
    5054
    51     ln -s ../share/${name}/scripts/logwatch.pl ${destroot}${prefix}/bin/logwatch
    52 
    5355    # startup item
    5456    file mkdir ${destroot}${prefix}/etc/LaunchDaemons/${name}
     
    6062    file delete /Library/LaunchDaemons/org.macports.${name}.plist
    6163    ln -s ${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist /Library/LaunchDaemons
    62     ui_msg "###########################################################"
    63     ui_msg "# A startup item has been generated that will aid in"
    64     ui_msg "# starting logwatch with launchd. It is disabled"
    65     ui_msg "# by default. Execute the following command to start it,"
    66     ui_msg "# and to cause it to launch at startup:"
    67     ui_msg "#"
    68     ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist"
    69     ui_msg "###########################################################"
     64    ln -s ${prefix}/share/${name}/scripts/logwatch.pl ${prefix}/bin/logwatch
    7065}
    7166
     67notes "
     68A startup item has been generated that will aid in
     69starting logwatch with launchd. It is disabled
     70by default. Execute the following command to start it,
     71and to cause it to launch at startup:
     72
     73sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist
     74"
     75
    7276livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracChangeset for help on using the changeset viewer.