aboutsummaryrefslogtreecommitdiffstats
path: root/net/pfflowd/Makefile
blob: 565a0788898791d79d5c9617d6193564651865aa (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
# New ports collection makefile for:   pfflowd
# Date created:        24 Feburary 2003
# Whom:                Andrew Thompson <andy@fud.org.nz>
#
# $FreeBSD$
#

PORTNAME=   pfflowd
PORTVERSION=    0.6
CATEGORIES= net
MASTER_SITES=   http://www.mindrot.org/files/pfflowd/

MAINTAINER= thompsa@FreeBSD.org
COMMENT=    Convert pfsync states to NetFlow datagrams

MAN8=       pfflowd.8

PLIST_FILES=    sbin/pfflowd \
        etc/rc.d/pfflowd.sh.sample

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 502106
IGNORE=     "Only for 5.3 and above"
.endif

.if ${OSVERSION} < 502119
EXTRA_PATCHES+= ${FILESDIR}/pf34-Makefile
.endif

post-patch:
    ${SED} -e 's|@@PREFIX@@|${PREFIX}|g' < ${FILESDIR}/pfflowd.sh.sample \
        > ${WRKSRC}/pfflowd.sh.sample

pre-build:
    ${CAT} ${FILESDIR}/pidfile.h > ${WRKSRC}/pidfile.h
    ${CAT} ${FILESDIR}/pidfile.c > ${WRKSRC}/pidfile.c

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/pfflowd ${PREFIX}/sbin
    ${INSTALL_MAN} ${WRKSRC}/pfflowd.8 ${PREFIX}/man/man8
    ${INSTALL_SCRIPT} ${WRKSRC}/pfflowd.sh.sample ${PREFIX}/etc/rc.d/pfflowd.sh.sample

.include <bsd.port.post.mk>