Home
       tapp-crypt/opmsg: Add 9999 - parlay - yet another gentoo overlay
  HTML git clone https://git.parazyd.org/parlay
   DIR Log
   DIR Files
   DIR Refs
   DIR README
       ---
   DIR commit 880246f1a5ed89cb82e07bdeca40817ee2cc96d0
   DIR parent 6aff58e7e8b86fe44ffb1abc75bdce8048fed766
  HTML Author: parazyd <parazyd@dyne.org>
       Date:   Sat, 12 Nov 2016 17:20:23 +0100
       
       app-crypt/opmsg: Add 9999
       
       Diffstat:
         A app-crypt/opmsg/files/opmsg-9999-l… |      21 +++++++++++++++++++++
         A app-crypt/opmsg/files/opmsg-9999-s… |      17 +++++++++++++++++
         A app-crypt/opmsg/opmsg-9999.ebuild   |      44 +++++++++++++++++++++++++++++++
       
       3 files changed, 82 insertions(+), 0 deletions(-)
       ---
   DIR diff --git a/app-crypt/opmsg/files/opmsg-9999-libressl.patch b/app-crypt/opmsg/files/opmsg-9999-libressl.patch
       t@@ -0,0 +1,21 @@
       +diff --git a/src/Makefile b/src/Makefile
       +index ec0b3fb..ca4e38a 100644
       +--- a/src/Makefile
       ++++ b/src/Makefile
       +@@ -16,11 +16,11 @@ INC=
       + 
       + 
       + # LibreSSL setups, define your paths here
       +-#INC+=-I/usr/local/libressl/include
       +-#LIBS+=-L/usr/local/libressl/lib64
       +-#LIBS+=-Wl,--rpath=/usr/local/libressl/lib64
       +-#DEFS+=-DHAVE_BN_GENCB_NEW=0
       +-#DEFS+=-DHAVE_LIBRESSL
       ++INC+=-I/usr/include/openssl
       ++LIBS+=-L/usr/lib
       ++LIBS+=-Wl,--rpath=/usr/lib
       ++DEFS+=-DHAVE_BN_GENCB_NEW=0
       ++DEFS+=-DHAVE_LIBRESSL
       + 
       + 
       + # BoringSSL. Be warned, BoringSSL creates incompatible
   DIR diff --git a/app-crypt/opmsg/files/opmsg-9999-static.patch b/app-crypt/opmsg/files/opmsg-9999-static.patch
       t@@ -0,0 +1,17 @@
       +diff --git a/src/Makefile b/src/Makefile
       +index ec0b3fb..35c7465 100644
       +--- a/src/Makefile
       ++++ b/src/Makefile
       +@@ -36,10 +36,10 @@ INC=
       + # Enable chacha20-poly1305 if avail
       + #DEFS+=-DCHACHA20
       + 
       +-CXXFLAGS=-Wall -O2 -pedantic -std=c++11 $(INC) $(DEFS)
       ++CXXFLAGS=-Wall -O2 -pedantic -std=c++11 $(INC) $(DEFS) -static
       + 
       + LD=c++
       +-LDFLAGS=
       ++LDFLAGS=-static
       + LIBS+=-lcrypto
       + 
       + 
   DIR diff --git a/app-crypt/opmsg/opmsg-9999.ebuild b/app-crypt/opmsg/opmsg-9999.ebuild
       t@@ -0,0 +1,44 @@
       +# Copyright 1999-2016 Gentoo Foundation
       +# Distributed under the terms of the GNU General Public License v2
       +# $Id$
       +
       +EAPI=6
       +
       +inherit git-r3
       +
       +DESCRIPTION="opmsg message encryption"
       +HOMEPAGE="https://github.com/stealth/opmsg"
       +EGIT_REPO_URI="https://github.com/stealth/opmsg.git"
       +
       +LICENSE="GPL-3+"
       +SLOT="0"
       +KEYWORDS="~amd64 ~x86"
       +IUSE="libressl contrib static"
       +
       +DEPEND="
       +        !libressl? ( dev-libs/openssl )
       +        libressl? ( dev-libs/libressl )
       +"
       +RDEPEND="${DEPEND}"
       +
       +
       +src_prepare() {
       +        default
       +        use libressl && epatch "${FILESDIR}/${P}-libressl.patch"
       +        use static   && epatch "${FILESDIR}/${P}-static.patch"
       +}
       +
       +src_compile() {
       +        cd src
       +        emake
       +        use contrib && emake contrib
       +        cd -
       +}
       +
       +src_install() {
       +        dobin src/opmsg
       +        use contrib && {
       +                dobin src/opmux
       +                dobin src/opcoin
       +        }
       +}