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

Massimiliano Torromeo mtorromeo at archlinux.org
Thu Sep 17 08:38:16 UTC 2015


    Date: Thursday, September 17, 2015 @ 10:38:16
  Author: mtorromeo
Revision: 140392

archrelease: copy trunk to community-i686, community-x86_64

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

-------------------------------------+
 /PKGBUILD                           |   66 ++++++++++++++++++++++++++++++++++
 community-i686/PKGBUILD             |   26 -------------
 community-i686/socket-error.patch   |   15 +++++++
 community-x86_64/PKGBUILD           |   26 -------------
 community-x86_64/socket-error.patch |   15 +++++++
 5 files changed, 96 insertions(+), 52 deletions(-)

Deleted: community-i686/PKGBUILD
===================================================================
--- community-i686/PKGBUILD	2015-09-17 08:37:49 UTC (rev 140391)
+++ community-i686/PKGBUILD	2015-09-17 08:38:16 UTC (rev 140392)
@@ -1,26 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: xav <xav at ethertricks dot net>
-
-pkgname=arp-scan
-pkgver=1.9
-pkgrel=1
-pkgdesc="A tool that uses ARP to discover and fingerprint IP hosts on the local network"
-arch=('i686' 'x86_64')
-url="http://www.nta-monitor.com/tools/arp-scan/"
-license=('GPL')
-depends=('libpcap' 'perl-libwww')
-source=(http://www.nta-monitor.com/files/arp-scan/${pkgname}-${pkgver}.tar.gz)
-
-build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	./configure --prefix=/usr --mandir=/usr/share/man
-	make
-}
-
-package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	make DESTDIR="${pkgdir}" install
-}
-
-sha256sums=('ce908ac71c48e85dddf6dd4fe5151d13c7528b1f49717a98b2a2535bd797d892')

Copied: arp-scan/repos/community-i686/PKGBUILD (from rev 140391, arp-scan/trunk/PKGBUILD)
===================================================================
--- community-i686/PKGBUILD	                        (rev 0)
+++ community-i686/PKGBUILD	2015-09-17 08:38:16 UTC (rev 140392)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: xav <xav at ethertricks dot net>
+
+pkgname=arp-scan
+pkgver=1.9
+pkgrel=2
+pkgdesc="A tool that uses ARP to discover and fingerprint IP hosts on the local network"
+arch=('i686' 'x86_64')
+url="http://www.nta-monitor.com/tools/arp-scan/"
+license=('GPL')
+depends=('libpcap' 'perl-libwww')
+source=(http://www.nta-monitor.com/files/arp-scan/${pkgname}-${pkgver}.tar.gz
+        socket-error.patch)
+
+prepare() {
+	cd "$srcdir"/$pkgname-$pkgver
+	patch -p1 -i "$srcdir"/socket-error.patch
+}
+
+build() {
+cd "$srcdir"/$pkgname-$pkgver
+./configure --prefix=/usr --mandir=/usr/share/man
+make
+}
+
+package() {
+	cd "$srcdir"/$pkgname-$pkgver
+	make DESTDIR="${pkgdir}" install
+}
+
+sha256sums=('ce908ac71c48e85dddf6dd4fe5151d13c7528b1f49717a98b2a2535bd797d892'
+            'bcf605b29dac8d90ecda92558b676521ad764e048250602f7a61fd0c56fd053b')

Copied: arp-scan/repos/community-i686/socket-error.patch (from rev 140391, arp-scan/trunk/socket-error.patch)
===================================================================
--- community-i686/socket-error.patch	                        (rev 0)
+++ community-i686/socket-error.patch	2015-09-17 08:38:16 UTC (rev 140392)
@@ -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)

Deleted: community-x86_64/PKGBUILD
===================================================================
--- community-x86_64/PKGBUILD	2015-09-17 08:37:49 UTC (rev 140391)
+++ community-x86_64/PKGBUILD	2015-09-17 08:38:16 UTC (rev 140392)
@@ -1,26 +0,0 @@
-# $Id$
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
-# Contributor: xav <xav at ethertricks dot net>
-
-pkgname=arp-scan
-pkgver=1.9
-pkgrel=1
-pkgdesc="A tool that uses ARP to discover and fingerprint IP hosts on the local network"
-arch=('i686' 'x86_64')
-url="http://www.nta-monitor.com/tools/arp-scan/"
-license=('GPL')
-depends=('libpcap' 'perl-libwww')
-source=(http://www.nta-monitor.com/files/arp-scan/${pkgname}-${pkgver}.tar.gz)
-
-build() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	./configure --prefix=/usr --mandir=/usr/share/man
-	make
-}
-
-package() {
-	cd "${srcdir}/${pkgname}-${pkgver}"
-	make DESTDIR="${pkgdir}" install
-}
-
-sha256sums=('ce908ac71c48e85dddf6dd4fe5151d13c7528b1f49717a98b2a2535bd797d892')

Copied: arp-scan/repos/community-x86_64/PKGBUILD (from rev 140391, arp-scan/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2015-09-17 08:38:16 UTC (rev 140392)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: xav <xav at ethertricks dot net>
+
+pkgname=arp-scan
+pkgver=1.9
+pkgrel=2
+pkgdesc="A tool that uses ARP to discover and fingerprint IP hosts on the local network"
+arch=('i686' 'x86_64')
+url="http://www.nta-monitor.com/tools/arp-scan/"
+license=('GPL')
+depends=('libpcap' 'perl-libwww')
+source=(http://www.nta-monitor.com/files/arp-scan/${pkgname}-${pkgver}.tar.gz
+        socket-error.patch)
+
+prepare() {
+	cd "$srcdir"/$pkgname-$pkgver
+	patch -p1 -i "$srcdir"/socket-error.patch
+}
+
+build() {
+cd "$srcdir"/$pkgname-$pkgver
+./configure --prefix=/usr --mandir=/usr/share/man
+make
+}
+
+package() {
+	cd "$srcdir"/$pkgname-$pkgver
+	make DESTDIR="${pkgdir}" install
+}
+
+sha256sums=('ce908ac71c48e85dddf6dd4fe5151d13c7528b1f49717a98b2a2535bd797d892'
+            'bcf605b29dac8d90ecda92558b676521ad764e048250602f7a61fd0c56fd053b')

Copied: arp-scan/repos/community-x86_64/socket-error.patch (from rev 140391, arp-scan/trunk/socket-error.patch)
===================================================================
--- community-x86_64/socket-error.patch	                        (rev 0)
+++ community-x86_64/socket-error.patch	2015-09-17 08:38:16 UTC (rev 140392)
@@ -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