-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't redefine strlcpy on platforms which already have it, and add
license. Submitted by Thomas Merkel in #11. Bump PKGREVISION for the LICENSE change.
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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= [email protected] | ||
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) | ||
{ |