ports

morpheus ports
git clone git://git.2f30.org/ports.git
Log | Files | Refs | LICENSE

commit f45cea9edd82cf9f27a2a396f294c6b364eddb4c
parent bc189656b0a1841981fbf4a354d8fe37fa798bdc
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Fri, 13 Jun 2014 12:31:18 +0200

add wpasupplicant and libnl3

thanks mb <homer@awesom.eu> !

Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>

Diffstat:
libnl3/checksums | 1+
libnl3/depsinc.mk | 10++++++++++
libnl3/libnl3.mk | 11+++++++++++
libnl3/mkfile | 6++++++
libnl3/v.mk | 1+
wpasupplicant/checksums | 1+
wpasupplicant/dot.config | 39+++++++++++++++++++++++++++++++++++++++
wpasupplicant/mkfile | 6++++++
wpasupplicant/v.mk | 1+
wpasupplicant/wpasupplicant.mk | 22++++++++++++++++++++++
10 files changed, 98 insertions(+), 0 deletions(-)

diff --git a/libnl3/checksums b/libnl3/checksums @@ -0,0 +1 @@ +d42c131d0be3bddfd65b9353f7193d355a0b5a7f0c32ee3db67ceeb9da2b04030f2dbc0d51f7f7cddbcc15fcc596b380e0c846dbe1c52212e50d06b7ee12fb10 libnl-3.2.24.tar.gz diff --git a/libnl3/depsinc.mk b/libnl3/depsinc.mk @@ -0,0 +1,10 @@ +<$libnl3_DEPDIR/v.mk + +libnl3_libdir = $libnl3_DEPDIR/libnl-$v/lib/.libs/ +libnl3_includedir = $libnl3_DEPDIR/libnl-$v/include + +libnl3_cflags = -I${libnl3_includedir} +libnl3_ldflags = -L${libnl3_libdir} + +DEPS_CFLAGS = $DEPS_CFLAGS ${libnl3_cflags} +DEPS_LDFLAGS = $DEPS_LDFLAGS ${libnl3_ldflags} diff --git a/libnl3/libnl3.mk b/libnl3/libnl3.mk @@ -0,0 +1,11 @@ +TARG = libnl3 + +<$mkbuild/mk.common + +libnl3:QV: + ./configure \ + --prefix="$PREFIX" \ + --mandir="$ROOT/share/man" \ + --enable-shared=no \ + --enable-static=yes + make -j$nprocs diff --git a/libnl3/mkfile b/libnl3/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = libnl-$v +url = http://www.infradead.org/~tgr/libnl/files/libnl-$v.tar.gz +mkfile = ../libnl3.mk diff --git a/libnl3/v.mk b/libnl3/v.mk @@ -0,0 +1 @@ +v = 3.2.24 diff --git a/wpasupplicant/checksums b/wpasupplicant/checksums @@ -0,0 +1 @@ +34dd3eb2c7c65baadbd8108cfb879be5b68e70d925fe65cda566bcfb9bcc31b3e2c521ee719d056d2b4f7fd17a8d387ee1217cb4ebbbaf384962bbcbc27ea57a wpa_supplicant-2.2.tar.gz diff --git a/wpasupplicant/dot.config b/wpasupplicant/dot.config @@ -0,0 +1,39 @@ +# Fetched from: +# http://mirrors.slackware.com/slackware/slackware-current/source/n/wpa_supplicant/config/dot.config + +CONFIG_AP=y +CONFIG_BACKEND=file +CONFIG_BGSCAN_SIMPLE=y +CONFIG_CTRL_IFACE=y +# CONFIG_CTRL_IFACE_DBUS=y +# CONFIG_CTRL_IFACE_DBUS_INTRO=y +# CONFIG_CTRL_IFACE_DBUS_NEW=y +CONFIG_DEBUG_FILE=y +CONFIG_DRIVER_NL80211=y +CONFIG_DRIVER_WEXT=y +CONFIG_DRIVER_WIRED=y +CONFIG_EAP_AKA=y +CONFIG_EAP_FAST=y +CONFIG_EAP_GPSK=y +CONFIG_EAP_GPSK_SHA256=y +CONFIG_EAP_GTC=y +CONFIG_EAP_IKEV2=y +CONFIG_EAP_LEAP=y +CONFIG_EAP_MD5=y +CONFIG_EAP_MSCHAPV2=y +CONFIG_EAP_OTP=y +CONFIG_EAP_PAX=y +CONFIG_EAP_PEAP=y +CONFIG_EAP_SAKE=y +CONFIG_EAP_TLS=y +CONFIG_EAP_TNC=y +CONFIG_EAP_TTLS=y +CONFIG_IBSS_RSN=y +CONFIG_IEEE8021X_EAPOL=y +CONFIG_LIBNL32=y +CONFIG_P2P=y +CONFIG_PEERKEY=y +CONFIG_PKCS12=y +# CONFIG_READLINE=y +CONFIG_SMARTCARD=y +CONFIG_WPS=y diff --git a/wpasupplicant/mkfile b/wpasupplicant/mkfile @@ -0,0 +1,6 @@ +<$mkbuild/mk.3rdparty + +<v.mk +src = wpa_supplicant-$v +url = http://hostap.epitest.fi/releases/wpa_supplicant-$v.tar.gz +mkfile = ../wpasupplicant.mk diff --git a/wpasupplicant/v.mk b/wpasupplicant/v.mk @@ -0,0 +1 @@ +v = 2.2 diff --git a/wpasupplicant/wpasupplicant.mk b/wpasupplicant/wpasupplicant.mk @@ -0,0 +1,22 @@ +TARG = wpasupplicant +DEPS = zlib openssl libnl3 + +<$mkbuild/mk.common + +INSTALL_BIN = wpa_supplicant/wpa_supplicant +# wpa_supplicant/wpa_cli wpa_supplicant/wpa_passphrase are also built + +INSTALL_MAN8 = wpa_supplicant/doc/docbook/wpa_supplicant.8 +# INSTALL_MAN8 = `{ ls wpa_supplicant/doc/docbook/*.8 } + +wpasupplicant:QV: + export CFLAGS="$CFLAGS $DEPS_CFLAGS" + export LDFLAGS="$LDFLAGS $DEPS_LDFLAGS" + # patch linux_wext.h (may use -D instead). + sed -i 's/typedef __/typedef /g' src/drivers/linux_wext.h + #sed -i &#39;s/typedef __/typedef /g&#39; src/drivers/linux_wext.h + cp ../dot.config wpa_supplicant/.config + # -lz at the right place. + sed -i '/^wpa_supplicant:/{N;s/$/ -lz/}' wpa_supplicant/Makefile + #sed -i &#39;/^wpa_supplicant:/{N;s/$/ -lz/}&#39; wpa_supplicant/Makefile + make -j$nprocs -C wpa_supplicant