This port was retired at version 0.3.8 because wpa_supplicant is part of FreeBSD base. However, the last few releases have had a period of only a few months, so the base is always going to be behind. DragonFly is also affected, so I'm bringing the port back at the latest version. It features the same patches as FreeBSD including the conversion to use libutil's pidfile routines. There are some additional patches for DragonFly support and to fix some bugs from the 9 Oct 2014 release. The WPA Supplicant build system has been converted to ports options, and there are dozens of them. I've set the defaults to match the configuration in base and verified that it builds with all options selected at once.
22 lines
710 B
C
22 lines
710 B
C
--- src/wps/wps_upnp.c.orig 2014-10-09 14:41:31 UTC
|
|
+++ src/wps/wps_upnp.c
|
|
@@ -829,7 +829,8 @@ fail:
|
|
}
|
|
|
|
|
|
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
|
+ || defined(__DragonFly__)
|
|
#include <sys/sysctl.h>
|
|
#include <net/route.h>
|
|
#include <net/if_dl.h>
|
|
@@ -916,7 +917,8 @@ int get_netif_info(const char *net_if, u
|
|
goto fail;
|
|
}
|
|
os_memcpy(mac, req.ifr_addr.sa_data, 6);
|
|
-#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
|
|
+#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) \
|
|
+ || defined(__DragonFly__)
|
|
if (eth_get(net_if, mac) < 0) {
|
|
wpa_printf(MSG_ERROR, "WPS UPnP: Failed to get MAC address");
|
|
goto fail;
|