svn commit: r370693 - in head/net/hostapd: . files
John Marino
marino at FreeBSD.org
Sun Oct 12 10:46:36 UTC 2014
Author: marino
Date: Sun Oct 12 10:46:34 2014
New Revision: 370693
URL: https://svnweb.freebsd.org/changeset/ports/370693
QAT: https://qat.redports.org/buildarchive/r370693/
Log:
net/hostapd: Update WWW + MASTER_SITES and support DragonFly
The domain for hostapd has changed from hostap.epitest.fi to w1.fi
although the former still redirects. Update WWW and MASTER_SITES to
reflect the new name.
Regenerate the l2 packet patch so that hostapd also builds on DragonFly
(no-op for FreeBSD).
While here, rearrange makefile to remove need for <pre> and <post> and
use of $PORTNAME in $WRKSRC which would break if PORTNAME changes.
Modified:
head/net/hostapd/Makefile
head/net/hostapd/files/patch-src-l2_packet-l2_packet_freebsd.c
head/net/hostapd/pkg-descr
Modified: head/net/hostapd/Makefile
==============================================================================
--- head/net/hostapd/Makefile Sun Oct 12 09:05:54 2014 (r370692)
+++ head/net/hostapd/Makefile Sun Oct 12 10:46:34 2014 (r370693)
@@ -4,7 +4,7 @@
PORTNAME= hostapd
PORTVERSION= 2.2
CATEGORIES= net
-MASTER_SITES= http://hostap.epitest.fi/releases/
+MASTER_SITES= http://w1.fi/releases/
MAINTAINER= leres at ee.lbl.gov
COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
@@ -12,16 +12,14 @@ COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA
LICENSE= BSD3CLAUSE
USES= gmake
-BUILD_WRKSRC= ${WRKSRC}/${PORTNAME}
+BUILD_WRKSRC= ${WRKSRC}/hostapd
PLIST_FILES= sbin/hostapd sbin/hostapd_cli man/man1/hostapd_cli.1.gz \
man/man8/hostapd.8.gz
-.include <bsd.port.pre.mk>
-
-.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
-BROKEN= Does not compile on ia64, powerpc, or sparc64
-.endif
+BROKEN_ia64= does not compile
+BROKEN_powerpc= does not compile
+BROKEN_sparc64= does not compile
post-patch:
@${REINPLACE_CMD} -e 's|@$$(E) " CC " $$<|@$$(E) " $$(CC) " $$<|' \
@@ -39,4 +37,4 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd.8 \
${STAGEDIR}${MANPREFIX}/man/man8
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/net/hostapd/files/patch-src-l2_packet-l2_packet_freebsd.c
==============================================================================
--- head/net/hostapd/files/patch-src-l2_packet-l2_packet_freebsd.c Sun Oct 12 09:05:54 2014 (r370692)
+++ head/net/hostapd/files/patch-src-l2_packet-l2_packet_freebsd.c Sun Oct 12 10:46:34 2014 (r370693)
@@ -1,11 +1,14 @@
---- src/l2_packet/l2_packet_freebsd.c.orig 2011-02-05 17:11:19.000000000 -0800
-+++ src/l2_packet/l2_packet_freebsd.c 2011-02-05 17:11:35.000000000 -0800
-@@ -14,7 +14,7 @@
+--- src/l2_packet/l2_packet_freebsd.c.orig 2014-06-04 13:26:14 UTC
++++ src/l2_packet/l2_packet_freebsd.c
+@@ -8,7 +8,10 @@
*/
#include "includes.h"
-#if defined(__APPLE__) || defined(__GLIBC__)
-+#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__GLIBC__)
++#if defined(__FreeBSD__) \
++ || defined(__DragonFly__) \
++ || defined(__APPLE__) \
++ || defined(__GLIBC__)
#include <net/bpf.h>
#endif /* __APPLE__ */
#include <pcap.h>
Modified: head/net/hostapd/pkg-descr
==============================================================================
--- head/net/hostapd/pkg-descr Sun Oct 12 09:05:54 2014 (r370692)
+++ head/net/hostapd/pkg-descr Sun Oct 12 10:46:34 2014 (r370693)
@@ -10,4 +10,4 @@ To use the ports version instead of the
to /etc/rc.conf
-WWW: http://hostap.epitest.fi/hostapd/
+WWW: http://w1.fi/hostapd/
More information about the svn-ports-all
mailing list