pkgsrc/sysutils/rsyslog/Makefile

72 lines
2.2 KiB
Makefile
Raw Normal View History

2016-04-22 18:52:14 +02:00
# $NetBSD: Makefile,v 1.8 2016/04/22 16:52:14 jperkin Exp $
#
BUILDLINK_DEPMETHOD.libestr= full
BUILDLINK_DEPMETHOD.liblogging= full
BUILDLINK_DEPMETHOD.libuuid= full
.include "../../sysutils/rsyslog/Makefile.common"
COMMENT= The enhanced syslogd for Unix
Update sysutils/rsyslog to 8.13.0. Version 8.13.0 [v8-stable] 2015-09-22 - ZeroMQ enhancements: - Added the ability to set a static publishing topic per action as an alternative to constructing topics with templates - ZMQ_PUB socket now defaults to bind and ZMQ_SUB socket now defaults to connect - Redis enhancements: - Can now LPUSH to a Redis list in "queue" mode - Can now PUBLISH to a Redis channel in "publish" mode - build requirement for rsyslog/mmnormalize is now liblognorm 1.1.2 or above - mmnormalize: liblognorm error messages are now emitted via regular rsyslog error reporting mechanism (aka "are now logged") - add support for TCP client side keep-alives - bugfix: imtcp/TLS hangs on dropped packets - bugfix testbench: some tests using imptcp are run if module is disabled - bugfix omkafka: Fixes a bug not accepting new messages anymore. - bugfix: Parallel build issue "cannot find ../runtime/.libs/librsyslog.a: No such file or directory" (#479) fixed. - bugfix: Added missing mmpstructdata testfiles into makefile. - bugfix: Reverted FIX for issue #392 as it had unexpected side effects. - The new fix duplicates the Listener object for static files (like done for dynamic files already), resolving issue #392 and #490. - bugfix: issues in queue subsystem if syncqueuefiles was enabled - Error 14 was generated on the .qi file directory handle. As the .qi filestream does not have a directory set, fsync was called on an empty directory causing a error 14 in debug log. - When queue files existed on startup, the bSyncQueueFiles strm property was not set to 1. This is now done in the qqueueLoadPersStrmInfoFixup function. - bugfix/testbench: tcpflood tool could abort when random data was added - rscryutil: Added support to decrypt a not closed log file.
2015-10-08 14:46:07 +02:00
CONFIGURE_ARGS+= --disable-testbench \
--enable-diagtools --enable-usertools --enable-uuid \
--enable-imdiag --enable-imfile --enable-impstats \
--enable-mail --enable-mmjsonparse --enable-mmnormalize \
--enable-omstdout
PLIST_VARS+= klog solaris
.if ${OPSYS} == "SunOS"
CONFIGURE_ARGS+= --enable-imsolaris --disable-klog
# Explicitly disable epoll/inotify on illumos, provided for Linux compat only.
CONFIGURE_ENV+= ac_cv_func_epoll_create=no
CONFIGURE_ENV+= ac_cv_func_epoll_create1=no
CONFIGURE_ENV+= ac_cv_func_inotify_init=no
PLIST.solaris= yes
RSYSLOG_SYSMOD= imsolaris
.else
CONFIGURE_ARGS+= --disable-imsolaris --enable-klog
PLIST.klog= yes
RSYSLOG_SYSMOD= imklog
.endif
# needs to be able to do compare-and-swap on time_t (cmpxchg8b)
.if ${MACHINE_ARCH} == "i386"
CFLAGS+= -march=i586
.endif
2016-04-22 18:52:14 +02:00
BUILDLINK_TRANSFORM.Darwin+= rm:-luuid
BUILD_DEFS+= VARBASE RSYSLOG_PIDDIR RSYSLOG_WRKDIR
RSYSLOG_PIDDIR?= ${VARBASE}/run
RSYSLOG_WRKDIR?= ${VARBASE}/lib/rsyslog
OWN_DIRS+= ${RSYSLOG_PIDDIR} ${RSYSLOG_WRKDIR}
SUBST_CLASSES+= paths
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= platform/redhat/rsyslog.conf tools/rsyslog.conf.5
SUBST_FILES.paths+= tools/rsyslogd.8 tools/rsyslogd.c tools/syslogd.c
SUBST_VARS.paths= RSYSLOG_PIDDIR RSYSLOG_SYSMOD
SUBST_SED.paths= -e "s|/etc|${PKG_SYSCONFDIR}|g"
SUBST_MESSAGE.paths= Setting default paths and options.
2016-04-22 18:52:14 +02:00
SUBST_CLASSES.Darwin+= ldargs
SUBST_STAGE.ldargs= pre-configure
SUBST_FILES.ldargs= tools/Makefile.in
SUBST_SED.ldargs= -e '/whole-archive.*librsyslog/d'
RCD_SCRIPTS= rsyslogd
CONF_FILES+= share/examples/rsyslog/rsyslog.conf \
${PKG_SYSCONFDIR}/rsyslog.conf
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/platform/redhat/rsyslog.conf \
${DESTDIR}${EGDIR}/rsyslog.conf
BUILDLINK_API_DEPENDS.liblognorm+= liblognorm>=1.1.2
.include "../../sysutils/liblognorm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"