4736fb8ec61b8349700b96eb4a9c630b21509f06
[openwrt/svn-archive/archive.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 endef
23
24 define Package/mac-to-devinfo/description
25 Scripts to take a mac address (or ip if the ip is in the arp cache)
26 and translate it into device information (mostly OUI owner, from the
27 IEEE data files, but more information may be available for specific
28 devices/vendors).
29 endef
30
31 define Package/smap-to-devinfo
32 SECTION:=net
33 CATEGORY:=Network
34 DEPENDS:=mac-to-devinfo +smap +httping
35 TITLE:=SIP Device Information from Scan
36 endef
37
38 define Package/smap-to-devinfo/description
39 A script to use smap to discover all SIP devices on the networks
40 (provided ICMP and SIP are allowed to the network from the host) and
41 translate (through the ip then mac) into the device information.
42 endef
43
44 define Package/netdiscover-to-devinfo
45 SECTION:=net
46 CATEGORY:=Network
47 DEPENDS:=mac-to-devinfo +netdiscover
48 TITLE:=Device Information from Scan for MAC addresses
49 endef
50
51 define Package/netdiscover-to-devinfo/description
52 A script to use netdiscover to discover all devices on the specified
53 arp-able networks and translate into the device information.
54 endef
55
56 define Build/Prepare
57 endef
58
59 define Build/Configure
60 endef
61
62 define Build/Compile
63 endef
64
65 define Package/mac-to-devinfo/conffiles
66 /etc/config/mactodevinfo
67 endef
68
69 define Package/mac-to-devinfo/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_BIN) ./files/mac-to-devinfo $(1)/usr/bin
72 $(INSTALL_BIN) ./files/ip-to-devinfo $(1)/usr/bin
73 $(INSTALL_BIN) ./files/prep-devinfo $(1)/usr/bin
74 $(INSTALL_BIN) ./files/clean-devinfo $(1)/usr/bin
75 $(INSTALL_DIR) $(1)/usr/lib/mac-to-devinfo
76 $(INSTALL_BIN) ./files/devinfo-functions.sh $(1)/usr/lib/mac-to-devinfo
77 $(INSTALL_DIR) $(1)/usr/share/mac-to-devinfo
78 $(CP) ./files/macdevdb $(1)/usr/share/mac-to-devinfo
79 $(INSTALL_DIR) $(1)/etc/config
80 $(CP) ./files/mactodevinfo $(1)/etc/config
81 endef
82
83 define Package/smap-to-devinfo/install
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) ./files/smap-to-devinfo $(1)/usr/bin
86 $(INSTALL_BIN) ./files/netsmap-to-devinfo $(1)/usr/bin
87 endef
88
89 define Package/netdiscover-to-devinfo/install
90 $(INSTALL_DIR) $(1)/usr/bin
91 $(INSTALL_BIN) ./files/netdiscover-to-devinfo $(1)/usr/bin
92 endef
93
94 $(eval $(call BuildPackage,mac-to-devinfo))
95 $(eval $(call BuildPackage,smap-to-devinfo))
96 $(eval $(call BuildPackage,netdiscover-to-devinfo))