summaryrefslogtreecommitdiff
path: root/sysutils/rsyslog6-mysql/Makefile
blob: 9316781b3a0ceec9c9ddb180bbb494f947480a34 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Created by: Cristiano Rolim Pereira <cristianorolim@hotmail.com>
# $FreeBSD$

COMMENT=	MySQL output module for rsyslog
MASTERDIR=	${.CURDIR}/../rsyslog6

MNAME=	mysql
USE_MYSQL=	yes

CONFIGURE_ARGS+=--enable-mysql

do-install:
	@${INSTALL_PROGRAM} \
		${WRKSRC}/plugins/ommysql/.libs/ommysql.so ${PREFIX}/lib/rsyslog
	@${INSTALL_DATA} \
		${WRKSRC}/plugins/ommysql/ommysql.la ${PREFIX}/lib/rsyslog
post-install:
.ifndef NOPORTEXAMPLES
	@${INSTALL} -d ${EXAMPLESDIR}
	@${INSTALL_DATA} ${WRKSRC}/plugins/ommysql/createDB.sql ${EXAMPLESDIR}/mysql_createDB.sql
.endif
.include "${MASTERDIR}/Makefile"