# $Id: Portfile 65417 2010-03-26 01:35:23Z ryandesign@macports.org $

PortSystem       1.0
name		     chkrootkit
version		     0.49
categories	     sysutils
platforms	     darwin
maintainers	     nomaintainer
description	     chkrootkit is a tool to locally check for signs of a rootkit
long_description chkrootkit is a tool to locally check for signs of a rootkit.
homepage         http://www.chkrootkit.org/
master_sites     ftp://ftp.pangeia.com.br/pub/seg/pac/
checksums        md5     304d840d52840689e0ab0af56d6d3a18 \
                 sha1    cec1a3c482b95b20d3a946b07fffb23290abc4a6 \
                 rmd160  8c23ed9859a7dcf7d43ac15049b48c863ab63e92
                    
patchfiles       patch-Makefile

use_configure    no

build.target     sense all
build.args       CC=${configure.cc}

destroot {
    xinstall -m 755 -W ${worksrcpath} \
        check_wtmpx \
        chkdirs \
        chklastlog \
        chkproc \
        chkrootkit \
        chkutmp \
        chkwtmp \
        ifpromisc \
        strings-static \
        ${destroot}${prefix}/bin
        
    set docdir ${destroot}${prefix}/share/doc/chkrootkit
    xinstall -m 755 -d ${docdir}
    
    xinstall -m 644 -W ${worksrcpath} \
        ACKNOWLEDGMENTS \
        COPYRIGHT \
        README \
        README.chklastlog \
        README.chkwtmp \
        ${docdir}
}

livecheck.type   regex
livecheck.url    [lindex ${master_sites} 0]
livecheck.regex  ${name}-(\[0-9.\]+)\\.tar
