Merge pull request #4962 from diizzyy/patch-96
[feed/packages.git] / net / horst / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=horst
11 PKG_VERSION:=5.1
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://github.com/br101/horst/archive/v$(PKG_VERSION)/
16 PKG_HASH:=74b4cb1143d93c73c3b4bbbe0c36f89a790401bde9e894e94e2a27339ca384d9
17
18 PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>
19 PKG_LICENSE:=GPL-2.0+
20 PKG_LICENSE_FILES:=LICENSE
21
22 PKG_BUILD_PARALLEL:=1
23
24 include $(INCLUDE_DIR)/package.mk
25
26 MAKE_FLAGS += DEBUG=1 LIBNL=tiny
27
28 define Package/horst
29 SECTION:=net
30 CATEGORY:=Network
31 SUBMENU:=wireless
32 DEPENDS:=+libncurses +libnl-tiny
33 MAINTAINER:=Bruno Randolf <br1@einfach.org>
34 TITLE:=Highly Optimized 802.11 Radio Scanning Tool
35 URL:=http://br1.einfach.org/tech/horst/
36 endef
37
38 define Package/horst/description
39 [horst] is a scanning and analysis tool for 802.11 wireless networks
40 and especially IBSS (ad-hoc) mode and mesh networks (OLSR).
41 endef
42
43 define Package/horst/conffiles
44 /etc/config/horst
45 endef
46
47 define Package/horst/install
48 $(INSTALL_DIR) $(1)/usr/sbin
49 $(INSTALL_BIN) $(PKG_BUILD_DIR)/horst $(1)/usr/sbin/
50 $(INSTALL_BIN) $(PKG_BUILD_DIR)/horst.sh $(1)/usr/sbin/
51 $(INSTALL_DIR) $(1)/etc/init.d
52 $(INSTALL_BIN) ./horst.init $(1)/etc/init.d/horst
53 $(INSTALL_DIR) $(1)/etc/config
54 $(INSTALL_DATA) ./horst.config $(1)/etc/config/horst
55 endef
56
57 $(eval $(call BuildPackage,horst))