aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/ipacctd/Makefile
blob: e85bb3fc11ebf84e228def57f53aadf7b26d510d (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
# Created by: Sergey Skvortsov <skv@protey.ru>
# $FreeBSD$

PORTNAME=   ipacctd
PORTVERSION=    1.47
CATEGORIES= net-mgmt
MASTER_SITES=   LOCAL/skv

MAINTAINER= ports@FreeBSD.org
COMMENT=    IP accounting using divert socket

LICENSE=    BSD2CLAUSE

USES=       uidfix
USE_RC_SUBR=    ipacctd
MAKE_ENV=   BINDIR="${PREFIX}/sbin"

OPTIONS_DEFINE= DOCS

post-extract:
    @${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}

post-patch:
    @${REINPLACE_CMD} 's,{MANDIR},{DESTDIR}$$&,' ${WRKSRC}/man_ru/Makefile

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}/ru
    ${INSTALL_DATA} ${WRKSRC}/README.ipacctd ${STAGEDIR}${DOCSDIR}/ru

.include <bsd.port.mk>