# -*- 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 # $Id$ PortSystem 1.0 name rkhunter version 1.4.2 categories sysutils security license GPL-2 maintainers mps openmaintainer description A tool to search for rootkits. long_description ${description} platforms darwin homepage http://rkhunter.sourceforge.net/ master_sites sourceforge:project/rkhunter/rkhunter/${version}/ checksums rmd160 3aa8823583117ef9a0257b6fdb2a25d84fc9622d \ sha256 789cc84a21faf669da81e648eead2e62654cfbe0b2d927119d8b1e55b22b65c3 depends_lib port:wget patchfiles patch-installer.sh.diff post-patch { reinplace -W ${worksrcpath}/files "s|/var/log/rkhunter.log|${prefix}/var/log/rkhunter/rkhunter.log|g" rkhunter.conf } use_configure no build {} destroot.cmd ./installer.sh destroot.args --layout custom ${prefix} --install destroot.keepdirs ${destroot}${prefix}/var/log/rkhunter destroot.target post-destroot { xinstall ${filespath}/rkhunter.conf.local.sample ${destroot}${prefix}/etc/rkhunter reinplace -W ${destroot}${prefix}/etc/rkhunter "s|@PREFIX@|${prefix}|g" rkhunter.conf.local.sample xinstall -m 755 -d ${destroot}${prefix}/var/log/rkhunter } notes " Set up a local configuration file. You may start with the sample file sudo cp ${prefix}/etc/rkhunter/rkhunter.conf.local.sample ${prefix}/etc/rkhunter/rkhunter.conf.local and then edit it as needed. "