source: trunk/dports/security/logsentry/Portfile @ 128369

Last change on this file since 128369 was 128369, checked in by khindenburg@…, 5 years ago

logsentry: add modeline + whitespace changes

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.9 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 128369 2014-11-20 04:10:57Z khindenburg@macports.org $
3
4PortSystem          1.0
5
6name                logsentry
7version             1.1.1
8distname            logcheck-${version}
9categories          security
10maintainers         touche.fr.st:julien.touche
11description         logfile auditing tool
12long_description \
13    Logsentry is a scheduled auditing tool that scans system log files \
14    for security violations and unusual activity. Reports of suspicious \
15    log entries are mailed to a specified user (usually root). \
16    \
17    Logsentry was formerly known as logcheck.
18
19homepage            http://sourceforge.net/projects/sentrytools
20master_sites        sourceforge:sentrytools
21
22platforms           darwin
23checksums           md5 e97c2f096e219e20310c1b80e9e1bc29
24
25configure {}
26build.target        build
27
28patchfiles          patch-Makefile
29destroot.target     install
30
31post-patch {
32    reinplace "s|^TMPDIR = /usr/local/etc/tmp|TMPDIR = ${prefix}/var/tmp|" ${worksrcpath}/Makefile
33}
34
35destroot {
36    file mkdir ${destroot}${prefix}/etc/${name}
37    file mkdir ${destroot}${prefix}/share/doc/${name}
38    foreach doc_file {
39        CREDITS INSTALL README README.how.to.interpret README.keywords
40    } { system "install -m 644 ${worksrcpath}/$doc_file ${destroot}${prefix}/share/doc/${name}" }
41    foreach file {
42        logcheck.violations logcheck.violations.ignore \
43        logcheck.ignore logcheck.hacking
44    } { system "install -m 644 ${worksrcpath}/systems/generic/$file ${destroot}${prefix}/etc/${name}" }
45    system "install -m 755 ${worksrcpath}/src/logtail ${destroot}${prefix}/bin/"
46    system "install -m 755 ${worksrcpath}/systems/generic/logcheck.sh ${destroot}${prefix}/bin/"
47}
48
49post-destroot {
50    file mkdir ${destroot}${prefix}/var/tmp
51    system "touch ${destroot}${prefix}/var/tmp/.turd"
52    system "chmod 700 ${destroot}${prefix}/var/tmp"
53}
Note: See TracBrowser for help on using the repository browser.