pkgsrc/sysutils/rsyslog/Makefile
fhajny efe7ccf9b6 Update sysutils/rsyslog* to 8.28.0
- omfwd: add parameter "tcp_frameDelimiter"
- omkafka: large refactor of kafka subsystem
- imfile: improved handling of atomically renamed file (w/ wildcards)
- imfile: add capability to truncate oversize messages or split into
  multiple
- mmdblookup
  * upgraded from "contrib" to "fully supported" state
  * refactored and simplified code
  * added ability to specify custom names for extracted fields
  * bugfix: fixed multiple memory leaks
- imptcp: add new parameter "flowControl"
- imrelp: add "maxDataSize" config parameter
- multiple modules: gtls: improve error if certificate file can't be
  opened
- omsnare: allow different tab escapes
- omelasticsearch: converted to use libfastjson instead of json-c
- imjournal: _PID fallback
- multiple modules: add better error messages when regcomp is failing
- omhiredis: fix build warnings
- imfile bugfix: files mv-ed in into directory were not handled
- omprog bugfix: execve() incorrectly called
- imfile bugfix: multiline timeout did not work if state file exists
- lmsig_ksi-ls12 bugfix: build problems on some platforms
- core bugfix: invalid object type assertion
- regression fix: local hostname was not always detected properly on
  early start (w/o network).
- bugfix: format security issues in zmq3 modules
- bugfix build system: add libksi only to those binaries that need it
- bugfix KSI ls12 components: invalid tree height calculation
- testbench/CI enhancements
2017-07-04 13:31:16 +00:00

72 lines
2.2 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2017/07/04 13:31:16 fhajny Exp $
#
BUILDLINK_DEPMETHOD.libestr= full
BUILDLINK_DEPMETHOD.liblogging= full
BUILDLINK_DEPMETHOD.libuuid= full
.include "../../sysutils/rsyslog/Makefile.common"
COMMENT= The enhanced syslogd for Unix
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
CONFIGURE_ENV+= ac_cv_header_sys_inotify_h=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
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.
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>=2.0.3
.include "../../sysutils/liblognorm/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"