blob: ff968a7be8196d52f0e8d919000b339b4a2e52c1 (
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
|
# Created by: Sergei Kolobov <sergei@FreeBSD.org>
# $FreeBSD$
PORTNAME= libpreludedb
PORTVERSION= 1.0.1p1
PORTREVISION= 10
CATEGORIES= security
MASTER_SITES= https://www.prelude-ids.org/attachments/download/287/
MAINTAINER= ports@FreeBSD.org
COMMENT= Framework library for access to Prelude NIDS database
LICENSE= GPLv2 # or later
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libltdl.so:${PORTSDIR}/devel/libltdl \
libgmp.so:${PORTSDIR}/math/gmp \
libgnutls.so:${PORTSDIR}/security/gnutls \
libgcrypt.so:${PORTSDIR}/security/libgcrypt \
libgpg-error.so:${PORTSDIR}/security/libgpg-error \
libprelude.so:${PORTSDIR}/security/libprelude \
libnettle.so:${PORTSDIR}/security/nettle \
libp11-kit.so:${PORTSDIR}/security/p11-kit
USES= gettext gmake iconv libtool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-gtk-doc=no \
--with-html-dir=${PREFIX}/share/doc
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
PORTDOCS= *
OPTIONS_DEFINE= DOCS PERL PYTHON
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= MYSQL
OPTIONS_SUB= yes
MYSQL_DESC= MySQL plugin
MYSQL_USE= mysql=yes
MYSQL_CONFIGURE_WITH= mysql
PERL_DESC= Perl bindings
PERL_USES= perl5
PERL_USE= perl5=build,run
PERL_CONFIGURE_WITH= perl
PGSQL_DESC= PostgreSQL plugin
PGSQL_USES= pgsql
PGSQL_CONFIGURE_WITH= postgresql
PYTHON_USES= python
PYTHON_CONFIGURE_WITH= python
PYTHON_PLIST_SUB= PYTHON_VER="${PYTHON_VER}"
SQLITE_DESC= SQLite3 plugin
SQLITE_USE= sqlite=yes
SQLITE_CONFIGURE_WITH= sqlite3
.include <bsd.port.options.mk>
post-install:
(cd ${WRKSRC}/docs/manpages && ${INSTALL_MAN} *.1 \
${STAGEDIR}${MAN1PREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/docs/api/html && ${INSTALL_DATA} * \
${STAGEDIR}${DOCSDIR})
.if ${PORT_OPTIONS:MPERL}
@${FIND} ${STAGEDIR}${PREFIX}/lib/perl5 \
-name "*.so" | ${XARGS} ${STRIP_CMD}
.endif
.if ${PORT_OPTIONS:MPYTHON}
@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
-name "*.so" | ${XARGS} ${STRIP_CMD}
.endif
.include <bsd.port.mk>
|