Changeset 145613


Ignore:
Timestamp:
Feb 10, 2016, 11:31:55 PM (3 years ago)
Author:
khindenburg@…
Message:

logwatch: #50589 fix included

  • use patches for PREFIX instead of reinplaces
  • try to fix all folder locations
  • remove mailto=root in plist as that's the default
  • add manual pages
Location:
trunk/dports/security/logwatch
Files:
2 added
2 edited

Legend:

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

    r145392 r145613  
    66name                logwatch
    77version             7.4.1
    8 revision            4
     8revision            5
    99distname            logwatch-${version}
    1010categories          security
     
    3131                    sha256  35ec31f9fe981aaa727b144ab3ff2eb655997d8ccabaf66586458f5dfc3a56eb
    3232
    33 patchfiles          scripts_logwatch.pl.diff \
     33patchfiles          patch-scripts.logwatch.pl.diff \
     34                    patch-conf.logwatch.conf.diff \
    3435                    perl5.22-deprecations.diff
    3536
    3637use_configure       no
    37 build {
     38
     39post-patch {
     40    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/scripts/logwatch.pl
     41    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/conf/logwatch.conf
     42
    3843    reinplace s|#!/usr/bin/perl|#!${prefix}/bin/perl| ${worksrcpath}/scripts/logwatch.pl
    39     reinplace s|/usr/share/${name}|${prefix}/share/${name}|g ${worksrcpath}/scripts/logwatch.pl
    40     reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/scripts/logwatch.pl
    41     reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/conf/logwatch.conf
    4244    reinplace s|messages|system|g ${worksrcpath}/conf/logfiles/messages.conf
     45
     46    reinplace s|/usr/share/logwatch/default.conf|${prefix}/share/${name}/default.conf| ${worksrcpath}/logwatch.conf.5
     47    reinplace s|/etc/logwatch/conf/ignore.conf|${prefix}/share/${name}/conf/ignore.conf| ${worksrcpath}/logwatch.conf.5
     48    reinplace s|/etc/logwatch|${prefix}/etc/${name}| ${worksrcpath}/logwatch.conf.5
     49
     50    reinplace s|/usr/share|${prefix}/share| ${worksrcpath}/logwatch.8
     51    reinplace s|/etc/${name}|${prefix}/etc/${name}| ${worksrcpath}/logwatch.8
    4352}
    4453
    45 destroot.keepdirs   ${destroot}${prefix}/var/cache/${name}
     54build {}
     55
     56destroot.keepdirs   ${destroot}${prefix}/var/cache/${name} \
     57                    ${destroot}${prefix}/etc/${name} \
     58                    ${destroot}${prefix}/etc/${name}/scripts \
     59                    ${destroot}${prefix}/etc/${name}/conf/logfiles \
     60                    ${destroot}${prefix}/etc/${name}/conf/services
     61
    4662destroot {
     63    file mkdir ${destroot}${prefix}/var/cache/${name} \
     64    file mkdir ${destroot}${prefix}/etc/${name}
    4765    file mkdir ${destroot}${prefix}/etc/${name}/scripts
    4866    file mkdir ${destroot}${prefix}/etc/${name}/conf/logfiles
    4967    file mkdir ${destroot}${prefix}/etc/${name}/conf/services
    5068    file mkdir ${destroot}${prefix}/share/${name}/dist.conf/logfiles
    51     file mkdir ${destroot}${prefix}/var/cache/${name}
    5269
    5370    file copy ${worksrcpath}/conf    ${destroot}${prefix}/share/${name}/default.conf
    5471    file copy ${worksrcpath}/scripts ${destroot}${prefix}/share/${name}/scripts
    5572    file copy ${worksrcpath}/lib     ${destroot}${prefix}/share/${name}/lib
     73
     74    xinstall -m 755 -d ${destroot}${prefix}/share/man/man5
     75    xinstall -m 755 -d ${destroot}${prefix}/share/man/man8
     76
     77    xinstall -m 644 ${worksrcpath}/logwatch.conf.5 ${destroot}${prefix}/share/man/man5/
     78    xinstall -m 644 ${worksrcpath}/logwatch.8 ${destroot}${prefix}/share/man/man8/
    5679
    5780    # startup item
  • trunk/dports/security/logwatch/files/org.macports.logwatch.plist

    r46644 r145613  
    1212  <array>
    1313    <string>@PREFIX@/bin/logwatch</string>
    14         <string>--mailto</string>
    15         <string>root</string>
    1614  </array>
    1715  <key>ServiceDescription</key>
Note: See TracChangeset for help on using the changeset viewer.