aboutsummaryrefslogtreecommitdiff
path: root/utils/device-observatory/Makefile
blob: e08457fc15c0c112f8d767bad5dc85f348547c78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
include $(TOPDIR)/rules.mk

PKG_NAME:=device-observatory
PKG_VERSION:=1.2.0
PKG_RELEASE:=7

PKG_SOURCE_URL:=https://codeload.github.com/mwarning/device-observatory/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=83b3f362f154a427abbd3af31b3c2dda9983cdc15f6b833d804727ef0fbdc72e

PKG_LICENSE:=GPL-3.0-or-later

include $(INCLUDE_DIR)/package.mk

define Package/device-observatory
	SECTION:=utils
	CATEGORY:=Utilities
	TITLE:=device-observatory
	MAINTAINER:=Moritz Warning <moritzwarning@web.de>
	URL:=https://github.com/mwarning/device-observatory/
	DEPENDS:=+iw +libpcap +libmicrohttpd
endef

define Package/device-observatory/conffiles
/etc/config/device-observatory
endef

define Package/device-observatory/description
	Show information about connected devices and connections to increase security awareness.
endef

define Package/device-observatory/install
	$(CP) files/* $(1)
	$(INSTALL_DIR) $(1)/usr/bin
	$(INSTALL_BIN) $(PKG_BUILD_DIR)/device-observatory $(1)/usr/bin/
	$(INSTALL_DIR) $(1)/usr/share/device-observatory
	$(INSTALL_DATA) $(PKG_BUILD_DIR)/misc/macdb.txt $(1)/usr/share/device-observatory/macdb.txt
endef

$(eval $(call BuildPackage,device-observatory))