summaryrefslogtreecommitdiff
path: root/www/py-prewikka/Makefile
blob: f9c8de6e58f81cb128d565d64dc44e25cd493f7e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Created by: Robin Gruyters <r.gruyters@yirdis.nl>
# $FreeBSD$

PORTNAME=	prewikka
PORTVERSION=	1.0.1p1
PORTREVISION=	2
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

BROKEN=		unfetchable

BUILD_DEPENDS=	cheetah-compile:devel/py-cheetah
LIB_DEPENDS=	libprelude.so:security/libprelude \
		libpreludedb.so:security/libpreludedb

USES=		python:2.7
USE_PYTHON=	distutils

OPTIONS_DEFINE=	NLS

.include <bsd.port.options.mk>

.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 <bsd.port.mk>