Add maintainer to openldap Makefile
[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 MAINTAINER:=Daniel Dickinson <ddickinson@vertical.com>
23 endef
24
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
29 devices/vendors).
30 endef
31
32 define Package/smap-to-devinfo
33 SECTION:=net
34 CATEGORY:=Network
35 DEPENDS:=mac-to-devinfo +smap +httping
36 TITLE:=SIP Device Information from Scan
37 endef
38
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.
43 endef
44
45 define 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
50 endef
51
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.
55 endef
56
57 define Build/Prepare
58 endef
59
60 define Build/Configure
61 endef
62
63 define Build/Compile
64 endef
65
66 define Package/mac-to-devinfo/conffiles
67 /etc/config/mactodevinfo
68 endef
69
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
82 endef
83
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
88 endef
89
90 define Package/netdiscover-to-devinfo/install
91 $(INSTALL_DIR) $(1)/usr/bin
92 $(INSTALL_BIN) ./files/netdiscover-to-devinfo $(1)/usr/bin
93 endef
94
95 $(eval $(call BuildPackage,mac-to-devinfo))
96 $(eval $(call BuildPackage,smap-to-devinfo))
97 $(eval $(call BuildPackage,netdiscover-to-devinfo))