aboutsummaryrefslogtreecommitdiffstats
path: root/testing/megatools
diff options
context:
space:
mode:
authorH <agathos5@gmail.com>2017-11-04 01:33:48 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-11-07 15:41:19 +0000
commit01df09b69617e5fb016ffea4ae062da7f48c1309 (patch)
treec11bf82d47a5cbba288718d834add9241576daf7 /testing/megatools
parentfc3c9dace5ae3a88a80f31bc6119792009275973 (diff)
downloadaports-01df09b69617e5fb016ffea4ae062da7f48c1309.tar.bz2
aports-01df09b69617e5fb016ffea4ae062da7f48c1309.tar.xz
testing/megatools: new aport
https://megatools.megous.com Megatools is a collection of programs for accessing Mega.nz service from a command line of your desktop or server.
Diffstat (limited to 'testing/megatools')
-rw-r--r--testing/megatools/APKBUILD45
-rw-r--r--testing/megatools/libressl.patch11
2 files changed, 56 insertions, 0 deletions
diff --git a/testing/megatools/APKBUILD b/testing/megatools/APKBUILD
new file mode 100644
index 0000000000..57d7ba5af9
--- /dev/null
+++ b/testing/megatools/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: H <agathos5@gmail.com>
+# Maintainer:
+pkgname=megatools
+pkgver=1.9.98
+pkgrel=0
+pkgdesc="Megatools is a collection of programs for accessing Mega.nz service from a command line of your desktop or server."
+url="https://megatools.megous.com"
+arch="all"
+license="GPL2"
+depends="libssl1.0"
+makedepends="curl-dev glib-dev libressl-dev gmp-dev asciidoc"
+install=""
+options="!check"
+subpackages="$pkgname-doc"
+source="https://megatools.megous.com/builds/megatools-1.9.98.tar.gz libressl.patch"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare || return
+}
+
+build() {
+ cd "$builddir"
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$builddir"
+ #make DESTDIR="$pkgdir" install
+ ./install-sh -c -d "${pkgdir}/usr/bin"
+ ./install-sh -c -d "${pkgdir}/usr/share/doc/megatools"
+ ./install-sh -c -d "${pkgdir}/usr/share/man/man1"
+ ./install-sh -c -d "${pkgdir}/usr/share/man/man5"
+ ./install-sh -c -d "${pkgdir}/usr/share/man/man7"
+ ./install-sh -c -m 755 megacopy megadf megadl megaget megals megamkdir megaput megareg megarm "${pkgdir}/usr/bin"
+ ./install-sh -c -m 644 LICENSE NEWS TODO README INSTALL HACKING "${pkgdir}/usr/share/doc/megatools"
+ ./install-sh -c -m 644 docs/megadf.1 docs/megaget.1 docs/megals.1 docs/megamkdir.1 docs/megaput.1 docs/megareg.1 docs/megarm.1 \
+ docs/megacopy.1 docs/megadl.1 "${pkgdir}/usr/share/man/man1"
+ ./install-sh -c -m 644 docs/megarc.5 "${pkgdir}/usr/share/man/man5"
+ ./install-sh -c -m 644 docs/megatools.7 "${pkgdir}/usr/share/man/man7"
+}
+
+sha512sums="4e1c9e3a6aae0009d085b38ae79d9ba9e66415b0517eb1f0c0abec40a3be103bf0f78bfd8fa8d678a578eb0652f3b88292bcb53c1e1efc83082a6239644390d0 megatools-1.9.98.tar.gz
+f30370fce5567f52a7dd007704e27e368402287cf5dc416d18f3cfd09d2fd5711b59525a0533546fe0eed98f5d162836a265fbc9d641ff5cca0ad20d3fc4f172 libressl.patch"
diff --git a/testing/megatools/libressl.patch b/testing/megatools/libressl.patch
new file mode 100644
index 0000000000..3577126490
--- /dev/null
+++ b/testing/megatools/libressl.patch
@@ -0,0 +1,11 @@
+--- a/lib/mega.c
++++ b/lib/mega.c
+@@ -803,7 +803,7 @@
+ return FALSE;
+ }
+
+-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
++#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
+ RSA_get0_key(key, &k->m, &k->e, &k->d);
+ RSA_get0_factors(key, &k->q, &k->p);
+ RSA_get0_crt_params(key, NULL, NULL, &k->u);