44 lines
960 B
Makefile
44 lines
960 B
Makefile
# Created by: Sergey Skvortsov <skv@protey.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ng_ipacct
|
|
PORTVERSION= 20061223
|
|
PORTREVISION= 1
|
|
CATEGORIES= net-mgmt kld
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL:S!$!skv/!} \
|
|
http://highsecure.ru/distfiles/
|
|
|
|
MAINTAINER= vsevolod@FreeBSD.org
|
|
COMMENT= Netgraph IP accounting
|
|
|
|
.ifndef PACKAGE_BUILDING
|
|
NO_PACKAGE= depends on kernel
|
|
.else
|
|
IGNORE= depends on kernel
|
|
.endif
|
|
|
|
KMODDIR= /boot/modules
|
|
PLIST_SUB+= KMODDIR=${KMODDIR:S!^/!!}
|
|
|
|
MAKE_ENV= BINDIR="${PREFIX}/sbin" KMODDIR=${KMODDIR}
|
|
|
|
MAN8= ipacctctl.8
|
|
MANLANG= ru.KOI8-R
|
|
MANCOMPRESSED= yes
|
|
|
|
USE_RC_SUBR= ng_ipacct
|
|
SUB_FILES= pkg-message
|
|
CFLAGS+= -DMEM_USE_ZONE
|
|
|
|
NO_STAGE= yes
|
|
post-extract:
|
|
@${MV} ${WRKDIR}/${PORTNAME} ${WRKSRC}
|
|
|
|
post-install:
|
|
@${MKDIR} ${PREFIX}/include/netgraph
|
|
${INSTALL_DATA} ${WRKSRC}/ng_ipacct/ng_ipacct.h ${PREFIX}/include/netgraph
|
|
${INSTALL_DATA} ${FILESDIR}/ng_ipacct.conf \
|
|
${PREFIX}/etc/ng_ipacct.conf.sample
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|