From 9811743deef2ba728bd7273cdfceae811db6a767 Mon Sep 17 00:00:00 2001 From: Sergey Urushkin Date: Tue, 1 Mar 2016 12:58:21 +0300 Subject: [PATCH] arp-scan: add package Signed-off-by: Sergey Urushkin --- net/arp-scan/Makefile | 47 ++++++++++++++++++++ net/arp-scan/patches/001-cross_compile.patch | 10 +++++ 2 files changed, 57 insertions(+) create mode 100644 net/arp-scan/Makefile create mode 100644 net/arp-scan/patches/001-cross_compile.patch diff --git a/net/arp-scan/Makefile b/net/arp-scan/Makefile new file mode 100644 index 000000000..78e84125a --- /dev/null +++ b/net/arp-scan/Makefile @@ -0,0 +1,47 @@ +# +# Copyright (C) 2016 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=arp-scan +PKG_VERSION:=1.9-40-g69b2f70 +PKG_RELEASE:=1 +PKG_LICENSE:=GPL-3.0 +PKG_MAINTAINER:=Sergey Urushkin + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/royhills/arp-scan.git +PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=69b2f70588565385f3a61d9b1f100f01747cd5e1 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz + +PKG_FIXUP:=autoreconf + +PKG_BUILD_PARALLEL:=1 +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/arp-scan + SECTION:=net + CATEGORY:=Network + TITLE:=ARP scanner + DEPENDS:=+libpcap + URL:=https://github.com/royhills/arp-scan + PKG_MAINTAINER:=Sergey Urushkin +endef + +define Package/arp-scan/description + ARP scanner +endef + +define Package/arp-scan/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arp-scan $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,arp-scan)) diff --git a/net/arp-scan/patches/001-cross_compile.patch b/net/arp-scan/patches/001-cross_compile.patch new file mode 100644 index 000000000..aa7f53e29 --- /dev/null +++ b/net/arp-scan/patches/001-cross_compile.patch @@ -0,0 +1,10 @@ +--- a/acinclude.m4 2016-02-19 15:21:01.000000000 +0300 ++++ b/acinclude.m4 2016-02-19 17:18:50.480874343 +0300 +@@ -211,7 +211,6 @@ + LONG_LONG_INT_FORMAT='' + + case $pgac_cv_snprintf_long_long_int_format in +- cross) AC_MSG_RESULT([cannot test (not on host machine)]);; + ?*) AC_MSG_RESULT([$pgac_cv_snprintf_long_long_int_format]) + LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;; + *) AC_MSG_RESULT(none);;