From 19ca0729dcd2e32678e22b7182bb07dbd7723eca Mon Sep 17 00:00:00 2001 From: Tudor Nazarie Date: Sun, 8 Jan 2017 13:11:55 +0200 Subject: [PATCH] paperkey: added recipe (GCI 2016) (#998) --- app-crypt/paperkey/paperkey-1.4.recipe | 66 ++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 app-crypt/paperkey/paperkey-1.4.recipe diff --git a/app-crypt/paperkey/paperkey-1.4.recipe b/app-crypt/paperkey/paperkey-1.4.recipe new file mode 100644 index 000000000..395933fb4 --- /dev/null +++ b/app-crypt/paperkey/paperkey-1.4.recipe @@ -0,0 +1,66 @@ +SUMMARY="A tool to backup/restore OpenPGP keys to/from printed paper" +DESCRIPTION="Paperkey extracts the secret bits from OpenPGP keys, to be printed \ +on paper as a form of backup and allows it to be reintroduced to reconstruct the \ +secret key if needed." +HOMEPAGE="http://www.jabberwocky.com/software/paperkey/" +COPYRIGHT="2007-2016 David Shaw" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="http://www.jabberwocky.com/software/paperkey/paperkey-$portVersion.tar.gz" +CHECKSUM_SHA256="e12bb0ec835127d12a922a8d60b3dfdb3ca8ee60bb5b4d15ae4cea85bbcf336f" + +ARCHITECTURES="x86_gcc2 x86 x86_64" +SECONDARY_ARCHITECTURES="x86_gcc2 x86" + +PROVIDES=" + paperkey$secondaryArchSuffix = $portVersion + cmd:paperkey$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + " +if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then + REQUIRES="$REQUIRES + lib:libcrypto$secondaryArchSuffix + " +fi + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then + BUILD_REQUIRES="$BUILD_REQUIRES + devel:libcrypto$secondaryArchSuffix + " +fi + +BUILD_PREREQUIRES=" + cmd:autoconf + cmd:awk + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then + runConfigure ./configure --with-openssl + make $jobArgs LIBS="-lcrypto" + else + runConfigure ./configure + make $jobArgs + fi +} + +INSTALL() +{ + make install + install -d $docDir + install -t $docDir AUTHORS NEWS README +} + +TEST() +{ + make check +}