From 49751a9a67e7bf6df04a474f6734989441148949 Mon Sep 17 00:00:00 2001 From: Shiz Date: Sat, 6 May 2017 02:53:36 +0000 Subject: testing/gpg-remailer: new aport https://fbb-git.github.io/gpg-remailer/ decrypt messages and re-encrypt them to a well-defined group --- testing/gpg-remailer/APKBUILD | 35 ++++++++++++++++++++++++++++++++ testing/gpg-remailer/avoid-gnuisms.patch | 31 ++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 testing/gpg-remailer/APKBUILD create mode 100644 testing/gpg-remailer/avoid-gnuisms.patch diff --git a/testing/gpg-remailer/APKBUILD b/testing/gpg-remailer/APKBUILD new file mode 100644 index 0000000000..614ad92fe2 --- /dev/null +++ b/testing/gpg-remailer/APKBUILD @@ -0,0 +1,35 @@ +# Contributor: Shiz +# Maintainer: Shiz +pkgname=gpg-remailer +pkgver=3.02.01 +pkgrel=0 +pkgdesc="Decrypt GPG messages and re-encrypt them to a well-defined group" +url="https://fbb-git.github.io/gpg-remailer/" +arch="all" +license="GPL3+" +makedepends="icmake bash yodl bobcat-dev" +subpackages="$pkgname-doc" +source="gpg-remailer-$pkgver.tar.gz::https://github.com/fbb-git/gpg-remailer/archive/$pkgver.tar.gz + avoid-gnuisms.patch" +builddir="$srcdir/gpg-remailer-$pkgver/gpg-remailer" + +build() { + cd "$builddir" + ./build program strip + ./build man +} + +check() { + cd "$builddir" + ./tmp/bin/binary --version +} + +package() { + cd "$builddir" + ./build install bm "$pkgdir" + # remove HTML documentation. + rm -rf "$pkgdir"/usr/share/doc +} + +sha512sums="c26117d8c58989ce1231b40fef99919ada1df70652aca6b309baab38186aadb5b2fc73c652f5d47cd2b044abe086338a4124a7c6c0df241d330e22f2711b1a76 gpg-remailer-3.02.01.tar.gz +7b3528add0f0c62f999719499fbd043b0926f9440fc0a626e8b2de26ca2aebd6dfde8e3d6180ee45cf45c9883908975266b4e91a6b998178c35a57dcd3a1f937 avoid-gnuisms.patch" diff --git a/testing/gpg-remailer/avoid-gnuisms.patch b/testing/gpg-remailer/avoid-gnuisms.patch new file mode 100644 index 0000000000..3e189be49a --- /dev/null +++ b/testing/gpg-remailer/avoid-gnuisms.patch @@ -0,0 +1,31 @@ +--- a/icmake/installer ++++ b/icmake/installer +@@ -5,14 +5,14 @@ + exit 0 + fi + +-for src in `find -mindepth 1 -type d` # create missing target dirs ++for src in `find . -mindepth 1 -type d` # create missing target dirs + do + [ ! -e $1$src ] && mkdir -p $1$src + done + +-for file in `find -type f -or -type l` ++for file in `find . -type f -or -type l` + do + # echo installing $1$file +- cp -d --preserve=timestamps $file $1$file ++ cp -H $file $1$file + done + +--- a/icmake/findall ++++ b/icmake/findall +@@ -15,7 +15,7 @@ + if (pattern != "") + pattern = "-name '" + pattern + "'"; + +- entries = backtick(cmd + " " + pattern + " -printf \"%f\\n\""); ++ entries = backtick(cmd + " " + pattern + " -exec basename {} \\;"); + + for (idx = listlen(entries); idx--; ) + ret += (list)cutEoln(entries[idx]); -- cgit v1.2.3