pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/hping Don't redefine strlcpy on platforms which al...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5da33e28c0d6
branches:  trunk
changeset: 367126:5da33e28c0d6
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu Aug 24 11:04:00 2017 +0000

description:
Don't redefine strlcpy on platforms which already have it, and add
license.  Submitted by Thomas Merkel in NetBSD/pkgsrc#11.

Bump PKGREVISION for the LICENSE change.

diffstat:

 net/hping/Makefile                    |   5 +++--
 net/hping/distinfo                    |   3 ++-
 net/hping/patches/patch-gethostname.c |  17 +++++++++++++++++
 3 files changed, 22 insertions(+), 3 deletions(-)

diffs (57 lines):

diff -r 7fb19ca57c17 -r 5da33e28c0d6 net/hping/Makefile
--- a/net/hping/Makefile        Thu Aug 24 10:45:00 2017 +0000
+++ b/net/hping/Makefile        Thu Aug 24 11:04:00 2017 +0000
@@ -1,15 +1,16 @@
-# $NetBSD: Makefile,v 1.14 2013/10/21 09:05:09 fhajny Exp $
+# $NetBSD: Makefile,v 1.15 2017/08/24 11:04:00 jperkin Exp $
 #
 
 DISTNAME=              hping2.0.0-rc3
 PKGNAME=               hping-2.0.0.3
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            net
 MASTER_SITES=          http://www.hping.org/
 
 MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=              http://www.hping.org/
 COMMENT=               Command-line oriented TCP/IP packet assembler/analyzer
+LICENSE=               gnu-gpl-v2
 
 WRKSRC=                        ${WRKDIR}/hping2-rc3
 HAS_CONFIGURE=         YES
diff -r 7fb19ca57c17 -r 5da33e28c0d6 net/hping/distinfo
--- a/net/hping/distinfo        Thu Aug 24 10:45:00 2017 +0000
+++ b/net/hping/distinfo        Thu Aug 24 11:04:00 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2015/11/04 00:35:04 agc Exp $
+$NetBSD: distinfo,v 1.10 2017/08/24 11:04:00 jperkin Exp $
 
 SHA1 (hping2.0.0-rc3.tar.gz) = ec48293ca25e08155bf4b51ad6140b1be576a16f
 RMD160 (hping2.0.0-rc3.tar.gz) = 345c6b29e48c2f9aea6b8bafb68c258f9ff8b083
@@ -20,3 +20,4 @@
 SHA1 (patch-ao) = 52d30d71d91c33174de17dd1d0096c05e533504b
 SHA1 (patch-ap) = 369b03242eb513ba73d75e7102e7aa5491a13e2e
 SHA1 (patch-aq) = 548dd11def5085580ec118bb8ecff43df60a4140
+SHA1 (patch-gethostname.c) = 74bda475731e0750813f555af58908bada13ba7d
diff -r 7fb19ca57c17 -r 5da33e28c0d6 net/hping/patches/patch-gethostname.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/hping/patches/patch-gethostname.c     Thu Aug 24 11:04:00 2017 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-gethostname.c,v 1.1 2017/08/24 11:04:00 jperkin Exp $
+
+strlcpy already exists on *BSD and Darwin
+
+--- gethostname.c.orig 2002-03-28 15:54:48.000000000 +0000
++++ gethostname.c
+@@ -16,7 +16,10 @@
+ #include <arpa/inet.h>
+ #include <string.h>
+ 
++#if !defined(__FreeBSD__) && !defined(__OpenBSD__) && !defined(__NetBSD__) && \
++    !defined(__bsdi__) && !defined(__APPLE__)
+ size_t strlcpy(char *dst, const char *src, size_t siz);
++#endif
+ 
+ char *get_hostname(char* addr)
+ {



Home | Main Index | Thread Index | Old Index