Branch oldpackages for 14.07
[14.07/packages.git] / net / mac-to-devinfo / Makefile
1 #
2 # Copyright (C) 2009 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:=mac-to-devinfo
11 PKG_VERSION:=1.0.0
12 PKG_RELEASE:=2
13
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/mac-to-devinfo
19   SECTION:=net
20   CATEGORY:=Network
21   TITLE:=MAC Address to Device Information
22   MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
23 endef
24
25 define Package/mac-to-devinfo/description
26   Scripts to take a mac address (or ip if the ip is in the arp cache)
27   and translate it into device information (mostly OUI owner, from the
28   IEEE data files, but more information may be available for specific
29   devices/vendors).
30 endef
31
32 define Package/smap-to-devinfo
33   SECTION:=net
34   CATEGORY:=Network
35   SUBMENU:=Telephony
36   DEPENDS:=+mac-to-devinfo +smap +httping
37   TITLE:=SIP Device Information from Scan
38 endef
39
40 define Package/smap-to-devinfo/description
41   A script to use smap to discover all SIP devices on the networks
42   (provided ICMP and SIP are allowed to the network from the host) and
43   translate (through the ip then mac) into the device information.
44 endef
45
46 define Package/netdiscover-to-devinfo
47   SECTION:=net
48   CATEGORY:=Network
49   DEPENDS:=+mac-to-devinfo +netdiscover
50   TITLE:=Device Information from Scan for MAC addresses
51 endef
52
53 define Package/netdiscover-to-devinfo/description
54   A script to use netdiscover to discover all devices on the specified
55   arp-able networks and translate into the device information.
56 endef
57
58 define Build/Prepare
59 endef
60
61 define Build/Configure
62 endef
63
64 define Build/Compile
65 endef
66
67 define Package/mac-to-devinfo/conffiles
68 /etc/config/mactodevinfo
69 endef
70
71 define Package/mac-to-devinfo/install
72         $(INSTALL_DIR) $(1)/usr/bin
73         $(INSTALL_BIN) ./files/mac-to-devinfo $(1)/usr/bin
74         $(INSTALL_BIN) ./files/ip-to-devinfo $(1)/usr/bin
75         $(INSTALL_BIN) ./files/prep-devinfo $(1)/usr/bin
76         $(INSTALL_BIN) ./files/clean-devinfo $(1)/usr/bin
77         $(INSTALL_DIR) $(1)/usr/lib/mac-to-devinfo
78         $(INSTALL_BIN) ./files/devinfo-functions.sh $(1)/usr/lib/mac-to-devinfo
79         $(INSTALL_DIR) $(1)/usr/share/mac-to-devinfo
80         $(CP) ./files/macdevdb $(1)/usr/share/mac-to-devinfo
81         $(INSTALL_DIR) $(1)/etc/config
82         $(CP) ./files/mactodevinfo $(1)/etc/config
83 endef
84
85 define Package/smap-to-devinfo/install
86         $(INSTALL_DIR) $(1)/usr/bin
87         $(INSTALL_BIN) ./files/smap-to-devinfo $(1)/usr/bin
88         $(INSTALL_BIN) ./files/netsmap-to-devinfo $(1)/usr/bin
89 endef
90
91 define Package/netdiscover-to-devinfo/install
92         $(INSTALL_DIR) $(1)/usr/bin
93         $(INSTALL_BIN) ./files/netdiscover-to-devinfo $(1)/usr/bin
94 endef
95
96 $(eval $(call BuildPackage,mac-to-devinfo))
97 $(eval $(call BuildPackage,smap-to-devinfo))
98 $(eval $(call BuildPackage,netdiscover-to-devinfo))