63e2f55ec6fc692f2507a2de8b1e1311e4404820
[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_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://github.com/br101/horst.git
17 PKG_SOURCE_PROTO:=git
18 PKG_SOURCE_VERSION:=v$(PKG_VERSION)
19 PKG_MIRROR_HASH:=22f4be94e839c58ac85ebdc2359b813fd5f68dfd71e1b0c9ed9545020d1abc7d
20
21 PKG_MAINTAINER:=Bruno Randolf <br1@einfach.org>
22 PKG_LICENSE:=GPL-2.0+
23 PKG_LICENSE_FILES:=LICENSE
24
25 PKG_BUILD_PARALLEL:=1
26
27 include $(INCLUDE_DIR)/package.mk
28
29 MAKE_FLAGS += DEBUG=1 LIBNL=tiny
30
31 define Package/horst
32 SECTION:=net
33 CATEGORY:=Network
34 SUBMENU:=wireless
35 DEPENDS:=+libncurses +libnl-tiny
36 MAINTAINER:=Bruno Randolf <br1@einfach.org>
37 TITLE:=Highly Optimized 802.11 Radio Scanning Tool
38 URL:=http://br1.einfach.org/tech/horst/
39 endef
40
41 define Package/horst/description
42 [horst] is a scanning and analysis tool for 802.11 wireless networks
43 and especially IBSS (ad-hoc) mode and mesh networks (OLSR).
44 endef
45
46 define Package/horst/conffiles
47 /etc/config/horst
48 endef
49
50 define Package/horst/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_BUILD_DIR)/horst $(1)/usr/sbin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/horst.sh $(1)/usr/sbin/
54 $(INSTALL_DIR) $(1)/etc/init.d
55 $(INSTALL_BIN) ./horst.init $(1)/etc/init.d/horst
56 $(INSTALL_DIR) $(1)/etc/config
57 $(INSTALL_DATA) ./horst.config $(1)/etc/config/horst
58 endef
59
60 $(eval $(call BuildPackage,horst))