summaryrefslogtreecommitdiff
path: root/net/pfinger
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2010-01-20 16:23:18 +0000
committerEd Schouten <ed@FreeBSD.org>2010-01-20 16:23:18 +0000
commit698213be7261282589886119532423d30f0888fc (patch)
tree130f981618ca4579442b3be02bcdba059e1d9527 /net/pfinger
parentJust disable wtmp logging. (diff)
Use the proper file to test for ut_* fields.
Even pfinger properly detects utmpx, it uses <utmp.h> to figure out whether the implementation supports ut_*. Regex the configure script to check for these fields in <utmpx.h>. Approved by: miwi (portmgr, implicit)
Notes
Notes: svn path=/head/; revision=248225
Diffstat (limited to 'net/pfinger')
-rw-r--r--net/pfinger/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/pfinger/Makefile b/net/pfinger/Makefile
index 56e4940f01fd..865a67301024 100644
--- a/net/pfinger/Makefile
+++ b/net/pfinger/Makefile
@@ -30,7 +30,12 @@ MAN1= finger.1 pfinger.1
MAN5= fingerconf.5
MAN8= in.fingerd.8
+.include <bsd.port.pre.mk>
+
post-patch:
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/src/configfile.c
+.if ${OSVERSION} >= 900007
+ @${REINPLACE_CMD} -e 's|<utmp.h>|<utmpx.h>|' ${WRKSRC}/configure
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>