2 # Copyright (C) 2016 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/royhills
/arp-scan
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=204b13487158b8e46bf6dd207757a52621148fdd1d2467ebd104de17493bab25
18 PKG_MAINTAINER
:=Sergey Urushkin
<urusha.v1.0@gmail.com
>
19 PKG_LICENSE
:=GPL-3.0
-or-later
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/arp-scan
/default
32 URL
:=https
://github.com
/royhills
/arp-scan
35 define Package
/arp-scan
36 $(call Package
/arp-scan
/default
)
41 define Package
/arp-scan
/description
48 define Package
/arp-scan
/install
49 $(INSTALL_DIR
) $(1)/usr
/bin
50 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/arp-scan
$(1)/usr
/bin
/
53 define Package
/arp-scan
/postinst
56 Please
install the arp-scan-database package in order to let arp-scan
57 display additional information about vendor
/manufacturer for each
63 $(eval
$(call BuildPackage
,arp-scan
))
65 define Package
/arp-scan-database
66 $(call Package
/arp-scan
/default
)
67 TITLE
:=MAC database for ARP scanner
70 define Package
/arp-scan-database
/description
71 MAC database for ARP scanner
74 define Package
/arp-scan-database
/install
75 $(INSTALL_DIR
) $(1)/usr
/share
/arp-scan
76 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/ieee-oui.txt
$(1)/usr
/share
/arp-scan
/
77 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/mac-vendor.txt
$(1)/usr
/share
/arp-scan
/
80 define Package
/arp-scan-database
/postrm
81 $(RM
) -rf
$(1)/usr
/share
/arp-scan
84 $(eval
$(call BuildPackage
,arp-scan-database
))