# New ports collection makefile for: ipa_ipfw # Date created: 27 December 2005 # Whom: Andrey Simonenko # # $FreeBSD$ # PORTNAME= ipa_ipfw PORTVERSION= 1.0 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 NO_PACKAGE= "Needs to be built uniquely for each host" 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 .ifdef WITH_PTHREAD 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 .ifdef WITHOUT_DEBUG_INFO MAKE_ENV+= DEBUG_FLAGS="" .endif BUILD_DEPENDS= ${PREFIX}/include/ipa_mod.h:${PORTSDIR}/sysutils/ipa PLIST_FILES= lib/ipa_ipfw.so MANCOMPRESSED= yes MAN8= ipa_ipfw.8 MANLANG= "" .ifdef WITH_MAN_KOI8_R MANLANG+= ru.KOI8-R .endif do-install: cd ${WRKSRC} && make install echo ${MANLANG} .ifdef WITH_MAN_KOI8_R cd ${WRKSRC}/man && make LANG_DIR_SRC=ru.KOI8-R clean all install .endif .include