blob: 29eb261846345a3a8b29fa89988a690b5482957d (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
# New ports collection makefile for: libprelude
# Date created: Sun Aug 4 19:31:17 CEST 2002
# Whom: Clement Laforet <sheepkiller@cultdeadsheep.org>
# $FreeBSD$
PORTNAME= libprelude
PORTVERSION= 0.9.24.1
CATEGORIES= security
MASTER_SITES= http://www.prelude-ids.com/download/releases/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTNAME} ${PORTNAME}/old
MAINTAINER= ports@FreeBSD.org
COMMENT= Framework library for Prelude NIDS
LIB_DEPENDS= gnutls.40:${PORTSDIR}/security/gnutls
OPTIONS= PERL "Include Perl bindings" off \
PYTHON "Include Python bindings" off
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CONFIGURE_ARGS= --localstatedir=/var \
--enable-gtk-doc=no \
--with-html-dir=${PREFIX}/share/doc
MAN1= prelude-admin.1
PORTDOCS= *
.include <bsd.port.options.mk>
.if defined(WITH_PERL)
USE_PERL5= yes
.include "${PORTSDIR}/Mk/bsd.perl.mk"
CONFIGURE_ARGS+= --with-perl
PLIST_SUB+= WITH_PERL=""
.else
CONFIGURE_ARGS+= --without-perl
PLIST_SUB+= WITH_PERL="@comment "
.endif
.if defined(WITH_PYTHON)
USE_PYTHON= yes
CONFIGURE_ARGS+= --with-python
PLIST_SUB+= WITH_PYTHON="" PYTHON_VER=${PYTHON_VER}
.else
CONFIGURE_ARGS+= --without-python
PLIST_SUB+= WITH_PYTHON="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64"
BROKEN= Does not compile
.endif
post-patch:
@${REINPLACE_CMD} -e 's|libdir)/pkgconfig|prefix)/libdata/pkgconfig|' ${WRKSRC}/src/Makefile.in
post-install:
.if !defined(NOPORTDOCS)
${INSTALL} -d ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/api/html/* ${DOCSDIR}
.endif
@${INSTALL_MAN} ${WRKSRC}/docs/manpages/*.1 ${MAN1PREFIX}/man/man1/
@${INSTALL_DATA} ${WRKSRC}/client.conf \
${PREFIX}/etc/prelude/default/client.conf-dist
@${INSTALL_DATA} ${WRKSRC}/global.conf \
${PREFIX}/etc/prelude/default/global.conf-dist
@${INSTALL_DATA} ${WRKSRC}/tls.conf \
${PREFIX}/etc/prelude/default/tls.conf-dist
@${INSTALL_DATA} ${WRKSRC}/idmef-client.conf \
${PREFIX}/etc/prelude/default/idmef-client.conf-dist
@if [ ! -f ${PREFIX}/etc/prelude/default/client.conf ]; then \
${CP} -p ${PREFIX}/etc/prelude/default/client.conf-dist \
${PREFIX}/etc/prelude/default/client.conf ; \
fi
@if [ ! -f ${PREFIX}/etc/prelude/default/global.conf ]; then \
${CP} -p ${PREFIX}/etc/prelude/default/global.conf-dist \
${PREFIX}/etc/prelude/default/global.conf ; \
fi
@if [ ! -f ${PREFIX}/etc/prelude/default/idmef-client.conf ]; then \
${CP} -p ${PREFIX}/etc/prelude/default/idmef-client.conf-dist \
${PREFIX}/etc/prelude/default/idmef-client.conf ; \
fi
@if [ ! -f ${PREFIX}/etc/prelude/default/tls.conf ]; then \
${CP} -p ${PREFIX}/etc/prelude/default/tls.conf-dist \
${PREFIX}/etc/prelude/default/tls.conf ; \
fi
.include <bsd.port.post.mk>
|