Changeset 69984


Ignore:
Timestamp:
Jul 25, 2010, 9:34:28 AM (9 years ago)
Author:
markd@…
Message:

Update to 3.0.8 and add version number to top of sample config file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/sysutils/syslog-ng/Portfile

    r63918 r69984  
    44
    55name                    syslog-ng
    6 version                 3.0.5
     6version                 3.0.8
    77categories              sysutils
    88platforms               darwin
    9 maintainers             markd
     9maintainers             markd openmaintainer
    1010description             Highly configurable syslog replacement.
    1111long_description        syslog-ng is the world's most flexible and scalable audit \
     
    1919homepage                        http://www.balabit.com/products/syslog_ng/
    2020master_sites                    http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${version}/source/
    21 checksums                       md5 28f0d9ff2243b330e8cd6311ef9b2f12
     21checksums                       md5 7107f5758dec4b774136f0f827b35258
    2222distfiles                       ${name}_${version}${extract.suffix}
    2323patchfiles                      patch-src-Makefile.in.diff
     
    3939}
    4040
     41pre-destroot {
     42# Append the major.minor version number to the top of the sample config
     43        set major_minor [join [lrange [split ${version} .] 0 1] .]
     44        system "echo version $major_minor >> ${worksrcpath}/doc/examples/header"
     45        system "cat ${worksrcpath}/doc/examples/header ${worksrcpath}/doc/examples/syslog-ng.conf.sample \
     46                > ${worksrcpath}/doc/examples/syslog-ng.conf-dist"
     47}
     48
    4149post-destroot   {
    42         xinstall -m 644 ${worksrcpath}/doc/examples/syslog-ng.conf.sample \
     50        xinstall -m 644 ${worksrcpath}/doc/examples/syslog-ng.conf-dist \
    4351                ${destroot}${prefix}/etc
    4452        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     
    4654                ${destroot}${prefix}/share/doc/${name}
    4755        reinplace "s|/dev/log|/var/run/syslog|g" \
    48                 ${destroot}${prefix}/etc/syslog-ng.conf.sample
     56                ${destroot}${prefix}/etc/syslog-ng.conf-dist
    4957}
    5058
    51 post-activate {
    52 ui_msg "\n
    53 
    54 To use syslog-ng, first unload OS X's built-in syslog daemon:
     59notes \
     60"To use syslog-ng, first unload OS X's built-in syslog daemon:
    5561
    5662        sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.syslogd.plist
    5763
    58 Then customize ${prefix}/etc/syslog-ng.conf and load syslog-ng:
     64Then copy ${prefix}/etc/syslog-ng.conf-dist to ${prefix}/etc/syslog-ng.conf,
     65customize, and load syslog-ng:
    5966
    60         sudo launchctl load -w /Library/LaunchDaemons/org.macports.syslog-ng.plist
    61 \n"
    62 }
     67        sudo launchctl load -w /Library/LaunchDaemons/org.macports.syslog-ng.plist"
Note: See TracChangeset for help on using the changeset viewer.