Ticket #18021: patch-logwatch2.diff

File patch-logwatch2.diff, 2.8 KB (added by lassi.tuura@…, 16 years ago)

Cumulative patch.

  • Portfile

    diff -ru ../logwatch-old/Portfile ../logwatch/Portfile
    old new  
    44PortSystem          1.0
    55
    66name                logwatch
     7revision            1
    78version             7.3.6
    89distname            logwatch-${version}
    910categories          security
     
    2324checksums           md5 937d982006b2a76a83edfcfd2e5a9d7d
    2425
    2526use_configure       no
    26 build { }
    27 destroot {
    28 
     27build {
    2928    reinplace s|/usr/share/${name}|${prefix}/share/${name}|g ${worksrcpath}/scripts/logwatch.pl
    3029    reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/scripts/logwatch.pl
    3130    reinplace s|/var/cache/${name}|${prefix}/var/cache/${name}|g ${worksrcpath}/conf/logwatch.conf
    3231    reinplace s|messages|system|g ${worksrcpath}/conf/logfiles/messages.conf
     32}
    3333
     34destroot.keepdirs   ${destroot}${prefix}/var/cache/${name}
     35destroot {
    3436    file mkdir ${destroot}${prefix}/etc/${name}/scripts
    3537    file mkdir ${destroot}${prefix}/etc/${name}/conf/logfiles
    3638    file mkdir ${destroot}${prefix}/etc/${name}/conf/services
    3739    file mkdir ${destroot}${prefix}/share/${name}/dist.conf/logfiles
    3840    file mkdir ${destroot}${prefix}/var/cache/${name}
    39     touch ${destroot}${prefix}/var/cache/.turd
    4041
    4142    file copy ${worksrcpath}/conf    ${destroot}${prefix}/share/${name}/default.conf
    4243    file copy ${worksrcpath}/scripts ${destroot}${prefix}/share/${name}/scripts
     
    4546    ln -s ../share/${name}/scripts/logwatch.pl ${destroot}${prefix}/bin/logwatch
    4647
    4748    # startup item
    48     file delete /Library/LaunchDaemons/org.macports.${name}.plist
    4949    file mkdir ${destroot}${prefix}/etc/LaunchDaemons/${name}
    5050    file copy files/org.macports.${name}.plist ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
    5151    reinplace s|@PREFIX@|${prefix}|g ${destroot}${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist
    5252}
    5353
    5454post-destroot {
     55    file delete /Library/LaunchDaemons/org.macports.${name}.plist
    5556    ln -s ${prefix}/etc/LaunchDaemons/${name}/org.macports.${name}.plist /Library/LaunchDaemons
    5657    ui_msg "###########################################################"
    5758    ui_msg "# A startup item has been generated that will aid in"
    58     ui_msg "# starting dnsmasq with launcd. It is disabled"
     59    ui_msg "# starting logwatch with launchd. It is disabled"
    5960    ui_msg "# by default. Execute the following command to start it,"
    6061    ui_msg "# and to cause it to launch at startup:"
    6162    ui_msg "#"
    62     ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.dnsmasq.plist"
     63    ui_msg "# sudo launchctl load -w /Library/LaunchDaemons/org.macports.logwatch.plist"
    6364    ui_msg "###########################################################"
    6465}