aboutsummaryrefslogtreecommitdiffstats
path: root/security/fwlogwatch/Makefile
blob: 160aec4a63d39e94fe3b16196842faa01cee6e38 (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
# 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

post-patch:
    @${PERL} -pi -e "s,%%LOCALBASE%%,${LOCALBASE},g ; \
        s,/etc,${PREFIX}/etc,g ; \
        s,/usr/local,${PREFIX},g ; \
        s,/usr/share,${PREFIX}/share,g" ${WRKSRC}/Makefile
    @${PERL} -pi -e "s,/etc,${PREFIX}/etc,g ; \
        s,/usr/share,${PREFIX}/share,g ; \
        s,/usr/local,${PREFIX},g" ${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>