aboutsummaryrefslogtreecommitdiff
path: root/net/freeradius
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-04-03 00:12:43 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-04-03 00:12:43 +0000
commitd14e3ec275562dce23257c6f7e3cd208dbae8026 (patch)
tree7976f2edf29ff887fb147986c3f512a01ab0ab1f /net/freeradius
parent358717a31dde615b0c033a8963bdda1044526d55 (diff)
downloadports-d14e3ec275562dce23257c6f7e3cd208dbae8026.tar.gz
ports-d14e3ec275562dce23257c6f7e3cd208dbae8026.zip
- Unbreak on 9.0-CURRENT by fixing utmpx.h support.
PR: ports/144937 Submitted by: Ryan Steinmetz <rpsfa@rit.edu> (maintainer) Approved by: itetcu (mentor)
Notes
Notes: svn path=/head/; revision=252091
Diffstat (limited to 'net/freeradius')
-rw-r--r--net/freeradius/Makefile4
-rw-r--r--net/freeradius/files/patch-src__include__sysutmp.h20
2 files changed, 20 insertions, 4 deletions
diff --git a/net/freeradius/Makefile b/net/freeradius/Makefile
index 910c8f92bc48..a646a12d435c 100644
--- a/net/freeradius/Makefile
+++ b/net/freeradius/Makefile
@@ -63,10 +63,6 @@ OPTIONS+= PGSQL "With PostgreSQL database support" off \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 900007
-BROKEN= fails to build with new utmpx
-.endif
-
# Default requirements for rc script
_REQUIRE= NETWORKING SERVERS
diff --git a/net/freeradius/files/patch-src__include__sysutmp.h b/net/freeradius/files/patch-src__include__sysutmp.h
new file mode 100644
index 000000000000..1589ee1d283c
--- /dev/null
+++ b/net/freeradius/files/patch-src__include__sysutmp.h
@@ -0,0 +1,20 @@
+--- ./src/include/sysutmp.h.orig 2009-12-30 10:44:35.000000000 -0500
++++ ./src/include/sysutmp.h 2010-03-06 09:32:13.075571526 -0500
+@@ -30,7 +30,7 @@
+ # define UT_NAMESIZE 32
+ # define UT_LINESIZE 32
+ # define UT_HOSTSIZE 257
+-#ifdef hpux
++#if defined(hpux) || defined(__FreeBSD__)
+ # define ut_name ut_user
+ #endif
+ #else
+@@ -43,7 +43,7 @@
+ # define UT_HOSTSIZE 64
+ #endif
+
+-#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(bsdi) || defined(__OpenBSD__) || defined(__APPLE__)
++#if (defined(__FreeBSD__) && !defined(HAVE_UTMPX_H)) || defined(__NetBSD__) || defined(bsdi) || defined(__OpenBSD__) || defined(__APPLE__)
+ # ifndef UTMP_FILE
+ # define UTMP_FILE "/var/run/utmp"
+ # endif