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
<ddickinson@vertical.com
>
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
35 DEPENDS
:=mac-to-devinfo
+smap
+httping
36 TITLE
:=SIP Device Information from Scan
39 define Package
/smap-to-devinfo
/description
40 A script to use smap to discover
all SIP devices on the networks
41 (provided ICMP and SIP are allowed to the network from the host
) and
42 translate
(through the ip then mac
) into the device information.
45 define Package
/netdiscover-to-devinfo
48 DEPENDS
:=mac-to-devinfo
+netdiscover
49 TITLE
:=Device Information from Scan for MAC addresses
52 define Package
/netdiscover-to-devinfo
/description
53 A script to use netdiscover to discover
all devices on the specified
54 arp-able networks and translate into the device information.
60 define Build
/Configure
66 define Package
/mac-to-devinfo
/conffiles
67 /etc
/config
/mactodevinfo
70 define Package
/mac-to-devinfo
/install
71 $(INSTALL_DIR
) $(1)/usr
/bin
72 $(INSTALL_BIN
) .
/files
/mac-to-devinfo
$(1)/usr
/bin
73 $(INSTALL_BIN
) .
/files
/ip-to-devinfo
$(1)/usr
/bin
74 $(INSTALL_BIN
) .
/files
/prep-devinfo
$(1)/usr
/bin
75 $(INSTALL_BIN
) .
/files
/clean-devinfo
$(1)/usr
/bin
76 $(INSTALL_DIR
) $(1)/usr
/lib
/mac-to-devinfo
77 $(INSTALL_BIN
) .
/files
/devinfo-functions.sh
$(1)/usr
/lib
/mac-to-devinfo
78 $(INSTALL_DIR
) $(1)/usr
/share
/mac-to-devinfo
79 $(CP
) .
/files
/macdevdb
$(1)/usr
/share
/mac-to-devinfo
80 $(INSTALL_DIR
) $(1)/etc
/config
81 $(CP
) .
/files
/mactodevinfo
$(1)/etc
/config
84 define Package
/smap-to-devinfo
/install
85 $(INSTALL_DIR
) $(1)/usr
/bin
86 $(INSTALL_BIN
) .
/files
/smap-to-devinfo
$(1)/usr
/bin
87 $(INSTALL_BIN
) .
/files
/netsmap-to-devinfo
$(1)/usr
/bin
90 define Package
/netdiscover-to-devinfo
/install
91 $(INSTALL_DIR
) $(1)/usr
/bin
92 $(INSTALL_BIN
) .
/files
/netdiscover-to-devinfo
$(1)/usr
/bin
95 $(eval
$(call BuildPackage
,mac-to-devinfo
))
96 $(eval
$(call BuildPackage
,smap-to-devinfo
))
97 $(eval
$(call BuildPackage
,netdiscover-to-devinfo
))