Add package: wsupp-libc
This commit is contained in:
46
core/wsupp-libc.d/Makefile
Normal file
46
core/wsupp-libc.d/Makefile
Normal file
@@ -0,0 +1,46 @@
|
||||
package=wsupp-libc
|
||||
version=ba3de6001c02304fa9da7af886958bc13a3760b8
|
||||
pkgver=${version}_0
|
||||
description=wpa supplicant from minibase ported to standard libc
|
||||
homepage=https://github.com/arsv/${package}
|
||||
license=GPL-3.0 license
|
||||
|
||||
shlib-requires=libc.so
|
||||
|
||||
include ../../Makefile
|
||||
|
||||
SOURCES = \
|
||||
${version}.tar.gz
|
||||
|
||||
FILES = \
|
||||
files/Makefile \
|
||||
files/common.mk \
|
||||
files/crypto.mk \
|
||||
files/nlusctl.mk \
|
||||
files/netlink.mk
|
||||
|
||||
${version}.tar.gz:
|
||||
${DOWNLOAD} ${homepage}/archive/$@
|
||||
${SHA256} "260d50874378509a0a67245f3765ffbfe515c8a2b61fe3171104aa887c62d71c"
|
||||
|
||||
prepare: ${SOURCES}
|
||||
tar -zxf ${version}.tar.gz
|
||||
mv ${package}-${version} build
|
||||
mv files/Makefile build
|
||||
mv files/common.mk build/common/Makefile
|
||||
mv files/crypto.mk build/crypto/Makefile
|
||||
mv files/nlusctl.mk build/nlusctl/Makefile
|
||||
mv files/netlink.mk build/netlink/Makefile
|
||||
|
||||
sed "s/\"dhcp/\"\/bin\/sdhcp/g" build/wsupp_ifmon.c > _
|
||||
mv _ build/wsupp_ifmon.c
|
||||
|
||||
sed "s/ctrl\///" build/control.h > _
|
||||
mv _ build/control.h
|
||||
|
||||
|
||||
root:
|
||||
${MAKE}
|
||||
install -Dm 755 wifi "${root}/usr/bin/wifi"
|
||||
install -Dm 755 wsupp "${root}/usr/bin/wsupp"
|
||||
|
||||
38
core/wsupp-libc.d/files/Makefile
Normal file
38
core/wsupp-libc.d/files/Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
all: libs wsupp wifi
|
||||
|
||||
libs: common.a crypto.a nlusctl.a netlink.a
|
||||
|
||||
WSUPP_OBJ= \
|
||||
wsupp.o wsupp_netlink.o wsupp_eapol.o wsupp_crypto.o wsupp_cntrl.o \
|
||||
wsupp_slots.o wsupp_sta_ies.o wsupp_config.o wsupp_apsel.o \
|
||||
wsupp_rfkill.o wsupp_ifmon.o \
|
||||
common.a crypto.a nlusctl.a netlink.a
|
||||
|
||||
WIFI_OBJ= \
|
||||
wifi.o wifi_dump.o wifi_pass.o wifi_wire.o \
|
||||
common.a crypto.a nlusctl.a
|
||||
|
||||
wsupp: $(WSUPP_OBJ)
|
||||
$(CC) $(LDFLAGS) -o $@ $(WSUPP_OBJ)
|
||||
|
||||
wifi: $(WIFI_OBJ)
|
||||
$(CC) $(LDFLAGS) -o $@ $(WIFI_OBJ)
|
||||
|
||||
common.a:
|
||||
$(MAKE) -C common
|
||||
$(AR) cr $@ common/*.o
|
||||
|
||||
crypto.a:
|
||||
$(MAKE) -C crypto
|
||||
$(AR) cr $@ crypto/*.o
|
||||
|
||||
nlusctl.a:
|
||||
$(MAKE) -C nlusctl
|
||||
$(AR) cr $@ nlusctl/*.o
|
||||
|
||||
netlink.a:
|
||||
$(MAKE) -C netlink
|
||||
$(AR) cr $@ netlink/*.o
|
||||
|
||||
clean:
|
||||
rm -f *.a *.o */*.o
|
||||
10
core/wsupp-libc.d/files/common.mk
Normal file
10
core/wsupp-libc.d/files/common.mk
Normal file
@@ -0,0 +1,10 @@
|
||||
OBJ = \
|
||||
fail.o \
|
||||
memzero.o \
|
||||
nonzero.o \
|
||||
writeall.o
|
||||
|
||||
all: $(OBJ)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
13
core/wsupp-libc.d/files/crypto.mk
Normal file
13
core/wsupp-libc.d/files/crypto.mk
Normal file
@@ -0,0 +1,13 @@
|
||||
OBJ = \
|
||||
aes128.o \
|
||||
aes128_unwrap.o \
|
||||
aes128_wrap.o \
|
||||
pbkdf2_sha1.o \
|
||||
sha1.o \
|
||||
sha1_hash.o \
|
||||
sha1_hmac.o
|
||||
|
||||
all: $(OBJ)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
23
core/wsupp-libc.d/files/netlink.mk
Normal file
23
core/wsupp-libc.d/files/netlink.mk
Normal file
@@ -0,0 +1,23 @@
|
||||
OBJ = \
|
||||
attr_bin.o \
|
||||
attr_buf.o \
|
||||
attr_gen.o \
|
||||
attr_nst.o \
|
||||
attr_str.o \
|
||||
attr_sub.o \
|
||||
base_err.o \
|
||||
base_gen.o \
|
||||
ctx.o \
|
||||
ctx_cmd.o \
|
||||
ctx_gen.o \
|
||||
ctx_grp.o \
|
||||
genl_fam.o \
|
||||
genl_grp.o \
|
||||
pack.o \
|
||||
pack_str.o \
|
||||
pack_sub.o
|
||||
|
||||
all: $(OBJ)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
12
core/wsupp-libc.d/files/nlusctl.mk
Normal file
12
core/wsupp-libc.d/files/nlusctl.mk
Normal file
@@ -0,0 +1,12 @@
|
||||
OBJ= \
|
||||
get.o \
|
||||
get_base.o \
|
||||
get_nest.o \
|
||||
put.o \
|
||||
recv.o \
|
||||
recv_msg.o
|
||||
|
||||
all: $(OBJ)
|
||||
|
||||
clean:
|
||||
rm -f *.o
|
||||
Reference in New Issue
Block a user