source: packages/net/mac-to-devinfo/Makefile @ 24295

Last change on this file since 24295 was 24295, checked in by cshore, 5 years ago

[packages] Updated email address in packages I maintain

File size: 2.7 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=mac-to-devinfo
11PKG_VERSION:=1.0.0
12PKG_RELEASE:=2
13
14PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)
15
16include $(INCLUDE_DIR)/package.mk
17
18define 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>
23endef
24
25define 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).
30endef
31
32define Package/smap-to-devinfo
33  SECTION:=net
34  CATEGORY:=Network
35  DEPENDS:=mac-to-devinfo +smap +httping
36  TITLE:=SIP Device Information from Scan
37endef
38
39define 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.
43endef
44
45define Package/netdiscover-to-devinfo
46  SECTION:=net
47  CATEGORY:=Network
48  DEPENDS:=mac-to-devinfo +netdiscover
49  TITLE:=Device Information from Scan for MAC addresses
50endef
51
52define 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.
55endef
56
57define Build/Prepare
58endef
59
60define Build/Configure
61endef
62
63define Build/Compile
64endef
65
66define Package/mac-to-devinfo/conffiles
67/etc/config/mactodevinfo
68endef
69
70define 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
82endef
83
84define 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
88endef
89
90define Package/netdiscover-to-devinfo/install
91        $(INSTALL_DIR) $(1)/usr/bin
92        $(INSTALL_BIN) ./files/netdiscover-to-devinfo $(1)/usr/bin
93endef
94
95$(eval $(call BuildPackage,mac-to-devinfo))
96$(eval $(call BuildPackage,smap-to-devinfo))
97$(eval $(call BuildPackage,netdiscover-to-devinfo))
Note: See TracBrowser for help on using the repository browser.