2006-04-19 12:22:10 +02:00
|
|
|
# New ports collection makefile for: prewikka
|
|
|
|
# Date created: 2006-03-13
|
|
|
|
# Whom: Robin Gruyters <r.gruyters@yirdis.nl>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= prewikka
|
2009-10-11 11:12:09 +02:00
|
|
|
PORTVERSION= 0.9.17.1
|
2006-04-19 12:22:10 +02:00
|
|
|
CATEGORIES= www security python
|
2009-10-11 11:12:09 +02:00
|
|
|
MASTER_SITES= http://www.prelude-ids.com/download/releases/%SUBDIR%/
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/old
|
|
|
|
|
2006-04-19 12:22:10 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2009-09-24 00:17:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-04-19 12:22:10 +02:00
|
|
|
COMMENT= Frontend for the Prelude IDS
|
|
|
|
|
|
|
|
BUILD_DEPENDS= cheetah-compile:${PORTSDIR}/devel/py-cheetah
|
2009-09-19 23:12:56 +02:00
|
|
|
LIB_DEPENDS= prelude.20:${PORTSDIR}/security/libprelude \
|
2006-08-15 08:44:44 +02:00
|
|
|
preludedb.4:${PORTSDIR}/security/libpreludedb
|
2006-04-19 12:22:10 +02:00
|
|
|
|
2009-12-13 17:28:06 +01:00
|
|
|
USE_PYTHON= 2.4+
|
2006-04-19 12:22:10 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
2007-04-11 22:11:58 +02:00
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-09-23 04:31:01 +02:00
|
|
|
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
|
2007-04-11 22:11:58 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
${REINPLACE_CMD} 's,\(.*self.data_files.extend(self._compile_po_files())\),#\1,' \
|
|
|
|
${WRKSRC}/setup.py
|
|
|
|
.endif
|
2006-09-23 04:31:01 +02:00
|
|
|
|
2006-11-27 02:21:30 +01:00
|
|
|
post-install:
|
|
|
|
@if [ ! -f ${PREFIX}/etc/prewikka/prewikka.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/prewikka/prewikka.conf-dist \
|
|
|
|
${PREFIX}/etc/prewikka/prewikka.conf ; \
|
|
|
|
fi
|
|
|
|
|
2006-04-19 12:22:10 +02:00
|
|
|
.include <bsd.port.mk>
|