If we need to make an exception we can do it and properly document the reason but by default we should just use the default login class. rc.d uses daemon or the login class provided in login.conf.d so this has no impact there. discussed with sthen@, tb@ and robert@ praying that my grep/sed skills did not break anything and still believing in portbump :-)
87 lines
2.6 KiB
Makefile
87 lines
2.6 KiB
Makefile
COMMENT-main = syslog daemon supporting databases, TCP, SSL, RELP
|
|
COMMENT-mysql = MySQL plugin for rsyslog
|
|
COMMENT-normalize = liblognorm plugin for rsyslog
|
|
COMMENT-pgsql = PostgreSQL plugin for rsyslog
|
|
COMMENT-elasticsearch = Elasticsearch plugin for rsyslog
|
|
|
|
MULTI_PACKAGES = -main -mysql -normalize -pgsql -elasticsearch
|
|
|
|
V = 8.2208.0
|
|
DISTNAME = rsyslog-$V
|
|
PKGNAME-main = rsyslog-$V
|
|
PKGNAME-mysql = rsyslog-mysql-$V
|
|
PKGNAME-normalize = rsyslog-normalize-$V
|
|
PKGNAME-pgsql = rsyslog-pgsql-$V
|
|
PKGNAME-elasticsearch = rsyslog-elasticsearch-$V
|
|
CATEGORIES = sysutils
|
|
REVISION-elasticsearch =0
|
|
REVISION-main = 0
|
|
REVISION-mysql = 0
|
|
REVISION-normalize = 0
|
|
REVISION-pgsql = 0
|
|
|
|
HOMEPAGE = https://www.rsyslog.com/
|
|
|
|
MAINTAINER = Remi Locherer <remi@openbsd.org>
|
|
|
|
# GPLv3+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
WANTLIB-main += c crypto curl estr fastjson gcrypt gmp gnutls
|
|
WANTLIB-main += gpg-error hogweed iconv idn2 intl m nettle nghttp2
|
|
WANTLIB-main += p11-kit pthread relp ssl tasn1 unistring uuid z
|
|
WANTLIB-main += brotlidec brotlienc execinfo zstd
|
|
|
|
WANTLIB-mysql += crypto m mariadb pthread ssl z
|
|
|
|
WANTLIB-normalize += estr fastjson lognorm pthread
|
|
|
|
WANTLIB-pgsql += crypto m pq pthread ssl
|
|
|
|
WANTLIB-elasticsearch += crypto curl m nghttp2 pthread ssl z
|
|
|
|
LIB_DEPENDS-main = devel/libfastjson \
|
|
devel/libestr \
|
|
net/curl \
|
|
security/libgcrypt \
|
|
security/gnutls \
|
|
sysutils/librelp>=1.2.14
|
|
# XXX should port to using libc UUID functions
|
|
LIB_DEPENDS-main += sysutils/e2fsprogs
|
|
LIB_DEPENDS-mysql = databases/mariadb
|
|
RUN_DEPENDS-mysql = ${PKGNAME-main}:${PKGPATH},-main
|
|
LIB_DEPENDS-normalize = devel/liblognorm
|
|
RUN_DEPENDS-normalize = ${PKGNAME-main}:${PKGPATH},-main
|
|
LIB_DEPENDS-pgsql = databases/postgresql
|
|
RUN_DEPENDS-pgsql = ${PKGNAME-main}:${PKGPATH},-main
|
|
RUN_DEPENDS-elasticsearch = ${PKGNAME-main}:${PKGPATH},-main
|
|
|
|
MASTER_SITES = https://www.rsyslog.com/files/download/rsyslog/
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
LIBTOOL_FLAGS = --tag=disable-static
|
|
CONFIGURE_ARGS += --enable-pgsql \
|
|
--enable-mysql \
|
|
--enable-mail \
|
|
--enable-mmnormalize \
|
|
--enable-gnutls \
|
|
--enable-openssl \
|
|
--enable-relp \
|
|
--enable-elasticsearch \
|
|
--enable-imfile
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include"
|
|
|
|
post-install:
|
|
rm ${PREFIX}/lib/rsyslog/*.la
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/rsyslog
|
|
${SUBST_DATA} ${FILESDIR}/rsyslog.conf \
|
|
${PREFIX}/share/examples/rsyslog/rsyslog.conf
|
|
${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>
|