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
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
31 define Package
/smap-to-devinfo
34 DEPENDS
:=mac-to-devinfo
+smap
+httping
35 TITLE
:=SIP Device Information from Scan
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.
44 define Package
/netdiscover-to-devinfo
47 DEPENDS
:=mac-to-devinfo
+netdiscover
48 TITLE
:=Device Information from Scan for MAC addresses
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.
59 define Build
/Configure
65 define Package
/mac-to-devinfo
/conffiles
66 /etc
/config
/mactodevinfo
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
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
89 define Package
/netdiscover-to-devinfo
/install
90 $(INSTALL_DIR
) $(1)/usr
/bin
91 $(INSTALL_BIN
) .
/files
/netdiscover-to-devinfo
$(1)/usr
/bin
94 $(eval
$(call BuildPackage
,mac-to-devinfo
))
95 $(eval
$(call BuildPackage
,smap-to-devinfo
))
96 $(eval
$(call BuildPackage
,netdiscover-to-devinfo
))