summaryrefslogtreecommitdiff
path: root/security/sslscan/patches
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2013-11-19 12:46:07 +0000
committertron <tron@pkgsrc.org>2013-11-19 12:46:07 +0000
commit0f231326bee7ec85c7ee14a30361fda96858e715 (patch)
tree124798ab6348d10d9acfccd32fa299985f4b748c /security/sslscan/patches
parent1bf8506ea20a47d2919b7783a582e01955cf5eac (diff)
downloadpkgsrc-0f231326bee7ec85c7ee14a30361fda96858e715.tar.gz
Import new "sslscan" package:
SSLScan queries SSL services, such as HTTPS, in order to determine the ciphers that are supported. SSLScan is designed to be easy, lean and fast. The output includes prefered ciphers of the SSL service, the certificate and is in Text and XML formats.
Diffstat (limited to 'security/sslscan/patches')
-rw-r--r--security/sslscan/patches/patch-Makefile25
-rw-r--r--security/sslscan/patches/patch-sslscan.c14
2 files changed, 39 insertions, 0 deletions
diff --git a/security/sslscan/patches/patch-Makefile b/security/sslscan/patches/patch-Makefile
new file mode 100644
index 00000000000..65d9eaffb8a
--- /dev/null
+++ b/security/sslscan/patches/patch-Makefile
@@ -0,0 +1,25 @@
+$NetBSD: patch-Makefile,v 1.1.1.1 2013/11/19 12:46:07 tron Exp $
+
+Use appropriate commands for build and installation.
+
+--- ./Makefile.orig 2009-09-01 14:35:59.000000000 +0200
++++ ./Makefile 2011-06-21 17:37:30.000000000 +0200
+@@ -1,13 +1,13 @@
+ SRCS = sslscan.c
+-BINPATH = /usr/bin/
+-MANPATH = /usr/share/man/
++BINPATH = $(PREFIX)/bin
++MANPATH = $(PREFIX)/$(PKGMANDIR)
+
+ all:
+- gcc -g -Wall -lssl -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS)
++ $(CC) -g -Wall -lssl -o sslscan $(SRCS) $(LDFLAGS) $(CFLAGS)
+
+ install:
+- cp sslscan $(BINPATH)
+- cp sslscan.1 $(MANPATH)man1
++ $(BSD_INSTALL_PROGRAM) -s -m 755 sslscan $(DESTDIR)$(BINPATH)
++ $(BSD_INSTALL_MAN) -m 644 sslscan.1 $(DESTDIR)$(MANPATH)/man1
+
+ uninstall:
+ rm -f $(BINPATH)sslscan
diff --git a/security/sslscan/patches/patch-sslscan.c b/security/sslscan/patches/patch-sslscan.c
new file mode 100644
index 00000000000..ef4caa572c0
--- /dev/null
+++ b/security/sslscan/patches/patch-sslscan.c
@@ -0,0 +1,14 @@
+$NetBSD: patch-sslscan.c,v 1.1.1.1 2013/11/19 12:46:07 tron Exp $
+
+Fix build.
+
+--- sslscan.c.orig 2009-09-01 13:35:59.000000000 +0100
++++ sslscan.c 2013-11-19 12:44:42.000000000 +0000
+@@ -41,6 +41,7 @@
+ #include <openssl/pkcs12.h>
+ #include <openssl/x509.h>
+ #include <openssl/x509v3.h>
++#include <netinet/in.h>
+
+ // Defines...
+ #define false 0