summaryrefslogtreecommitdiff
path: root/sysutils/rsyslog6-mysql/Makefile
blob: edaa27ccc83837b8de15d7135c0cacd942287260 (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
# 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

NO_STAGE=	yes
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"