libradiotap: add radiotap parsing library 9744/head
authorNick Hainke <vincent@systemli.org>
Thu, 15 Aug 2019 16:09:12 +0000 (18:09 +0200)
committerNick Hainke <vincent@systemli.org>
Fri, 16 Aug 2019 15:49:45 +0000 (17:49 +0200)
Add library for parsing RadioTap Headers.

Signed-off-by: Nick Hainke <vincent@systemli.org>
libs/libradiotap/Makefile [new file with mode: 0644]

diff --git a/libs/libradiotap/Makefile b/libs/libradiotap/Makefile
new file mode 100644 (file)
index 0000000..050ba39
--- /dev/null
@@ -0,0 +1,50 @@
+#
+# Copyright (C) 2016 Bruno Randolf (br1@einfach.org)
+#               2019 Nick Hainke (vincent@systemli.org)
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=libradiotap
+PKG_VERSION:=2019-04-15
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/radiotap/radiotap-library.git
+PKG_SOURCE_VERSION:=1ca6b4f0d7225971ebcadf575c8f9e00ee55e840
+PKG_MIRROR_HASH:=59d2350d569c4027ca1b23ebbe3519852e194184c1aaa04308712235f387e422
+
+PKG_MAINTAINER:=Nick Hainke <vincent@systemli.org>
+PKG_LICENSE:=ISC
+PKG_LICENSE_FILES:=COPYING
+
+PKG_BUILD_PARALLEL:=1
+
+include $(INCLUDE_DIR)/package.mk
+include $(INCLUDE_DIR)/cmake.mk
+
+define Package/libradiotap
+       SECTION:=libs
+       CATEGORY:=Libraries
+       TITLE:=Radiotap Parser Library
+       URL:=https://www.radiotap.org/
+endef
+
+define Package/libradiotap/description
+       Library that supplies additional information about frames from the driver to userspace applications.
+endef
+
+define Build/InstallDev
+       $(INSTALL_DIR) $(1)/usr/include
+       $(CP) $(PKG_INSTALL_DIR)/usr/include/radiotap* $(1)/usr/include/
+
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiotap.so* $(1)/usr/lib/
+endef
+
+define Package/libradiotap/install
+       $(INSTALL_DIR) $(1)/usr/lib
+       $(CP) $(PKG_INSTALL_DIR)/usr/lib/libradiotap.so* $(1)/usr/lib/
+endef
+
+$(eval $(call BuildPackage,libradiotap))