source: trunk/dports/sysutils/syslog-ng/Portfile

Last change on this file was 125738, checked in by mf2k@…, 3 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    syslog-ng
6version                 3.0.8
7revision                2
8categories              sysutils
9license                 {GPL-2 OpenSSLException}
10platforms               darwin
11maintainers             nomaintainer
12description             Highly configurable syslog replacement.
13long_description        syslog-ng is the world's most flexible and scalable audit \
14                                        trail processing tool for organizations of any size. It \
15                                        provides a centralised, securely stored log of all devices \
16                                        on your network, whatever platform they run on. And \
17                                        syslog-ng also incorporates a host of powerful features, \
18                                        including filtering based on message content, as well as \
19                                        customisable data mining and analysis capabilities.
20
21homepage                        http://www.balabit.com/products/syslog_ng/
22master_sites                    http://www.balabit.com/downloads/files/syslog-ng/open-source-edition/${version}/source/
23checksums                       md5 7107f5758dec4b774136f0f827b35258
24distfiles                       ${name}_${version}${extract.suffix}
25patchfiles                      patch-src-Makefile.in.diff
26
27depends_build                   path:bin/pkg-config:pkgconfig
28depends_lib                     port:eventlog \
29                                port:libnet11 \
30                                path:lib/pkgconfig/glib-2.0.pc:glib2
31
32startupitem.create      yes
33startupitem.executable  ${prefix}/sbin/syslog-ng
34startupitem.pidfile clean ${prefix}/var/syslog-ng.pid
35
36configure.args          --mandir=${prefix}/share/man \
37                        --enable-dynamic-linking \
38                        --sysconfdir=${prefix}/etc
39
40platform powerpc        {
41        configure.args-append           --host=powerpc
42}
43
44pre-destroot {
45# Append the major.minor version number to the top of the sample config
46        set major_minor [join [lrange [split ${version} .] 0 1] .]
47        system "echo version $major_minor >> ${worksrcpath}/doc/examples/header"
48        system "cat ${worksrcpath}/doc/examples/header ${worksrcpath}/doc/examples/syslog-ng.conf.sample \
49                > ${worksrcpath}/doc/examples/syslog-ng.conf-dist"
50}
51
52post-destroot   {
53        xinstall -m 644 ${worksrcpath}/doc/examples/syslog-ng.conf-dist \
54                ${destroot}${prefix}/etc
55        xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
56        xinstall -m 644 -W ${worksrcpath} ChangeLog README AUTHORS COPYING NEWS \
57                ${destroot}${prefix}/share/doc/${name}
58        reinplace "s|/dev/log|/var/run/syslog|g" \
59                ${destroot}${prefix}/etc/syslog-ng.conf-dist
60}
61
62notes \
63"To use syslog-ng, first unload OS X's built-in syslog daemon:
64
65        sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.syslogd.plist
66
67Then copy ${prefix}/etc/syslog-ng.conf-dist to ${prefix}/etc/syslog-ng.conf,
68customize, and load syslog-ng:
69
70        sudo launchctl load -w /Library/LaunchDaemons/org.macports.syslog-ng.plist"
Note: See TracBrowser for help on using the repository browser.