2005-12-28 21:46:23 +00:00
|
|
|
# New ports collection makefile for: ipa_ipfw
|
|
|
|
# Date created: 27 December 2005
|
|
|
|
# Whom: Andrey Simonenko
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= ipa_ipfw
|
2006-04-28 04:21:46 +00:00
|
|
|
PORTVERSION= 1.0.1
|
2005-12-28 21:46:23 +00:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://ipa-system.sourceforge.net/modules/ipa_ipfw/
|
|
|
|
|
|
|
|
MAINTAINER= simon@comsys.ntu-kpi.kiev.ua
|
|
|
|
COMMENT= IPA accounting module for FreeBSD IP Firewall
|
|
|
|
|
2006-04-28 04:21:46 +00:00
|
|
|
NO_PACKAGE= Needs to be built uniquely for each host
|
2005-12-28 21:46:23 +00:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
|
|
|
|
OPTIONS= PTHREAD "Build pthread safe module" off \
|
|
|
|
DEBUG_INFO "Produce debugging info" off \
|
|
|
|
IPFW2 "Enable IPFW2 support (on FreeBSD < 5.x)" off \
|
|
|
|
MAN_KOI8_R "Install Russian manual pages" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-04-28 04:21:46 +00:00
|
|
|
.if defined(WITH_PTHREAD)
|
2005-12-28 21:46:23 +00:00
|
|
|
MAKE_ENV+= WITH_PTHREAD=yes
|
|
|
|
CFLAGS+= ${PTHREAD_CFLAGS}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 460100 && ${OSVERSION} < 500038
|
|
|
|
. if (defined(IPFW2) && !defined(WITH_IPFW2)) || defined(WITH_IPFW2)
|
|
|
|
MAKE_ENV+= IPFW2=yes
|
|
|
|
. endif
|
|
|
|
.endif
|
|
|
|
|
2006-04-28 04:21:46 +00:00
|
|
|
.if !defined(WITH_DEBUG_INFO)
|
2005-12-28 21:46:23 +00:00
|
|
|
MAKE_ENV+= DEBUG_FLAGS=""
|
|
|
|
.endif
|
|
|
|
|
2006-04-28 04:21:46 +00:00
|
|
|
BUILD_DEPENDS+= ${PREFIX}/include/ipa_mod.h:${PORTSDIR}/sysutils/ipa
|
2005-12-28 21:46:23 +00:00
|
|
|
|
|
|
|
PLIST_FILES= lib/ipa_ipfw.so
|
|
|
|
|
|
|
|
MANCOMPRESSED= yes
|
|
|
|
MAN8= ipa_ipfw.8
|
|
|
|
MANLANG= ""
|
2006-04-28 04:21:46 +00:00
|
|
|
.if defined(WITH_MAN_KOI8_R)
|
2005-12-28 21:46:23 +00:00
|
|
|
MANLANG+= ru.KOI8-R
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2006-04-28 04:21:46 +00:00
|
|
|
cd ${WRKSRC} && ${MAKE} install
|
|
|
|
.if defined(WITH_MAN_KOI8_R)
|
|
|
|
cd ${WRKSRC}/man && ${MAKE} LANG_DIR_SRC=ru.KOI8-R clean all install
|
2005-12-28 21:46:23 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|