From a4abcff431a7af2fd760367333a0408483ee0aa4 Mon Sep 17 00:00:00 2001 From: sat Date: Thu, 13 Dec 2007 17:01:01 +0000 Subject: - Add MySQL and PostgreSQL output modules for rsyslog Requested by: Jordan Ostreff --- sysutils/Makefile | 2 ++ sysutils/rsyslog-mysql/Makefile | 24 ++++++++++++++++++++++++ sysutils/rsyslog-pgsql/Makefile | 24 ++++++++++++++++++++++++ sysutils/rsyslog/Makefile | 16 ++++++++++------ sysutils/rsyslog3-mysql/Makefile | 24 ++++++++++++++++++++++++ sysutils/rsyslog3-pgsql/Makefile | 24 ++++++++++++++++++++++++ sysutils/rsyslog3/Makefile | 16 ++++++++++------ 7 files changed, 118 insertions(+), 12 deletions(-) create mode 100644 sysutils/rsyslog-mysql/Makefile create mode 100644 sysutils/rsyslog-pgsql/Makefile create mode 100644 sysutils/rsyslog3-mysql/Makefile create mode 100644 sysutils/rsyslog3-pgsql/Makefile (limited to 'sysutils') 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 +# +# $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 +# +# $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 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 +# +# $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 +# +# $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 -- cgit