arp-scan: add package
authorSergey Urushkin <[email protected]>
Tue, 1 Mar 2016 09:58:21 +0000 (12:58 +0300)
committerSergey Urushkin <[email protected]>
Tue, 1 Mar 2016 09:58:21 +0000 (12:58 +0300)
Signed-off-by: Sergey Urushkin <[email protected]>
net/arp-scan/Makefile [new file with mode: 0644]
net/arp-scan/patches/001-cross_compile.patch [new file with mode: 0644]

diff --git a/net/arp-scan/Makefile b/net/arp-scan/Makefile
new file mode 100644 (file)
index 0000000..78e8412
--- /dev/null
@@ -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 <[email protected]>
+
+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 <[email protected]>
+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 (file)
index 0000000..aa7f53e
--- /dev/null
@@ -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);;