1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00
freebsd-ports/sysutils/rsyslog3/Makefile
2011-06-05 18:43:16 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: rsyslog3
# Date created: 9 July 2007
# Whom: Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= rsyslog
COMMENT= Enhanced syslog daemon
LIB_DEPENDS= gnutls.47:${PORTSDIR}/security/gnutls
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-gnutls
.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}/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}/
.endif
@${CAT} ${PKGMESSAGE}
.include "${.CURDIR}/bsd.rsyslog.mk"
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900007
EXTRA_PATCHES= ${FILESDIR}/extra-patch-tools__omusrmsg.c
.endif
.include <bsd.port.post.mk>