openbsd-ports/sysutils/rsyslog/Makefile
2010-08-26 21:28:58 +00:00

65 lines
1.9 KiB
Makefile

# $OpenBSD: Makefile,v 1.2 2010/08/26 21:28:58 steven Exp $
SHARED_ONLY = Yes
COMMENT-main = syslog daemon supporting databases, TCP, SSL, RELP
COMMENT-mysql = mysql plugin for rsyslog
COMMENT-pgsql = postgresql plugin for rsyslog
MULTI_PACKAGES = -main -mysql -pgsql
V = 4.6.4
DISTNAME = rsyslog-$V
PKGNAME-main = rsyslog-$V
PKGNAME-mysql = rsyslog-mysql-$V
PKGNAME-pgsql = rsyslog-pgsql-$V
CATEGORIES = sysutils
HOMEPAGE = http://www.rsyslog.com/
# GPLv3+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB-main += c gcrypt gpg-error gnutls iconv intl pthread
WANTLIB-main += relp tasn1 z
WANTLIB-mysql += crypto m mysqlclient ssl z
WANTLIB-pgsql += crypto com_err pq ssl
LIB_DEPENDS-main = ::security/gnutls \
::sysutils/librelp
LIB_DEPENDS-mysql = :mysql-client-*:databases/mysql
RUN_DEPENDS-mysql = :${FULLPKGNAME-main}:${BASE_PKGPATH},-main
LIB_DEPENDS-pgsql = :postgresql-client-*:databases/postgresql
RUN_DEPENDS-pgsql = :${FULLPKGNAME-main}:${BASE_PKGPATH},-main
MASTER_SITES = http://www.rsyslog.com/files/download/rsyslog/ \
http://download.rsyslog.com/rsyslog/
CONFIGURE_STYLE = autoconf
AUTOCONF_VERSION = 2.63
USE_LIBTOOL = Yes
LIBTOOL_FLAGS = --tag=disable-static
CONFIGURE_ARGS += ${CONFIGURE_SHARED} \
--enable-pgsql \
--enable-mysql \
--enable-mail \
--enable-gnutls \
--enable-relp
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include \
-DSYSLOGD_PIDNAME=\\\"rsyslogd.pid\\\" \
-DCONFIGFILE=\\\"${SYSCONFDIR}/rsyslog.conf\\\""
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rsyslog
${INSTALL_DATA} ${WRKSRC}/rsyslog.conf \
${PREFIX}/share/examples/rsyslog
${INSTALL_DATA} ${WRKSRC}/plugins/ommysql/createDB.sql \
${PREFIX}/share/examples/rsyslog/createDB_mysql.sql
${INSTALL_DATA} ${WRKSRC}/plugins/ompgsql/createDB.sql \
${PREFIX}/share/examples/rsyslog/createDB_pgsql.sql
.include <bsd.port.mk>