aboutsummaryrefslogtreecommitdiffstats
path: root/security/fwlogwatch/Makefile
blob: 6140d70e355df2d09c7ccc8edba4a4059a46730c (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
# ex:ts=8
# New ports collection makefile for:    fwlogwatch
# Date created:         Nov 20, 2001
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   fwlogwatch
PORTVERSION=    0.6
CATEGORIES= security
MASTER_SITES=   http://www.kyb.uni-stuttgart.de/boris/sw/

MAINTAINER= ports@FreeBSD.org

LIB_DEPENDS=    intl:${PORTSDIR}/devel/gettext

INSTALL_TARGET= install install-config install-i18n
MANCOMPRESSES=  no
MAN8=   fwlogwatch.8
MAKE_ENV=   MKDIR="${MKDIR}"

post-patch:
    @${PERL} -pi -e 's,/etc,${PREFIX}/etc,g; \
        s,/usr/local,${PREFIX},g; \
        s,/usr/share,${PREFIX}/share,g; \
        s,%%LOCALBASE%%,${LOCALBASE},g' \
        ${WRKSRC}/Makefile ${WRKSRC}/main.h
    @${PERL} -pi -e "s,/etc,${PREFIX}/etc,g" ${WRKSRC}/${MAN8}

post-install:
    @${INSTALL_SCRIPT} ${FILESDIR}/fwlogwatch.sh.sample ${PREFIX}/etc/rc.d

.include <bsd.port.mk>