Received: by mail.netbsd.org (Postfix, from userid 605) id A954884D9A; Thu, 24 Aug 2017 11:04:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 3C8AE84D90 for ; Thu, 24 Aug 2017 11:04:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id FDsXrtPd24U7 for ; Thu, 24 Aug 2017 11:04:00 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id B85F584CE3 for ; Thu, 24 Aug 2017 11:04:00 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id AF3CBFA88; Thu, 24 Aug 2017 11:04:00 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_150357264098610" MIME-Version: 1.0 Date: Thu, 24 Aug 2017 11:04:00 +0000 From: "Jonathan Perkin" Subject: CVS commit: pkgsrc/net/hping To: pkgsrc-changes@NetBSD.org Reply-To: jperkin@netbsd.org X-Mailer: log_accum Message-Id: <20170824110400.AF3CBFA88@cvs.NetBSD.org> Sender: pkgsrc-changes-owner@NetBSD.org List-Id: pkgsrc-changes.NetBSD.org Precedence: bulk List-Unsubscribe: This is a multi-part message in MIME format. --_----------=_150357264098610 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: jperkin Date: Thu Aug 24 11:04:00 UTC 2017 Modified Files: pkgsrc/net/hping: Makefile distinfo Added Files: pkgsrc/net/hping/patches: patch-gethostname.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.14 -r1.15 pkgsrc/net/hping/Makefile cvs rdiff -u -r1.9 -r1.10 pkgsrc/net/hping/distinfo cvs rdiff -u -r0 -r1.1 pkgsrc/net/hping/patches/patch-gethostname.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_150357264098610 Content-Disposition: inline Content-Length: 2316 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/net/hping/Makefile diff -u pkgsrc/net/hping/Makefile:1.14 pkgsrc/net/hping/Makefile:1.15 --- pkgsrc/net/hping/Makefile:1.14 Mon Oct 21 09:05:09 2013 +++ pkgsrc/net/hping/Makefile Thu Aug 24 11:04:00 2017 @@ -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 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 Index: pkgsrc/net/hping/distinfo diff -u pkgsrc/net/hping/distinfo:1.9 pkgsrc/net/hping/distinfo:1.10 --- pkgsrc/net/hping/distinfo:1.9 Wed Nov 4 00:35:04 2015 +++ pkgsrc/net/hping/distinfo Thu Aug 24 11:04:00 2017 @@ -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-an) = f660b165d5564149a5b57f SHA1 (patch-ao) = 52d30d71d91c33174de17dd1d0096c05e533504b SHA1 (patch-ap) = 369b03242eb513ba73d75e7102e7aa5491a13e2e SHA1 (patch-aq) = 548dd11def5085580ec118bb8ecff43df60a4140 +SHA1 (patch-gethostname.c) = 74bda475731e0750813f555af58908bada13ba7d Added files: Index: pkgsrc/net/hping/patches/patch-gethostname.c diff -u /dev/null pkgsrc/net/hping/patches/patch-gethostname.c:1.1 --- /dev/null Thu Aug 24 11:04:00 2017 +++ pkgsrc/net/hping/patches/patch-gethostname.c Thu Aug 24 11:04:00 2017 @@ -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 + #include + ++#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) + { --_----------=_150357264098610--