aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/syslog-ng1
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2010-01-21 05:42:15 +0800
committered <ed@FreeBSD.org>2010-01-21 05:42:15 +0800
commite0acfa95bf3f26d54eaaa84d9b91677923dc404d (patch)
treeda470c0ef2fc4bb7d7edc00c27303f892028eb82 /sysutils/syslog-ng1
parent64c2ac9e2a5197e1d930177975e0dc4ce71e9ba8 (diff)
downloadfreebsd-ports-gnome-e0acfa95bf3f26d54eaaa84d9b91677923dc404d.tar.gz
freebsd-ports-gnome-e0acfa95bf3f26d54eaaa84d9b91677923dc404d.tar.zst
freebsd-ports-gnome-e0acfa95bf3f26d54eaaa84d9b91677923dc404d.zip
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)
Diffstat (limited to 'sysutils/syslog-ng1')
-rw-r--r--sysutils/syslog-ng1/Makefile6
1 files changed, 6 insertions, 0 deletions
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)