Portfile

# $Id: Portfile 21687 2007-02-02 18:06:05Z jmpp@macports.org $

PortSystem 1.0

name logsurfer
version 1.6b
categories security
platforms darwin
maintainers mat@phpconsulting.com jmpp@macports.org openmaintainer@macports.org

description monitors system logs in real-time and reports on the occurrence of events
long_description similar to the well-known swatch program on which it is based, \
but offers a number of advanced features which swatch does not support. \
Logsurfer is capable of grouping related log entries together - for instance,\
when a system boots it usually creates a high number of log messages.

homepage http://www.crypt.gen.nz/logsurfer/
master_sites http://kerryt.orcon.net.nz/
distname ${name}+-${version}
checksums md5 ad72ac6f3d13d41f6ec74a16dd7666c0

patchfiles patch-all-Makefile.in.diff

configure.args --mandir=${prefix}/share/man --with-etcdir=${prefix}/etc

post-build {
cd ${worksrcpath}/contrib/prtime
system "cc -o prtime prtime.c"
}

post-destroot {
xinstall -d -m 755 ${destroot}${prefix}/share/${name}/prtime
xinstall -d -m 755 ${destroot}${prefix}/share/${name}/start-mail
xinstall -d -m 755 ${destroot}${prefix}/etc
xinstall -m 644 -v ${worksrcpath}/README ${destroot}${prefix}/share/${name}
xinstall -m 755 -v ${worksrcpath}/contrib/prtime/prtime ${destroot}${prefix}/bin
xinstall -m 644 -v ${worksrcpath}/contrib/prtime/README \
${destroot}${prefix}/share/${name}/prtime
xinstall -m 755 -v ${worksrcpath}/contrib/start-mail/start-mail ${destroot}${prefix}/bin
xinstall -m 644 -v ${worksrcpath}/contrib/start-mail/README \
${destroot}${prefix}/share/${name}/start-mail
xinstall -m 644 -v -c /dev/null ${destroot}${prefix}/etc/${name}.conf
}

post-activate {
ui_msg "\nThe ${prefix}/etc/${name}.conf file is installed but empty. For full functionality \
of ${name} a working configuration file should be written from scratch; read \"man 4 logsurfer.conf\" for \
information on how to do this.\n
For configuration of additional daemons, see: http://www.obfuscation.org/emf/logsurfer.html"
}

files