1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-28 10:08:24 +00:00
freebsd-ports/sysutils/rsyslog5/Makefile
Philip M. Gollucci 5e651b0fb3 Rsyslog is an enhanced multi-threaded syslogd with a focus on security and
reliability.

Among others, it offers support for on-demand disk buffering, reliable syslog
over TCP, SSL, TLS and RELP, writing to databases (MySQL, PostgreSQL, Oracle,
and many more), email alerting, fully configurable output formats (including
high-precision timestamps),the ability to filter on any part of the syslog
message, on-the-wire message compression, and the ability to convert text
files to syslog.

It is a drop-in replacement for stock syslogd and able to work with the same
configuration file syntax. Its advanced features make it suitable for
enterprise-class, encryption protected syslog relay chains while at the same
time being very easy to setup for the novice user.

Version 4.x.x is still in devel stage and can show stability issues.

WWW: http://www.rsyslog.com/

PR:		ports/130014
Submitted by:	Cristiano Rolim Pereira <cristianorolim at hotmail.com>
2009-01-27 19:40:41 +00:00

51 lines
1.4 KiB
Makefile

# New ports collection makefile for: rsyslog4
# Date created: 29 December 2008
# Whom: Cristiano Rolim Pereira <cristianorolim@hotmail.com>
#
# $FreeBSD$
#
PORTNAME= rsyslog
PORTVERSION= 4.1.3
CATEGORIES= sysutils
MASTER_SITES= http://download.rsyslog.com/rsyslog/
MAINTAINER= cristianorolim@hotmail.com
COMMENT= Syslogd supporting SQL, TCP and TLS
MAN8= rsyslogd.8
MAN5= rsyslog.conf.5
CONFLICTS= rsyslog-[2-3].[0-9]*
USE_RC_SUBR= ${PORTNAME}d
SUB_FILES= pkg-message
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS+=--enable-imfile --enable-mail --enable-imtemplate
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
@${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|'
@${FIND} ${WRKSRC} -name '*.bak' -delete
post-install:
.ifndef NOPORTDOCS
@${INSTALL} -d ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/doc/*html ${DOCSDIR}/
@${INSTALL_DATA} ${WRKSRC}/doc/*jpg ${DOCSDIR}/
.endif
.ifndef NOPORTEXAMPLES
@${INSTALL} -d ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/rsyslog-example.conf ${EXAMPLESDIR}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>