Ticket #16792: Portfile

File Portfile, 1.5 KB (added by Schamschula (Marius Schamschula), 10 years ago)
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$
3
4PortSystem          1.0
5
6name                rkhunter
7version             1.4.2
8categories          sysutils
9license             GPL-2
10maintainers         gmail.com:mschamschula openmaintainer
11description         A tool to search for rootkits.
12long_description    ${description}
13platforms           darwin
14homepage            http://rkhunter.sourceforge.net/
15master_sites        sourceforge
16
17checksums           rmd160  3aa8823583117ef9a0257b6fdb2a25d84fc9622d \
18                    sha256  789cc84a21faf669da81e648eead2e62654cfbe0b2d927119d8b1e55b22b65c3
19
20depends_lib         port:wget
21
22patchfiles          patch-installer.sh.diff
23
24post-patch {
25        reinplace -W ${worksrcpath}/files "s|/var/log/rkhunter.log|${prefix}/var/log/rkhunter/rkhunter.log|g" rkhunter.conf
26}
27
28use_configure       no
29
30build               {}
31
32destroot.cmd        ./installer.sh
33destroot.args       --layout custom ${prefix} --install
34destroot.keepdirs   ${destroot}${prefix}/var/log/rkhunter
35destroot.target     {}
36
37post-destroot {
38        xinstall ${filespath}/rkhunter.conf.local.sample ${destroot}${prefix}/etc/rkhunter
39       
40        xinstall -m 755 -d ${destroot}${prefix}/var/log/rkhunter
41}
42
43notes "
44Set up a local configuration file. You may start with the sample file
45
46sudo cp ${prefix}/etc/rkhunter/rkhunter.conf.local.sample ${prefix}/etc/rkhunter/rkhunter.conf.local
47
48and then edit it as needed.
49"