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