# New ports collection makefile for: rsyslog # Date created: 9 July 2007 # Whom: Andrew Pantyukhin # # $FreeBSD$ # PORTNAME= rsyslog PORTVERSION= 1.19.8 CATEGORIES= sysutils MASTER_SITES= http://download.rsyslog.com/rsyslog/ CENKES MAINTAINER= infofarmer@FreeBSD.org COMMENT= Enhanced syslog daemon LIB_DEPENDS= logging.0:${PORTSDIR}/devel/liblogging USE_RC_SUBR= ${PORTNAME}d CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS= -L${LOCALBASE}/lib GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-klogd --disable-static CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" SUB_FILES= pkg-message MAN8= rfc3195d.8 rklogd.8 rsyslogd.8 MAN5= rsyslog.conf.5 PORT_VERBS= rfc3195d rklogd ${PORTNAME} post-patch: @${REINPLACE_CMD} -e 's|||' ${WRKSRC}/srUtils.c @${REINPLACE_CMD} -e '/^rfc3195d_LDADD =/s|$$| -llogging|;s|-ldl||'\ ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/lib/rsyslog/|${PREFIX}/lib/rsyslog/|'\ ${WRKSRC}/Makefile.in ${WRKSRC}/syslogd.c @${REINPLACE_CMD} -e 's|TTY_NAME_MAX|9|' ${WRKSRC}/syslogd.c @${GREP} -rl '/etc/rsyslog.conf' ${WRKSRC}|${XARGS} ${REINPLACE_CMD} -e\ 's|/etc/rsyslog.conf|${PREFIX}/etc/rsyslog.conf|' @${ECHO_CMD} '#include ' >> ${WRKSRC}/net.h @${ECHO_CMD} '#include ' >> ${WRKSRC}/omusrmsg.h @${FIND} ${WRKSRC} -name '*.bak' -delete post-configure: @${ECHO_CMD} '#define FEATURE_RFC3195 1' >> ${WRKSRC}/config.h @${ECHO_CMD} '#define PATCHLEVEL "0"' >> ${WRKSRC}/config.h post-install: .ifndef NOPORTDOCS @${INSTALL} -d ${DOCSDIR}/ @${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}/ .endif @${CAT} ${PKGMESSAGE} .include