summaryrefslogtreecommitdiff
path: root/security/bearssl
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2017-09-22 22:00:57 +0000
committerwiedi <wiedi@pkgsrc.org>2017-09-22 22:00:57 +0000
commit541d5b3815b7a2795d8b925e383ed237a1d400fd (patch)
treebec43ceca90db42010e533d63baf626116fe00a0 /security/bearssl
parent4b24ff359f7657f7b9674ee32c248f8b36d6c337 (diff)
downloadpkgsrc-541d5b3815b7a2795d8b925e383ed237a1d400fd.tar.gz
bearssl: fix build on SunOS
Needs to link -lsocket -lnsl
Diffstat (limited to 'security/bearssl')
-rw-r--r--security/bearssl/Makefile4
-rw-r--r--security/bearssl/distinfo3
-rw-r--r--security/bearssl/patches/patch-conf_Unix.mk14
3 files changed, 19 insertions, 2 deletions
diff --git a/security/bearssl/Makefile b/security/bearssl/Makefile
index 61a2eeb3642..0e4a7920d00 100644
--- a/security/bearssl/Makefile
+++ b/security/bearssl/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2017/06/14 01:14:30 agc Exp $
+# $NetBSD: Makefile,v 1.4 2017/09/22 22:00:57 wiedi Exp $
DISTNAME= bearssl-0.4
CATEGORIES= security
@@ -11,6 +11,8 @@ LICENSE= mit
INSTALLATION_DIRS= bin include lib
+LDFLAGS.SunOS+= -lsocket -lnsl
+
do-install:
cd ${WRKSRC}/build && \
${INSTALL_PROGRAM} brssl ${DESTDIR}${PREFIX}/bin
diff --git a/security/bearssl/distinfo b/security/bearssl/distinfo
index 45512b31813..39e1d9a5e80 100644
--- a/security/bearssl/distinfo
+++ b/security/bearssl/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2017/06/14 01:14:30 agc Exp $
+$NetBSD: distinfo,v 1.3 2017/09/22 22:00:57 wiedi Exp $
SHA1 (bearssl-0.4.tar.gz) = 3246db6d5949a86b1889c1921ae9496d7b962c47
RMD160 (bearssl-0.4.tar.gz) = e0f40ea16bfa3fc729407ddb3e176fa4ea8c259e
SHA512 (bearssl-0.4.tar.gz) = ff197c36a9e1a3e6b2e5b29c880f408518600ddc2a106522d097d6f4c824f3c5206c320194d8cfcc658eebb9a14e8175387e71d8a1d428562e028caa38c717ef
Size (bearssl-0.4.tar.gz) = 633401 bytes
+SHA1 (patch-conf_Unix.mk) = 452629d96619ddd63a726b2ae933610187d31a68
diff --git a/security/bearssl/patches/patch-conf_Unix.mk b/security/bearssl/patches/patch-conf_Unix.mk
new file mode 100644
index 00000000000..9e703dab78d
--- /dev/null
+++ b/security/bearssl/patches/patch-conf_Unix.mk
@@ -0,0 +1,14 @@
+$NetBSD: patch-conf_Unix.mk,v 1.1 2017/09/22 22:00:57 wiedi Exp $
+
+Don't overwrite LDFLAGS
+--- conf/Unix.mk.orig 2017-04-03 19:42:14.000000000 +0000
++++ conf/Unix.mk
+@@ -53,7 +53,7 @@ LDDLLOUT = -o
+
+ # Static linker.
+ LD = gcc
+-LDFLAGS =
++#LDFLAGS =
+ LDOUT = -o
+
+ # C# compiler; we assume usage of Mono.