2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
10 PKG_NAME:=mac-to-devinfo
14 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
16 include $(INCLUDE_DIR)/package.mk
18 define Package/mac-to-devinfo
21 TITLE:=MAC Address to Device Information
22 MAINTAINER:=Daniel Dickinson <openwrt@cshore.neomailbox.net>
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
32 define Package/smap-to-devinfo
36 DEPENDS:=+mac-to-devinfo +smap +httping
37 TITLE:=SIP Device Information from Scan
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.
46 define Package/netdiscover-to-devinfo
49 DEPENDS:=+mac-to-devinfo +netdiscover
50 TITLE:=Device Information from Scan for MAC addresses
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.
61 define Build/Configure
67 define Package/mac-to-devinfo/conffiles
68 /etc/config/mactodevinfo
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
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
91 define Package/netdiscover-to-devinfo/install
92 $(INSTALL_DIR) $(1)/usr/bin
93 $(INSTALL_BIN) ./files/netdiscover-to-devinfo $(1)/usr/bin
96 $(eval $(call BuildPackage,mac-to-devinfo))
97 $(eval $(call BuildPackage,smap-to-devinfo))
98 $(eval $(call BuildPackage,netdiscover-to-devinfo))