# Created by: Cristiano Rolim Pereira # $FreeBSD$ PORTNAME= rsyslog PORTVERSION= 5.10.0 CATEGORIES= sysutils MASTER_SITES= http://www.rsyslog.com/files/download/rsyslog/ .ifdef MNAME PKGNAMESUFFIX?= -${MNAME} .endif MAINTAINER= brd@FreeBSD.org COMMENT?= Syslogd supporting SQL, TCP and TLS DEPRECATED= Use sysutils/rsyslog6 EXPIRATION_DATE=2013-02-28 .ifdef MNAME RUN_DEPENDS= rsyslog>=${PORTVERSION}:${PORTSDIR}/sysutils/rsyslog5 PLIST= ${.CURDIR}/pkg-plist LATEST_LINK= rsyslog5-${MNAME} .else LATEST_LINK= rsyslog5 .endif PORTSCOUT= limit:^5.6 .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= rsyslog-[!5].[!5].[0-9]* CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib USE_LDCONFIG= ${PREFIX}/lib/rsyslog GNU_CONFIGURE= yes USES= pkgconfig OPTIONS= DEBUG "Enable debugging" off .ifdef WITH_DEBUG CONFIGURE_ARGS+=--enable-rtinst --enable-debug .endif .include .if ${ARCH} == "i386" CPPFLAGS+=-march=i686 .endif .ifndef MNAME MAN8= rsyslogd.8 MAN5= rsyslog.conf.5 USE_RC_SUBR= ${PORTNAME}d SUB_FILES= pkg-message CONFIGURE_ARGS+=--enable-imfile --enable-mail --enable-imtemplate --enable-testbench=no post-patch: @${REINPLACE_CMD} -e 's|/usr/local/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} .endif .ifdef MNAME CONFIGURE_ARGS+= --disable-rsyslogd --disable-klog DESCR?= ${.CURDIR}/../rsyslog5/pkg-descr DISTINFO_FILE?= ${.CURDIR}/../rsyslog5/distinfo .endif .if ${OSVERSION} < 700042 USE_GCC= 4.2+ .endif .include