forked from JosefFederl/device-observatory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (37 loc) · 1.16 KB
/
Makefile
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
41
42
43
#
# This software is licensed under the CC0-1.0 license.
#
include $(TOPDIR)/rules.mk
# Dieser Kommentar ist wichtig
#
#
PKG_NAME:=device-observatory
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_LICENSE:=GPL-3.0+
include $(INCLUDE_DIR)/package.mk
define Package/device-observatory
SECTION:=utils
CATEGORY:=Utilities
TITLE:=device-observatory
MAINTAINER:=Moritz Warning <moritzwarning@web.de>
DEPENDS:=+libmicrohttpd-no-ssl
endef
define Package/device-observatory/description
The Device Observatory shows information about the devices connected to the WLAN to height security awareness.
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) ./src/* $(PKG_BUILD_DIR)/
endef
define Package/device-observatory/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/device-observatory $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/macdb
$(INSTALL_DATA) ./files/macdb.txt $(1)/usr/share/macdb/db.txt
$(INSTALL_DIR) $(1)/www
$(INSTALL_DATA) ./files/index.html $(1)/www/index.html
$(INSTALL_DIR) $(1)/etc/uci-defaults
$(INSTALL_BIN) files/device-observatory.postinst $(1)/etc/uci-defaults/99_device-observatory
endef
$(eval $(call BuildPackage,device-observatory))