-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
69 lines (55 loc) · 1.87 KB
/
Makefile
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
# $OpenBSD: Makefile,v 1.10 2011/09/16 11:41:40 espie Exp $
SHARED_ONLY = Yes
COMMENT-main = syslog daemon supporting databases, TCP, SSL, RELP
COMMENT-mysql = mysql plugin for rsyslog
COMMENT-pgsql = postgresql plugin for rsyslog
MULTI_PACKAGES = -main -mysql -pgsql
V = 4.6.4
DISTNAME = rsyslog-$V
PKGNAME-main = rsyslog-$V
PKGNAME-mysql = rsyslog-mysql-$V
PKGNAME-pgsql = rsyslog-pgsql-$V
CATEGORIES = sysutils
REVISION-main = 3
REVISION-mysql = 1
REVISION-pgsql = 1
HOMEPAGE = http://www.rsyslog.com/
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MODULES = devel/gettext
WANTLIB-main += c gmp hogweed nettle gnutls pthread
WANTLIB-main += relp tasn1 z ${MODGETTEXT_WANTLIB}
WANTLIB-mysql += crypto m mysqlclient ssl z
WANTLIB-pgsql += crypto com_err pq ssl
LIB_DEPENDS-main = security/gnutls \
sysutils/librelp
LIB_DEPENDS-mysql = databases/mysql
RUN_DEPENDS-mysql = ${PKGNAME-main}:${PKGPATH},-main
LIB_DEPENDS-pgsql = databases/postgresql
RUN_DEPENDS-pgsql = ${PKGNAME-main}:${PKGPATH},-main
MASTER_SITES = http://www.rsyslog.com/files/download/rsyslog/ \
http://download.rsyslog.com/rsyslog/
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.65
USE_LIBTOOL = Yes
LIBTOOL_FLAGS = --tag=disable-static
USE_GROFF = Yes
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--enable-pgsql \
--enable-mysql \
--enable-mail \
--enable-gnutls \
--enable-relp
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rsyslog
${INSTALL_DATA} ${WRKSRC}/rsyslog.conf \
${PREFIX}/share/examples/rsyslog
${INSTALL_DATA} ${WRKSRC}/plugins/ommysql/createDB.sql \
${PREFIX}/share/examples/rsyslog/createDB_mysql.sql
${INSTALL_DATA} ${WRKSRC}/plugins/ompgsql/createDB.sql \
${PREFIX}/share/examples/rsyslog/createDB_pgsql.sql
.include <bsd.port.mk>