From 32f78b1f669188be2ab8efbb234b3040bb737e5e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 28 Aug 2017 22:23:15 +0000 Subject: unmaintained/beecrypt: move from main It does not look like anything uses beecrypt and the testcase fails. The problem have been reported upstream https://sourceforge.net/p/beecrypt/support-requests/19/ Meanwhile we move it to unmaintained. --- unmaintained/beecrypt/APKBUILD | 45 +++++++++++++++++++++++ unmaintained/beecrypt/beecrypt-4.1.2-base64.patch | 11 ++++++ 2 files changed, 56 insertions(+) create mode 100644 unmaintained/beecrypt/APKBUILD create mode 100644 unmaintained/beecrypt/beecrypt-4.1.2-base64.patch (limited to 'unmaintained') diff --git a/unmaintained/beecrypt/APKBUILD b/unmaintained/beecrypt/APKBUILD new file mode 100644 index 0000000000..a1a2aa8435 --- /dev/null +++ b/unmaintained/beecrypt/APKBUILD @@ -0,0 +1,45 @@ +# Maintainer: Natanael Copa +pkgname=beecrypt +pkgver=4.2.1 +pkgrel=2 +pkgdesc="A general-purpose cryptography library" +url="http://sourceforge.net/projects/beecrypt" +arch="all" +license="LGPL2+" +makedepends="libtool m4" +subpackages="$pkgname-dev" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" + +builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + default_prepare + update_config_sub +} + +build() { + cd "$builddir" + LIBS=-lgomp ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --sysconfdir=/etc \ + --enable-threads \ + --enable-shared \ + --without-java \ + --without-python \ + --with-cplusplus=no + make libaltdir=/usr/lib +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make libaltdir=/usr/lib DESTDIR="$pkgdir" install +} + +sha512sums="59995d53c024efe6344a21ac0d6d55fbe652488a4a22cc6719f9fc3851d56697fa8738937d48aa1e6f9ebe749de61ac3c79a5f0cea793872213c3bdf922e71bc beecrypt-4.2.1.tar.gz" diff --git a/unmaintained/beecrypt/beecrypt-4.1.2-base64.patch b/unmaintained/beecrypt/beecrypt-4.1.2-base64.patch new file mode 100644 index 0000000000..c6c370bd07 --- /dev/null +++ b/unmaintained/beecrypt/beecrypt-4.1.2-base64.patch @@ -0,0 +1,11 @@ +Fix b64encode() for data starting with NUL from Miloslav Trmac +--- beecrypt-4.1.2/base64.c.b64 2005-04-26 21:46:27.000000000 +0200 ++++ beecrypt-4.1.2/base64.c 2005-04-26 21:47:48.000000000 +0200 +@@ -253,7 +253,6 @@ + unsigned c; + + if (s == NULL) return NULL; +- if (*s == '\0') return calloc(1, sizeof(*t)); + + if (ns == 0) ns = strlen((const char*) s); + nt = ((ns + 2) / 3) * 4; -- cgit v1.2.3