Browse Source

arp-scan: add package

Signed-off-by: Sergey Urushkin <urusha.v1.0@gmail.com>
Sergey Urushkin 9 years ago
parent
commit
9811743dee
2 changed files with 57 additions and 0 deletions
  1. 47
    0
      net/arp-scan/Makefile
  2. 10
    0
      net/arp-scan/patches/001-cross_compile.patch

+ 47
- 0
net/arp-scan/Makefile View File

@@ -0,0 +1,47 @@
1
+#
2
+# Copyright (C) 2016 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:=arp-scan
11
+PKG_VERSION:=1.9-40-g69b2f70
12
+PKG_RELEASE:=1
13
+PKG_LICENSE:=GPL-3.0
14
+PKG_MAINTAINER:=Sergey Urushkin <urusha.v1.0@gmail.com>
15
+
16
+PKG_SOURCE_PROTO:=git
17
+PKG_SOURCE_URL:=https://github.com/royhills/arp-scan.git
18
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
19
+PKG_SOURCE_VERSION:=69b2f70588565385f3a61d9b1f100f01747cd5e1
20
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21
+
22
+PKG_FIXUP:=autoreconf
23
+
24
+PKG_BUILD_PARALLEL:=1
25
+PKG_INSTALL:=1
26
+
27
+include $(INCLUDE_DIR)/package.mk
28
+
29
+define Package/arp-scan
30
+  SECTION:=net
31
+  CATEGORY:=Network
32
+  TITLE:=ARP scanner
33
+  DEPENDS:=+libpcap
34
+  URL:=https://github.com/royhills/arp-scan
35
+  PKG_MAINTAINER:=Sergey Urushkin <urusha.v1.0@gmail.com>
36
+endef
37
+
38
+define Package/arp-scan/description
39
+    ARP scanner
40
+endef
41
+
42
+define Package/arp-scan/install
43
+	$(INSTALL_DIR) $(1)/usr/bin
44
+	$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/arp-scan $(1)/usr/bin/
45
+endef
46
+
47
+$(eval $(call BuildPackage,arp-scan))

+ 10
- 0
net/arp-scan/patches/001-cross_compile.patch View File

@@ -0,0 +1,10 @@
1
+--- a/acinclude.m4	2016-02-19 15:21:01.000000000 +0300
2
++++ b/acinclude.m4	2016-02-19 17:18:50.480874343 +0300
3
+@@ -211,7 +211,6 @@
4
+ LONG_LONG_INT_FORMAT=''
5
+ 
6
+ case $pgac_cv_snprintf_long_long_int_format in
7
+-  cross) AC_MSG_RESULT([cannot test (not on host machine)]);;
8
+   ?*)    AC_MSG_RESULT([$pgac_cv_snprintf_long_long_int_format])
9
+          LONG_LONG_INT_FORMAT=$pgac_cv_snprintf_long_long_int_format;;
10
+   *)     AC_MSG_RESULT(none);;