1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/sysutils/rsyslog8/Makefile
Matthew Seaman 8b1a09a372 * Update to 8.11.0
- Upstream has incorporated one part of the patches to runtime/stream.c
  - regenerate patches with 'make makepatch'
* Modernize port
  - Use OPTION helpers
  - USE_AUTOTOOLS -> USES+= autoreconf
* Set INSTALL_TARGET=install-strip rather than stripping in post-install:
  - Previously optional modules wouldn't have been stripped
* Update pkg-message.in to use the now standard 'Rainier script' configuration
  file syntax (http://www.rsyslog.com/doc/rainerscript.html).
* Add new option to enable the mmnormalize module. (http://www.rsyslog.com/doc/v8-stable/configuration/modules/mmnormalize.html)
  This enables converting some not-standard log formats to RFC3164 or
  RFC5424 styles, amongst other possible transformations.
* Tweak PORTSCOUT setting

PR:		202080
Approved by:	brd (maintainer)
2015-08-04 20:29:28 +00:00

118 lines
3.4 KiB
Makefile

# $FreeBSD$
PORTNAME= rsyslog
PORTVERSION= 8.11.0
CATEGORIES= sysutils
MASTER_SITES= http://www.rsyslog.com/files/download/rsyslog/
MAINTAINER= brd@FreeBSD.org
COMMENT= Syslogd supporting SQL, TCP, and TLS
BUILD_DEPENDS= libgcrypt-config:${PORTSDIR}/security/libgcrypt \
rst2man:${PORTSDIR}/textproc/py-docutils
LIB_DEPENDS= libee.so:${PORTSDIR}/devel/libee \
libestr.so:${PORTSDIR}/devel/libestr \
libjson-c.so:${PORTSDIR}/devel/json-c \
liblogging-stdlog.so:${PORTSDIR}/devel/liblogging \
libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid
USE_LDCONFIG= yes
PORTSCOUT= limit:^8\.
PKGNAMESUFFIX= 8
OPTIONS_DEFINE= DBI DOCS GNUTLS GSSAPI MYSQL PGSQL RELP SNMP \
NORMALIZE
DBI_DESC= LibDBI output module for rsyslog
GNUTLS_DESC= GNUTLS module for rsyslog
GSSAPI_DESC= GSS API input/output module for rsyslog
MYSQL_DESC= MySQL output module for rsyslog
PGSQL_DESC= PostgreSQL output module for rsyslog
RELP_DESC= RELP input/output module for rsyslog
SNMP_DESC= SNMP trap sender for rsyslog
NORMALIZE_DESC= Message normalization module for rsyslog
USES= libtool pkgconfig autoreconf
DBI_LIB_DEPENDS= libdbi.so:${PORTSDIR}/databases/libdbi
DBI_CONFIGURE_ENABLE= libdbi
DBI_PLIST_FILES= lib/rsyslog/omlibdbi.so
GNUTLS_LIB_DEPENDS= libgnutls.so:${PORTSDIR}/security/gnutls \
libgcrypt.so:${PORTSDIR}/security/libgcrypt
GNUTLS_CONFIGURE_ENABLE=gnutls
GNUTLS_PLIST_FILES= lib/rsyslog/lmnsd_gtls.so
GSSAPI_CONFIGURE_ENABLE=gssapi-krb5
GSSAPI_PLIST_FILES= lib/rsyslog/imgssapi.so \
lib/rsyslog/lmgssutil.so \
lib/rsyslog/omgssapi.so
MYSQL_USE= MYSQL=yes
MYSQL_CONFIGURE_ENABLE= mysql
MYSQL_PLIST_FILES= lib/rsyslog/ommysql.so
PGSQL_USES= pgsql
PGSQL_CONFIGURE_ENABLE= pgsql
PGSQL_PLIST_FILES= lib/rsyslog/ompgsql.so
RELP_LIB_DEPENDS= librelp.so:${PORTSDIR}/devel/librelp
RELP_CONFIGURE_ENABLE= relp
RELP_PLIST_FILES= lib/rsyslog/imrelp.so \
lib/rsyslog/omrelp.so
SNMP_LIB_DEPENDS= libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
SNMP_CONFIGURE_ENABLE= snmp
SNMP_PLIST_FILES= lib/rsyslog/omsnmp.so
NORMALIZE_LIB_DEPENDS= liblognorm.so:${PORTSDIR}/devel/liblognorm
NORMALIZE_CONFIGURE_ENABLE= mmnormalize
NORMALIZE_PLIST_FILES= lib/rsyslog/mmnormalize.so
.include <bsd.port.options.mk>
.ifdef WITH_MYSQL_MICROSECONDS
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-mysql-microseconds
.endif
.ifdef WITH_SANE_HOSTNAME
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-sane-hostname
.endif
CONFLICTS= rsyslog6-* rsyslog-[0-9].*
CFLAGS+= -I${LOCALBASE}/include
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
.ifdef WITH_DEBUG
CONFIGURE_ARGS+=--enable-rtinst --enable-debug
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "i386"
CPPFLAGS+=-march=i686
.endif
CONFIGURE_ENV+= LIBESTR_CFLAGS="${CFLAGS}" LIBESTR_LIBS="${LDFLAGS} -lestr" LIBEE_CFLAGS="${CFLAGS}" LIBEE_LIBS="${LDFLAGS} -lee -lkvm"
CFLAGS+= ${CPPFLAGS}
USE_RC_SUBR= ${PORTNAME}d
SUB_FILES= pkg-message
CONFIGURE_ARGS+= --enable-cached-man-pages --enable-imdiag --enable-imfile --enable-impstats --enable-mail --enable-omprog --enable-omstdout --enable-omuxsock --enable-rfc3195 --disable-testbench
post-patch:
@${REINPLACE_CMD} -e 's|/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\
${WRKSRC}/tools/syslogd.c
@${GREP} -rl '/etc/rsyslog.conf' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} -e\
's|/etc/rsyslog.conf|${PREFIX}/etc/rsyslog.conf|'
@${REINPLACE_CMD} -e 's,/lib/rsyslog,${PREFIX}/lib/rsyslog,' ${WRKSRC}/tools/syslogd.c
@${FIND} ${WRKSRC} -name '*.bak' -delete
.include <bsd.port.post.mk>