forked from Lainports/freebsd-ports
d70886d063166786ded0007af8cdcbf57b7b4827. wpa_supplicant uses PF_ROUTE to return the routing table in order to determine the length of the routing table buffer. As of 81728a538d24 wpa_supplicant is started before the routing table has been populated resulting in the length of zero to be returned. This causes wpa_supplicant to loop endlessly. (The workaround is to kill and restart wpa_supplicant as by the time it is restarted the routing table is populated.) (Personally, I was not able to reproduce this unless wlan0 was a member of lagg0. However, others experienced this problem on standalone wlan0.) PR: 252844 Submitted by: shu <ankohuu _ outlook.com> Reported by: shu <ankohuu _ outlook.com> Reviewed by: cy Differential Revision: https://reviews.freebsd.org/D28249
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
# Created by: Craig Leres <leres@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= hostapd
|
|
PORTVERSION= 2.9
|
|
PORTREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= https://w1.fi/releases/
|
|
|
|
PATCH_SITES= https://w1.fi/security/2020-1/
|
|
PATCHFILES= 0001-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs-.patch:-p1 \
|
|
0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch:-p1 \
|
|
0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch:-p1
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= IEEE 802.11 AP, IEEE 802.1X/WPA/WPA2/EAP/RADIUS Authenticator
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= cpe gmake ssl
|
|
CPE_VENDOR= w1.f1
|
|
BUILD_WRKSRC= ${WRKSRC}/hostapd
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
|
|
PLIST_FILES= sbin/hostapd sbin/hostapd_cli man/man1/hostapd_cli.1.gz \
|
|
man/man8/hostapd.8.gz
|
|
.if !exists(/etc/rc.d/hostapd)
|
|
USE_RC_SUBR= hostapd
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|@$$(E) " CC " $$<|@$$(E) " $$(CC) " $$<|' \
|
|
${BUILD_WRKSRC}/Makefile
|
|
@${SED} -e 's|@PREFIX@|${PREFIX}|g' ${FILESDIR}/config \
|
|
>> ${WRKSRC}/hostapd/.config
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd ${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_PROGRAM} ${WRKSRC}/hostapd/hostapd_cli \
|
|
${STAGEDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd_cli.1 \
|
|
${STAGEDIR}${MANPREFIX}/man/man1
|
|
${INSTALL_MAN} ${WRKSRC}/hostapd/hostapd.8 \
|
|
${STAGEDIR}${MANPREFIX}/man/man8
|
|
|
|
.include <bsd.port.mk>
|