SHA256
1
0
forked from pool/arping2
Jan Engelhardt 2014-08-11 01:16:48 +00:00 committed by Git OBS Bridge
parent 79820b1506
commit 2391ae5000
5 changed files with 42 additions and 10 deletions

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fee6b118b9fb733c20dd5928eb020312fa5ba50a9da59da83ba3dd4e3220cec5
size 117132

3
arping-2.14.tar.gz Normal file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6cb8f29b3581c2a6c927ae2c4315a6b2d8b3ce688d52aee728e6857148be6f20
size 147908

24
arping-setgroups.diff Normal file

@ -0,0 +1,24 @@
From f6dc7cca6246cc61571a652fae0ea73171fc8d7b Mon Sep 17 00:00:00 2001
From: Jan Engelhardt <jengelh@inai.de>
Date: Mon, 11 Aug 2014 03:14:41 +0200
Subject: [PATCH] src: avoid relying on implicitly-defined setgroups
---
src/arping.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/arping.c b/src/arping.c
index d0f501d..ee9ccb4 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -87,6 +87,7 @@
#if HAVE_PWD_H
#include <pwd.h>
+#include <grp.h>
#endif
#if HAVE_SYS_CAPABILITY_H
--
2.0.0

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon Aug 11 01:10:59 UTC 2014 - jengelh@inai.de
- Update to new upstream release 2.14
* Added the -P option to send ARP replies instead of ARP requests
* Added the -C option to immediately exit after receiving n replies
* Added the -W option
* Enable -D to work in ping MAC mode
-------------------------------------------------------------------
Sun Dec 30 05:42:51 UTC 2012 - jengelh@inai.de

@ -1,7 +1,7 @@
#
# spec file for package arping2
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,25 +17,23 @@
Name: arping2
Version: 2.13
Version: 2.14
Release: 0
Summary: Layer-2 Ethernet pinger
License: GPL-2.0+
Group: Productivity/Networking/Diagnostic
Url: http://www.habets.pp.se/synscan/programs.php?prog=arping
#Freecode-URL: http://freecode.com/projects/arping/
#Git-Clone: git://github.com/ThomasHabets/arping
Source: arping-%version.tar.xz
Source: http://www.habets.pp.se/synscan/files/arping-2.14.tar.gz
Patch1: arping-setgroups.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1130
BuildRequires: libnet
BuildRequires: libpcap-devel
%else
BuildRequires: libnet-devel
BuildRequires: libpcap-devel
%endif
BuildRequires: xz
BuildRequires: libpcap-devel
%description
Arping is a util to find out it a specific IP address on the LAN is
@ -44,6 +42,7 @@ unrouted networks and with ICMP-blocking hosts.
%prep
%setup -n arping-%version
%patch -P 1 -p1
%build
%configure