diff options
author | Nick Hainke <vincent@systemli.org> | 2019-08-15 18:13:08 +0200 |
---|---|---|
committer | Nick Hainke <vincent@systemli.org> | 2019-08-18 00:38:41 +0200 |
commit | fe5d7c817c3dde337c820067feb70d1440a6eee5 (patch) | |
tree | 92c0ee9551e1513bb5c5d0ff01d5f6d64a998330 /libs/libuwifi/Makefile | |
parent | 30d123f89019472d5b08e68bc83cb00f72cb91d6 (diff) |
libuwifi: add userspace wifi library
Add library to parse WiFi frames in userspace.
Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'libs/libuwifi/Makefile')
-rw-r--r-- | libs/libuwifi/Makefile | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/libs/libuwifi/Makefile b/libs/libuwifi/Makefile new file mode 100644 index 000000000..c79f84ded --- /dev/null +++ b/libs/libuwifi/Makefile @@ -0,0 +1,52 @@ +# +# Copyright (C) 2016 Bruno Randolf (br1@einfach.org) +# 2019 Nick Hainke (vincent@systemli.org) +# +# +include $(TOPDIR)/rules.mk + +PKG_NAME:=libuwifi +PKG_VERSION:=2019-05-27 +PKG_RELEASE:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/br101/libuwifi.git +PKG_SOURCE_VERSION:=bb92bc9b041a077488f2fa5a1716902c7bb23e5b +PKG_MIRROR_HASH:=c6dc795ef6c2cc87d411d3f907974f634a132c3e732db2597f96ff25a05faa05 + +PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>, Nick Hainke <vincent@systemli.org> +PKG_LICENSE:=LGPL-3.0-only +PKG_LICENSE_FILES:=COPYING + +PKG_BUILD_PARALLEL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/libuwifi + SECTION:=libs + CATEGORY:=Libraries + DEPENDS:=+libradiotap +libnl-tiny + TITLE:=Userspace Wifi Library +endef + +define Package/libuwifi/description + Library for parsing, generating and analyzing Wifi (WLAN 802.11) frames in userspace and related functions. +endef + +MAKE_FLAGS += DEBUG=0 LIBNL=tiny BUILD_RADIOTAP=0 + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/uwifi + $(CP) $(PKG_BUILD_DIR)/include/uwifi/*.h $(1)/usr/include/uwifi + $(CP) $(PKG_BUILD_DIR)/ccan $(1)/usr/include/ + + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/build/libuwifi.{a,so*} $(1)/usr/lib/ +endef + +define Package/libuwifi/install + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_BUILD_DIR)/build/libuwifi.so* $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,libuwifi)) |