summaryrefslogtreecommitdiff
path: root/sysutils/rsyslog4-devel-mysql/Makefile
diff options
context:
space:
mode:
authorPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-01-27 19:48:39 +0000
committerPhilip M. Gollucci <pgollucci@FreeBSD.org>2009-01-27 19:48:39 +0000
commit4dc1d88d1775e39f400b0f33f53210a59398ecd2 (patch)
tree15f0c5eeb29120d9e332cbda15dea7422c4a798b /sysutils/rsyslog4-devel-mysql/Makefile
parentRsyslog works based in input and output modules. The port sysutils/rsyslog4 (diff)
Rsyslog works based in input and output modules. The port sysutils/rsyslog4
brings the core modules for basic functionality. -mysql outputs to a MySQL database PR: ports/130046 Submitted by: Cristiano Rolim Pereira <cristianorolim at hotmail.com>
Notes
Notes: svn path=/head/; revision=226992
Diffstat (limited to 'sysutils/rsyslog4-devel-mysql/Makefile')
-rw-r--r--sysutils/rsyslog4-devel-mysql/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/sysutils/rsyslog4-devel-mysql/Makefile b/sysutils/rsyslog4-devel-mysql/Makefile
new file mode 100644
index 000000000000..b79f1b0acb65
--- /dev/null
+++ b/sysutils/rsyslog4-devel-mysql/Makefile
@@ -0,0 +1,27 @@
+# New ports collection makefile for: rsyslog4-mysql
+# Date created: 29 December 2008
+# Whom: Cristiano Rolim Pereira <cristianorolim@hotmail.com>
+#
+# $FreeBSD$
+#
+
+COMMENT= MySQL output module for rsyslog
+
+MNAME= mysql
+USE_MYSQL= yes
+
+.include "${.CURDIR}/../rsyslog4/bsd.rsyslog.mk"
+
+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 <bsd.port.mk>