aboutsummaryrefslogtreecommitdiff
path: root/sysutils/rsyslog5-devel-mysql
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/rsyslog5-devel-mysql')
-rw-r--r--sysutils/rsyslog5-devel-mysql/Makefile27
-rw-r--r--sysutils/rsyslog5-devel-mysql/pkg-plist4
2 files changed, 31 insertions, 0 deletions
diff --git a/sysutils/rsyslog5-devel-mysql/Makefile b/sysutils/rsyslog5-devel-mysql/Makefile
new file mode 100644
index 000000000000..b79f1b0acb65
--- /dev/null
+++ b/sysutils/rsyslog5-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>
diff --git a/sysutils/rsyslog5-devel-mysql/pkg-plist b/sysutils/rsyslog5-devel-mysql/pkg-plist
new file mode 100644
index 000000000000..3321cd33fa3a
--- /dev/null
+++ b/sysutils/rsyslog5-devel-mysql/pkg-plist
@@ -0,0 +1,4 @@
+lib/rsyslog/ommysql.la
+lib/rsyslog/ommysql.so
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/mysql_createDB.sql
+%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%%