aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorsat <sat@FreeBSD.org>2007-12-14 01:01:01 +0800
committersat <sat@FreeBSD.org>2007-12-14 01:01:01 +0800
commita4abcff431a7af2fd760367333a0408483ee0aa4 (patch)
tree87438d0bf98e71bb789f04d579e3575ea58f4ff4 /sysutils
parent65f2b11b28e1bfb5b481c51a7254cdf453ef1bab (diff)
downloadfreebsd-ports-gnome-a4abcff431a7af2fd760367333a0408483ee0aa4.tar.gz
freebsd-ports-gnome-a4abcff431a7af2fd760367333a0408483ee0aa4.tar.zst
freebsd-ports-gnome-a4abcff431a7af2fd760367333a0408483ee0aa4.zip
- Add MySQL and PostgreSQL output modules for rsyslog
Requested by: Jordan Ostreff <jordan.ostrev@vivatel.bg>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile2
-rw-r--r--sysutils/rsyslog-mysql/Makefile24
-rw-r--r--sysutils/rsyslog-pgsql/Makefile24
-rw-r--r--sysutils/rsyslog/Makefile16
-rw-r--r--sysutils/rsyslog3-mysql/Makefile24
-rw-r--r--sysutils/rsyslog3-pgsql/Makefile24
-rw-r--r--sysutils/rsyslog3/Makefile16
7 files changed, 118 insertions, 12 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index a04e9161bd8c..acbff3eafee0 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -566,6 +566,8 @@
SUBDIR += rsyncbackup
SUBDIR += rsyncmanager
SUBDIR += rsyslog
+ SUBDIR += rsyslog-mysql
+ SUBDIR += rsyslog-pgsql
SUBDIR += rtty
SUBDIR += ruby-log4r
SUBDIR += ruby-quota
diff --git a/sysutils/rsyslog-mysql/Makefile b/sysutils/rsyslog-mysql/Makefile
new file mode 100644
index 000000000000..4f87d4d1c85d
--- /dev/null
+++ b/sysutils/rsyslog-mysql/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: rsyslog-mysql
+# Date created: 13 December 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+COMMENT= MySQL output module for rsyslog
+PKGNAMESUFFIX= -mysql
+
+MASTERDIR= ${.CURDIR}/../rsyslog
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --enable-mysql
+RUN_DEPENDS= rsyslog>=0:${PORTSDIR}/sysutils/rsyslog
+PLIST_FILES= lib/rsyslog/ommysql.so
+PLIST_DIRS= lib/rsyslog
+PLIST= ""
+
+do-install:
+ @${INSTALL} -d ${PREFIX}/lib/rsyslog/
+ @${INSTALL_PROGRAM} ${WRKSRC}/plugins/ommysql/.libs/ommysql.so \
+ ${PREFIX}/lib/rsyslog/
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/rsyslog-pgsql/Makefile b/sysutils/rsyslog-pgsql/Makefile
new file mode 100644
index 000000000000..e8a0b5fdb889
--- /dev/null
+++ b/sysutils/rsyslog-pgsql/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: rsyslog-pgsql
+# Date created: 13 December 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+COMMENT= PostgreSQL output module for rsyslog
+PKGNAMESUFFIX= -pgsql
+
+MASTERDIR= ${.CURDIR}/../rsyslog
+USE_PGSQL= yes
+CONFIGURE_ARGS+= --enable-pgsql
+RUN_DEPENDS= rsyslog>=0:${PORTSDIR}/sysutils/rsyslog
+PLIST_FILES= lib/rsyslog/ompgsql.so
+PLIST_DIRS= lib/rsyslog
+PLIST= ""
+
+do-install:
+ @${INSTALL} -d ${PREFIX}/lib/rsyslog/
+ @${INSTALL_PROGRAM} ${WRKSRC}/plugins/ompgsql/.libs/ompgsql.so \
+ ${PREFIX}/lib/rsyslog/
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/rsyslog/Makefile b/sysutils/rsyslog/Makefile
index 75f7bbde16a5..f59fc70a4538 100644
--- a/sysutils/rsyslog/Makefile
+++ b/sysutils/rsyslog/Makefile
@@ -11,20 +11,22 @@ CATEGORIES= sysutils
MASTER_SITES= CENKES # http://download.rsyslog.com/rsyslog/
MAINTAINER= infofarmer@FreeBSD.org
-COMMENT= Enhanced syslog daemon
+COMMENT?= Enhanced syslog daemon
+.ifndef PKGNAMESUFFIX
LIB_DEPENDS= logging.0:${PORTSDIR}/devel/liblogging
-
USE_RC_SUBR= ${PORTNAME}d
+SUB_FILES= pkg-message
+MAN8= rfc3195d.8 rklogd.8 rsyslogd.8
+MAN5= rsyslog.conf.5
+.endif
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-klogd --disable-static
+CONFIGURE_ARGS+=--disable-klogd --disable-static
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-SUB_FILES= pkg-message
-MAN8= rfc3195d.8 rklogd.8 rsyslogd.8
-MAN5= rsyslog.conf.5
PORT_VERBS= rfc3195d rklogd ${PORTNAME}
post-patch:
@@ -45,11 +47,13 @@ post-configure:
@${ECHO_CMD} '#define FEATURE_RFC3195 1' >> ${WRKSRC}/config.h
@${ECHO_CMD} '#define PATCHLEVEL "0"' >> ${WRKSRC}/config.h
+.ifndef PKGNAMESUFFIX
post-install:
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/doc/*html ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
+.endif
.include <bsd.port.mk>
diff --git a/sysutils/rsyslog3-mysql/Makefile b/sysutils/rsyslog3-mysql/Makefile
new file mode 100644
index 000000000000..4f87d4d1c85d
--- /dev/null
+++ b/sysutils/rsyslog3-mysql/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: rsyslog-mysql
+# Date created: 13 December 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+COMMENT= MySQL output module for rsyslog
+PKGNAMESUFFIX= -mysql
+
+MASTERDIR= ${.CURDIR}/../rsyslog
+USE_MYSQL= yes
+CONFIGURE_ARGS+= --enable-mysql
+RUN_DEPENDS= rsyslog>=0:${PORTSDIR}/sysutils/rsyslog
+PLIST_FILES= lib/rsyslog/ommysql.so
+PLIST_DIRS= lib/rsyslog
+PLIST= ""
+
+do-install:
+ @${INSTALL} -d ${PREFIX}/lib/rsyslog/
+ @${INSTALL_PROGRAM} ${WRKSRC}/plugins/ommysql/.libs/ommysql.so \
+ ${PREFIX}/lib/rsyslog/
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/rsyslog3-pgsql/Makefile b/sysutils/rsyslog3-pgsql/Makefile
new file mode 100644
index 000000000000..e8a0b5fdb889
--- /dev/null
+++ b/sysutils/rsyslog3-pgsql/Makefile
@@ -0,0 +1,24 @@
+# New ports collection makefile for: rsyslog-pgsql
+# Date created: 13 December 2007
+# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+COMMENT= PostgreSQL output module for rsyslog
+PKGNAMESUFFIX= -pgsql
+
+MASTERDIR= ${.CURDIR}/../rsyslog
+USE_PGSQL= yes
+CONFIGURE_ARGS+= --enable-pgsql
+RUN_DEPENDS= rsyslog>=0:${PORTSDIR}/sysutils/rsyslog
+PLIST_FILES= lib/rsyslog/ompgsql.so
+PLIST_DIRS= lib/rsyslog
+PLIST= ""
+
+do-install:
+ @${INSTALL} -d ${PREFIX}/lib/rsyslog/
+ @${INSTALL_PROGRAM} ${WRKSRC}/plugins/ompgsql/.libs/ompgsql.so \
+ ${PREFIX}/lib/rsyslog/
+
+.include "${MASTERDIR}/Makefile"
diff --git a/sysutils/rsyslog3/Makefile b/sysutils/rsyslog3/Makefile
index 75f7bbde16a5..f59fc70a4538 100644
--- a/sysutils/rsyslog3/Makefile
+++ b/sysutils/rsyslog3/Makefile
@@ -11,20 +11,22 @@ CATEGORIES= sysutils
MASTER_SITES= CENKES # http://download.rsyslog.com/rsyslog/
MAINTAINER= infofarmer@FreeBSD.org
-COMMENT= Enhanced syslog daemon
+COMMENT?= Enhanced syslog daemon
+.ifndef PKGNAMESUFFIX
LIB_DEPENDS= logging.0:${PORTSDIR}/devel/liblogging
-
USE_RC_SUBR= ${PORTNAME}d
+SUB_FILES= pkg-message
+MAN8= rfc3195d.8 rklogd.8 rsyslogd.8
+MAN5= rsyslog.conf.5
+.endif
+
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --disable-klogd --disable-static
+CONFIGURE_ARGS+=--disable-klogd --disable-static
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
-SUB_FILES= pkg-message
-MAN8= rfc3195d.8 rklogd.8 rsyslogd.8
-MAN5= rsyslog.conf.5
PORT_VERBS= rfc3195d rklogd ${PORTNAME}
post-patch:
@@ -45,11 +47,13 @@ post-configure:
@${ECHO_CMD} '#define FEATURE_RFC3195 1' >> ${WRKSRC}/config.h
@${ECHO_CMD} '#define PATCHLEVEL "0"' >> ${WRKSRC}/config.h
+.ifndef PKGNAMESUFFIX
post-install:
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/doc/*html ${DOCSDIR}/
.endif
@${CAT} ${PKGMESSAGE}
+.endif
.include <bsd.port.mk>