[arch-commits] Commit in arp-scan/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Fri Nov 9 23:48:32 UTC 2018


    Date: Friday, November 9, 2018 @ 23:48:31
  Author: foutrelis
Revision: 405390

archrelease: copy trunk to community-staging-x86_64

Added:
  arp-scan/repos/community-staging-x86_64/
  arp-scan/repos/community-staging-x86_64/PKGBUILD
    (from rev 405389, arp-scan/trunk/PKGBUILD)
  arp-scan/repos/community-staging-x86_64/socket-error.patch
    (from rev 405389, arp-scan/trunk/socket-error.patch)

--------------------+
 PKGBUILD           |   33 +++++++++++++++++++++++++++++++++
 socket-error.patch |   15 +++++++++++++++
 2 files changed, 48 insertions(+)

Copied: arp-scan/repos/community-staging-x86_64/PKGBUILD (from rev 405389, arp-scan/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 23:48:31 UTC (rev 405390)
@@ -0,0 +1,33 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: xav <xav at ethertricks dot net>
+
+pkgname=arp-scan
+pkgver=1.9
+pkgrel=4
+pkgdesc="A tool that uses ARP to discover and fingerprint IP hosts on the local network"
+arch=('x86_64')
+url="https://github.com/royhills/arp-scan"
+license=('GPL')
+depends=('libpcap' 'perl-libwww')
+source=(https://github.com/royhills/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz
+        socket-error.patch)
+
+prepare() {
+	cd "$srcdir"/$pkgname-$pkgver
+	patch -p1 -i "$srcdir"/socket-error.patch
+}
+
+build() {
+	cd "$srcdir"/$pkgname-$pkgver
+	autoreconf --install
+	./configure --prefix=/usr --mandir=/usr/share/man
+	make
+}
+
+package() {
+	cd "$srcdir"/$pkgname-$pkgver
+	make DESTDIR="${pkgdir}" install
+}
+
+sha256sums=('b2a446a170e4a2feeb825cd08db48a147f8dffae702077f33e456c4200e7afb0'
+            'bcf605b29dac8d90ecda92558b676521ad764e048250602f7a61fd0c56fd053b')

Copied: arp-scan/repos/community-staging-x86_64/socket-error.patch (from rev 405389, arp-scan/trunk/socket-error.patch)
===================================================================
--- community-staging-x86_64/socket-error.patch	                        (rev 0)
+++ community-staging-x86_64/socket-error.patch	2018-11-09 23:48:31 UTC (rev 405390)
@@ -0,0 +1,15 @@
+diff --git a/link-packet-socket.c b/link-packet-socket.c
+index d25463b..de1eefc 100644
+--- a/link-packet-socket.c
++++ b/link-packet-socket.c
+@@ -68,8 +68,8 @@ link_open(const char *device) {
+    handle = Malloc(sizeof(*handle));
+    memset(handle, '\0', sizeof(*handle));
+    if ((handle->fd = socket(PF_PACKET, SOCK_RAW, 0)) < 0) {
+-      free(handle);
+-      return NULL;
++      warn_msg("ERROR: Cannot open raw packet socket");
++      err_sys("socket");
+    }
+    strlcpy(handle->ifr.ifr_name, device, sizeof(handle->ifr.ifr_name));
+    if ((ioctl(handle->fd, SIOCGIFINDEX, &(handle->ifr))) != 0)



More information about the arch-commits mailing list