View | Details | Raw Unified | Return to bug 275254 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/sslscan/files/patch-Makefile (-12 / +14 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	2023-04-08 21:36:58 UTC
1
--- Makefile.orig	2023-11-14 21:36:52.000000000 +0000
2
+++ Makefile
2
+++ Makefile	2023-11-20 13:57:16.349229000 +0000
3
@@ -1,12 +1,7 @@
3
@@ -1,12 +1,7 @@
4
 # set gcc as default if CC is not set
4
 # set gcc as default if CC is not set
5
 
5
 
Lines 14-20 Link Here
14
 # Detect OS
14
 # Detect OS
15
 OS := $(shell uname)
15
 OS := $(shell uname)
16
 ARCH := $(shell uname -m)
16
 ARCH := $(shell uname -m)
17
@@ -26,11 +21,11 @@ endif
17
@@ -26,11 +21,11 @@
18
 
18
 
19
 SRCS      = sslscan.c
19
 SRCS      = sslscan.c
20
 BINDIR    = $(PREFIX)/bin
20
 BINDIR    = $(PREFIX)/bin
Lines 28-34 Link Here
28
 
28
 
29
 # for dynamic linking
29
 # for dynamic linking
30
 LIBS      = -lssl -lcrypto
30
 LIBS      = -lssl -lcrypto
31
@@ -58,36 +53,12 @@ endif
31
@@ -58,38 +53,12 @@
32
 CFLAGS += -std=gnu11
32
 CFLAGS += -std=gnu11
33
 
33
 
34
 # for static linking
34
 # for static linking
Lines 61-72 Link Here
61
-ifneq (,$(wildcard /usr/bin/nproc))
61
-ifneq (,$(wildcard /usr/bin/nproc))
62
-	NUM_PROCS = `/usr/bin/nproc --all`
62
-	NUM_PROCS = `/usr/bin/nproc --all`
63
-endif
63
-endif
64
-ifeq ($(OS), Darwin)
65
-	NUM_PROCS = `sysctl -n hw.ncpu`
66
-endif
64
-
67
-
65
-
66
 .PHONY: all sslscan clean install uninstall static opensslpull
68
 .PHONY: all sslscan clean install uninstall static opensslpull
67
 
69
 
68
 all: sslscan
70
 all: sslscan
69
@@ -114,6 +85,9 @@ ifeq ($(OS), Darwin)
71
@@ -116,6 +85,9 @@
70
 	install sslscan $(DESTDIR)$(BINDIR)/sslscan;
72
 	install sslscan $(DESTDIR)$(BINDIR)/sslscan;
71
 	install -d $(DESTDIR)$(MAN1DIR)/;
73
 	install -d $(DESTDIR)$(MAN1DIR)/;
72
 	install sslscan.1 $(DESTDIR)$(MAN1DIR)/sslscan.1;
74
 	install sslscan.1 $(DESTDIR)$(MAN1DIR)/sslscan.1;
Lines 76-95 Link Here
76
 else
78
 else
77
 	install -D sslscan $(DESTDIR)$(BINDIR)/sslscan;
79
 	install -D sslscan $(DESTDIR)$(BINDIR)/sslscan;
78
 	install -D sslscan.1 $(DESTDIR)$(MAN1DIR)/sslscan.1;
80
 	install -D sslscan.1 $(DESTDIR)$(MAN1DIR)/sslscan.1;
79
@@ -126,11 +100,7 @@ uninstall:
81
@@ -128,11 +100,7 @@
80
 .openssl.is.fresh: opensslpull
82
 .openssl.is.fresh: opensslpull
81
 	true
83
 	true
82
 opensslpull:
84
 opensslpull:
83
-	if [ -d openssl -a -d openssl/.git ]; then \
85
-	if [ -d openssl -a -d openssl/.git ]; then \
84
-		cd ./openssl && git checkout OpenSSL_1_1_1-stable && git pull | grep -q "Already up-to-date." && [ -e ../.openssl.is.fresh ] || touch ../.openssl.is.fresh ; \
86
-		cd ./openssl && git checkout `git ls-remote https://github.com/openssl/openssl | grep -Eo '(openssl-3\.0\.[0-9]+)' | sort --version-sort | tail -n 1` && git pull | grep -q "Already up-to-date." && [ -e ../.openssl.is.fresh ] || touch ../.openssl.is.fresh ; \
85
-	else \
87
-	else \
86
-		git clone --depth 1 -b OpenSSL_1_1_1-stable https://github.com/openssl/openssl ./openssl && cd ./openssl && touch ../.openssl.is.fresh ; \
88
-	git clone --depth 1 -b `git ls-remote https://github.com/openssl/openssl | grep -Eo '(openssl-3\.0\.[0-9]+)' | sort -V | tail -n 1` https://github.com/openssl/openssl ./openssl && cd ./openssl && touch ../.openssl.is.fresh ; \
87
-	fi
89
-	fi
88
+	true
90
+	true
89
 
91
 
90
 # Need to build OpenSSL differently on OSX
92
 # Need to build OpenSSL differently on OSX
91
 ifeq ($(OS), Darwin)
93
 ifeq ($(OS), Darwin)
92
@@ -144,16 +114,15 @@ openssl/Makefile: .openssl.is.fresh
94
@@ -146,16 +114,15 @@
93
 # Any other *NIX platform
95
 # Any other *NIX platform
94
 else
96
 else
95
 openssl/Makefile: .openssl.is.fresh
97
 openssl/Makefile: .openssl.is.fresh
Lines 99-108 Link Here
99
 
101
 
100
 openssl/libcrypto.a: openssl/Makefile
102
 openssl/libcrypto.a: openssl/Makefile
101
-	$(MAKE) -j $(NUM_PROCS) -C openssl depend
103
-	$(MAKE) -j $(NUM_PROCS) -C openssl depend
102
-	$(MAKE) -j $(NUM_PROCS) -C openssl all
104
-	$(MAKE) -j $(NUM_PROCS) -C openssl build_libs
103
-#	$(MAKE) -j $(NUM_PROCS) -C openssl test # Disabled because this takes 45+ minutes for OpenSSL v1.1.1.
105
-#	$(MAKE) -j $(NUM_PROCS) -C openssl test # Disabled because this takes 45+ minutes for OpenSSL v1.1.1.
104
+	$(MAKE) -C openssl depend
106
+	$(MAKE) -C openssl depend
105
+	$(MAKE) -C openssl build_sw
107
+	$(MAKE) -C openssl build_libs
106
 
108
 
107
 static: openssl/libcrypto.a
109
 static: openssl/libcrypto.a
108
-	$(MAKE) -j $(NUM_PROCS) sslscan STATIC_BUILD=TRUE
110
-	$(MAKE) -j $(NUM_PROCS) sslscan STATIC_BUILD=TRUE
(-)b/security/sslscan/distinfo (-5 / +5 lines)
Lines 1-5 Link Here
1
TIMESTAMP = 1683839135
1
TIMESTAMP = 1700488909
2
SHA256 (openssl-3.1.0.tar.gz) = aaa925ad9828745c4cad9d9efeb273deca820f2cdcf2c3ac7d7c1212b7c497b4
2
SHA256 (openssl-3.1.4.tar.gz) = 840af5366ab9b522bde525826be3ef0fb0af81c6a9ebd84caa600fea1731eee3
3
SIZE (openssl-3.1.0.tar.gz) = 15525381
3
SIZE (openssl-3.1.4.tar.gz) = 15569450
4
SHA256 (rbsec-sslscan-2.0.16_GH0.tar.gz) = eae49b9c2023f9c9adeb10c50a6ee3ddf5da7aae20f6a6c59251e7a84aa44131
4
SHA256 (rbsec-sslscan-2.1.2_GH0.tar.gz) = c218d21fdf0b57dfc7c7b110ff32d9c7e77eb8c631b670a2c0fc92a80ded294d
5
SIZE (rbsec-sslscan-2.0.16_GH0.tar.gz) = 113523
5
SIZE (rbsec-sslscan-2.1.2_GH0.tar.gz) = 113842
(-)b/security/sslscan/Makefile (-2 / +2 lines)
Lines 1-5 Link Here
1
PORTNAME=	sslscan
1
PORTNAME=	sslscan
2
DISTVERSION=	2.0.16
2
DISTVERSION=	2.1.2
3
CATEGORIES=	security
3
CATEGORIES=	security
4
MASTER_SITES=	https://www.openssl.org/source/:openssl \
4
MASTER_SITES=	https://www.openssl.org/source/:openssl \
5
		ftp://ftp.cert.dfn.de/pub/tools/net/openssl/source/:openssl
5
		ftp://ftp.cert.dfn.de/pub/tools/net/openssl/source/:openssl
Lines 15-21 Link Here
15
USE_PERL5=	build
15
USE_PERL5=	build
16
USE_GITHUB=	yes
16
USE_GITHUB=	yes
17
GH_ACCOUNT=	rbsec
17
GH_ACCOUNT=	rbsec
18
OPENSSL_VERSION=	3.1.0
18
OPENSSL_VERSION=	3.1.4
19
19
20
ALL_TARGET=	static
20
ALL_TARGET=	static
21
21

Return to bug 275254