# New ports collection makefile for: rsyslog3 # Date created: 9 July 2007 # Whom: Andrew Pantyukhin # # $FreeBSD$ # PORTNAME= rsyslog PORTREVISION= 1 COMMENT= Enhanced syslog daemon USE_RC_SUBR= ${PORTNAME}d SUB_FILES= pkg-message MAN8= rsyslogd.8 MAN5= rsyslog.conf.5 CONFIGURE_ARGS+=--enable-klog --disable-static --enable-mail \ --enable-imfile --enable-imtemplate --enable-openssl .ifdef WITH_DEBUG CONFIGURE_ARGS+=--enable-rtinst --enable-debug .endif post-patch: @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\ ${WRKSRC}/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}/ .endif @${CAT} ${PKGMESSAGE} .include "${.CURDIR}/bsd.rsyslog.mk" .include