aboutsummaryrefslogtreecommitdiffstats
path: root/security/fcheck/Makefile
blob: 636bdc7186455e099a73a66262cb5066fce806a0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# New ports collection makefile for:    fcheck
# Date created:     2008-01-31
# Whom:         Lars Engels <lme@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   fcheck
PORTVERSION=    2.07.59
CATEGORIES= security
MASTER_SITES=   http://www.sourcefiles.org/Networking/Security/Intrusion_Detection/ \
        http://bsd-geek.de/FreeBSD/distfiles/
DISTNAME=   FCheck_${PORTVERSION}

MAINTAINER= lme@FreeBSD.org
COMMENT=    Intrusion detection and Policy enforcement / auditing software

WRKSRC= ${WRKDIR}/${PORTNAME}

PORTDOCS=   *
PLIST_FILES=    sbin/${PORTNAME} etc/${PORTNAME}.cfg.sample
NO_BUILD=   YES
USE_PERL5=  YES

.include <bsd.port.pre.mk>

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/bin/perl|${PREFIX}/bin/perl|' \
        -e 's|/usr/local/admtools/conf/|${PREFIX}/etc/|' ${WRKSRC}/${PORTNAME}
    @${REINPLACE_CMD} -e 's|/usr/local/admtools/|/var/${PORTNAME}/|' \
        -e 's|/bin/file|/usr/bin/file|' -e 's|/bin/cksum|/sbin/md5|' \
        ${WRKSRC}/${PORTNAME}.cfg

do-install:
    ${MKDIR} /var/${PORTNAME}
    ${MKDIR} /var/${PORTNAME}/logs
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
    ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.cfg ${PREFIX}/etc/${PORTNAME}.cfg.sample

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
    ${INSTALL_MAN} ${WRKSRC}/install ${DOCSDIR}
.endif

.include <bsd.port.post.mk>