Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Aug 2021 20:39:12 GMT
From:      Nuno Teixeira <eduardo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 75a79fdae859 - main - security/masscan: Update to 1.3.2
Message-ID:  <202108242039.17OKdCUS099098@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by eduardo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=75a79fdae85929c4663e9b8873a7b6f8bffd701a

commit 75a79fdae85929c4663e9b8873a7b6f8bffd701a
Author:     gettoknowmi <gettoknowmi@yahoo.com>
AuthorDate: 2021-08-24 20:37:20 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2021-08-24 20:37:20 +0000

    security/masscan: Update to 1.3.2
    
    ChangeLog: https://github.com/robertdavidgraham/masscan/releases/tag/1.3.2
    
    PR:             257931
---
 security/masscan/Makefile                 |  4 ++--
 security/masscan/distinfo                 |  6 +++---
 security/masscan/files/patch-src_smack1.c | 30 +++++++++++++++++++++---------
 3 files changed, 26 insertions(+), 14 deletions(-)

diff --git a/security/masscan/Makefile b/security/masscan/Makefile
index a74b6e7ff90b..85aaa246e53d 100644
--- a/security/masscan/Makefile
+++ b/security/masscan/Makefile
@@ -1,7 +1,7 @@
 # Created by: Chie Taguchi <taguchi.ch@gmail.com>
 
 PORTNAME=	masscan
-PORTVERSION=	1.0.4
+DISTVERSION=	1.3.2
 CATEGORIES=	security
 
 MAINTAINER=	taguchi.ch@gmail.com
@@ -12,8 +12,8 @@ LICENSE=	GPLv3
 USES=		gmake
 USE_GITHUB=	yes
 GH_ACCOUNT=	robertdavidgraham
-CFLAGS+=	-Wno-format
 MAKE_ARGS=	SYS=freebsd CC="${CC}" CFLAGS="${CFLAGS}"
+CFLAGS+=	-Wno-format
 
 PLIST_FILES=	bin/masscan man/man8/masscan.8.gz
 
diff --git a/security/masscan/distinfo b/security/masscan/distinfo
index c98a42bc097c..de77f6de4d6b 100644
--- a/security/masscan/distinfo
+++ b/security/masscan/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1497024027
-SHA256 (robertdavidgraham-masscan-1.0.4_GH0.tar.gz) = 51de345f677f46595fc3bd747bfb61bc9ff130adcbec48f3401f8057c8702af9
-SIZE (robertdavidgraham-masscan-1.0.4_GH0.tar.gz) = 343513
+TIMESTAMP = 1629557968
+SHA256 (robertdavidgraham-masscan-1.3.2_GH0.tar.gz) = 0363e82c07e6ceee68a2da48acd0b2807391ead9a396cf9c70b53a2a901e3d5f
+SIZE (robertdavidgraham-masscan-1.3.2_GH0.tar.gz) = 463449
diff --git a/security/masscan/files/patch-src_smack1.c b/security/masscan/files/patch-src_smack1.c
index d1986333834e..8a5448fd62dc 100644
--- a/security/masscan/files/patch-src_smack1.c
+++ b/security/masscan/files/patch-src_smack1.c
@@ -1,11 +1,23 @@
---- src/smack1.c.orig	2017-06-06 03:59:39 UTC
+--- src/smack1.c.orig	2021-01-31 09:13:30 UTC
 +++ src/smack1.c
-@@ -115,6 +115,8 @@
- #include "pixie-timer.h"
- #if defined(_MSC_VER)
- #include <intrin.h>
-+#elif defined(__llvm__) && (defined(__amd64__) || defined(__i386__))
-+#include <x86intrin.h>
- #elif defined(__GNUC__)
- static __inline__ unsigned long long __rdtsc(void)
+@@ -119,8 +119,7 @@
+ #elif defined(__FreeBSD__)
+ #include <sys/types.h>
+ #include <machine/cpufunc.h>
+-#define __rdtsc rdtsc
+-#if (__ARM_ARCH >= 6)  // V6 is the earliest arch that has a standard cyclecount
++#if (__ARM_ARCH >= 6 && __ARM_ARCH <= 7)  // V6 is the earliest arch that has a standard cyclecount
+ unsigned long long rdtsc(void)
  {
+   uint32_t pmccntr;
+@@ -138,6 +137,10 @@ unsigned long long rdtsc(void)
+   }
+   return 0;
+ }
++#elif defined(__aarch64__)
++#define __rdtsc() 0
++#else
++#define __rdtsc rdtsc
+ #endif
+ #elif defined (__llvm__)
+ #if defined(i386) || defined(__i386__)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108242039.17OKdCUS099098>