# Created by: Robin Gruyters # $FreeBSD$ PORTNAME= prewikka PORTVERSION= 1.0.1p1 CATEGORIES= www security python MASTER_SITES= https://www.prelude-ids.org/attachments/download/286/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= ports@FreeBSD.org COMMENT= Frontend for the Prelude IDS BUILD_DEPENDS= cheetah-compile:${PORTSDIR}/devel/py-cheetah LIB_DEPENDS= libprelude.so:${PORTSDIR}/security/libprelude \ libpreludedb.so:${PORTSDIR}/security/libpreludedb USE_PYTHON= 2 USE_PYDISTUTILS= yes OPTIONS_DEFINE= NLS .include .if ${PORT_OPTIONS:MNLS} USES+= gettext PLIST_SUB+= NLS="" .else PLIST_SUB+= NLS="@comment " .endif post-patch: ${MV} ${WRKSRC}/conf/prewikka.conf ${WRKSRC}/conf/prewikka.conf-dist ${REINPLACE_CMD} 's,conf/prewikka.conf,conf/prewikka.conf-dist,' \ ${WRKSRC}/setup.py .if !${PORT_OPTIONS:MNLS} ${REINPLACE_CMD} 's,\(.*self.data_files.extend(self._compile_po_files())\),#\1,' \ ${WRKSRC}/setup.py .endif .include