From 855a9feb8e51e54effe92aa9a79b83fae062cbc3 Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Wed, 20 Jan 2010 21:42:15 +0000 Subject: [PATCH] Make syslog-ng build on HEAD again. The code is basically built to work with Linux utmp, which offers the same utility functions as utmpx, so it's very easy to support utmpx. Just regex the source code to add the missing x. Requested by: lme (who will now give me a beer at FOSDEM) --- sysutils/syslog-ng/Makefile | 6 ++++++ sysutils/syslog-ng1/Makefile | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/sysutils/syslog-ng/Makefile b/sysutils/syslog-ng/Makefile index acd0310ef38a..d381419935a5 100644 --- a/sysutils/syslog-ng/Makefile +++ b/sysutils/syslog-ng/Makefile @@ -43,6 +43,12 @@ BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet post-patch: @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure +.if ${OSVERSION} >= 900007 + @${REINPLACE_CMD} \ + -e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \ + ${WRKSRC}/configure ${WRKSRC}/src/afuser.c \ + ${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h +.endif post-install: .if !defined(NOPORTDOCS) diff --git a/sysutils/syslog-ng1/Makefile b/sysutils/syslog-ng1/Makefile index acd0310ef38a..d381419935a5 100644 --- a/sysutils/syslog-ng1/Makefile +++ b/sysutils/syslog-ng1/Makefile @@ -43,6 +43,12 @@ BUILD_DEPENDS+= ${LIBNET_CONFIG}:${PORTSDIR}/net/libnet post-patch: @${REINPLACE_CMD} -e 's:libnet-config:libnet11-config:g' ${WRKSRC}/configure +.if ${OSVERSION} >= 900007 + @${REINPLACE_CMD} \ + -e 's|utmp|utmpx|' -e 's|getutent|getutxent|' \ + ${WRKSRC}/configure ${WRKSRC}/src/afuser.c \ + ${WRKSRC}/src/utils.c ${WRKSRC}/src/utils.h +.endif post-install: .if !defined(NOPORTDOCS)