X-Original-To: alpine-aports@lists.alpinelinux.org Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by lists.alpinelinux.org (Postfix) with ESMTP id 07DA05C4154 for ; Fri, 6 Jan 2017 02:20:37 +0000 (GMT) Received: by mail-wm0-f51.google.com with SMTP id c85so9188755wmi.1 for ; Thu, 05 Jan 2017 18:20:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=3jw8IN6jkMEpJnhGaocqyjgw5F/zoe+ouRIboSYTpWc=; b=tIdRP9UQ6a6dXK5hEdgeg1qdeny/POtmS2SsMjOyej3Wp4gQwc93Jngy01kwgehcay rHFqHMtvH6AWs91f20jo8gk1ZgFDWSsbECJUzcYcjlW0jiax0mulp23hMg3nSkx8V9Uw 2Pe8xJahw9dVZ5++MEPPeem+svJdguAdBylAbbtPYhBpuenrRM42uKXTcTmha6yCiol/ s3flsTFoz48dsrMJB809MoIhe8rdLYgITtIESaz0cMVsq5WHsITWmFRzq04KDK977y0+ TpaCNRAe+FgKXEQ+7b1c1C3KwwKT7t5l+2OLcxMw/DYg9RSKabiT3Ol3RsLcdWcSz8tJ AoSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=3jw8IN6jkMEpJnhGaocqyjgw5F/zoe+ouRIboSYTpWc=; b=V6yezfR8TIqIQLQqlWshm9xQs6OTZ+ynF5GpoKJg2lNzJDJzri+7cfZjK/zZ1daVvx 3E2BSvQHiORSUGO/QXdNvCvN18KLXyZyfctyvKflfKInTgIxbbV/YI2BqKROKGPDtOwR gN1YZZp6GlFni6LSz1PXHEbobUDLzMPFrMYYOf0QuWI37zH1SgQZ1A74Py5Bd0ULsepm asdeSb6xWok5utd4h3/750sWze/tw32ZM4LixroF7+PcLCTiAysxG2WOHJmna/dplwuH rN4FtPKN8ZmP5OXtBoeiF1y/+KCsbJC8oquQwLg0AV9u2DstyHzJ8K7R1CNlOSyWVBKK gQ9Q== X-Gm-Message-State: AIkVDXLldBgwRr3BWvSglX+W61m2Ouq5m8/2yJUuzQ7qXhK4EhiAgQSRsIdgb11PKlemTbfaW5KGWfjhOmVU4A== X-Received: by 10.28.10.201 with SMTP id 192mr853888wmk.56.1483669236284; Thu, 05 Jan 2017 18:20:36 -0800 (PST) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.28.12.209 with HTTP; Thu, 5 Jan 2017 18:20:15 -0800 (PST) In-Reply-To: <20170106010858.25707-1-corey.jon.oliver@gmail.com> References: <20170106010858.25707-1-corey.jon.oliver@gmail.com> From: Corey Oliver Date: Thu, 5 Jan 2017 20:20:15 -0600 Message-ID: Subject: [alpine-aports] Re: [PATCH 1/3] testing/argon2: new aport To: alpine-aports@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=001a1143bd74cb05ea054563a9e6 --001a1143bd74cb05ea054563a9e6 Content-Type: text/plain; charset=UTF-8 This should only be a single patch (ie. it should read [PATCH 1/1]). On Thu, Jan 5, 2017 at 7:08 PM, Corey Oliver wrote: > --- > testing/argon2/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++ > 1 file changed, 38 insertions(+) > create mode 100644 testing/argon2/APKBUILD > > diff --git a/testing/argon2/APKBUILD b/testing/argon2/APKBUILD > new file mode 100644 > index 0000000..11c8be3 > --- /dev/null > +++ b/testing/argon2/APKBUILD > @@ -0,0 +1,38 @@ > +# Contributor: Corey Oliver > +# Maintainer: Corey Oliver > +pkgname=argon2 > +_pkgname=phc-winner-argon2 > +pkgver=20161029 > +_soname=0.0.0 > +pkgrel=0 > +pkgdesc="The password hash Argon2, winner of PHC" > +url="https://github.com/P-H-C/phc-winner-argon2" > +arch="all" > +license="ASL 2.0 CC0 1.0" > +subpackages="$pkgname-dev libargon2" > +source="$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$ > _pkgname/archive/$pkgver.tar.gz" > +builddir="$srcdir/$_pkgname-$pkgver" > + > +build() { > + cd "$builddir" > + make && make test > +} > + > +package() { > + cd "$builddir" > + make DESTDIR="$pkgdir" install || return 1 > + > + # A version number is not appended to the shared library file by > default, so we do it ourselves > + mv "$pkgdir"/usr/lib/libargon2.so "$pkgdir"/usr/lib/libargon2.so.$_soname > || return 1 > + ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/libargon2.so || return 1 > + ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/libargon2.so.${_soname%%.*} > || return 1 > +} > + > +libargon2() { > + pkgdesc="The password hash Argon2 library, winner of PHC" > + mkdir -p "$subpkgdir"/usr > + mv "$pkgdir"/usr/lib "$subpkgdir"/usr > +} > +md5sums="bd3476cb8eac9d521a4e0e04d653f5a8 argon2-20161029.tar.gz" > +sha256sums="fe0049728b946b58b94cc6db89b34e2d050c62325d16316a534d2bedd78cd5e7 > argon2-20161029.tar.gz" > +sha512sums="e1f947a97e8b5f292dd32a6f1ea0ef3f2e411629218653821886ec4e1d5f > 8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001a0e4273bebd4792892 > argon2-20161029.tar.gz" > -- > 2.9.3 > > --001a1143bd74cb05ea054563a9e6 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
This should only be a single patch (ie. it should read [PA= TCH 1/1]).

O= n Thu, Jan 5, 2017 at 7:08 PM, Corey Oliver <corey.jon.oliver@g= mail.com> wrote:
---
=C2=A0testing/argon2/APKBUILD | 38 +++++++++++++++++++++++++++++++++++= +++
=C2=A01 file changed, 38 insertions(+)
=C2=A0create mode 100644 testing/argon2/APKBUILD

diff --git a/testing/argon2/APKBUILD b/testing/argon2/APKBUILD
new file mode 100644
index 0000000..11c8be3
--- /dev/null
+++ b/testing/argon2/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Corey Oliver <coreyjonoliver@gmail.com>
+# Maintainer: Corey Oliver <coreyjonoliver@gmail.com>
+pkgname=3Dargon2
+_pkgname=3Dphc-winner-argon2
+pkgver=3D20161029
+_soname=3D0.0.0
+pkgrel=3D0
+pkgdesc=3D"The password hash Argon2, winner of PHC"
+url=3D"https://github.com/P-H-C/phc-winner-argo= n2"
+arch=3D"all"
+license=3D"ASL 2.0 CC0 1.0"
+subpackages=3D"$pkgname-dev libargon2"
+source=3D"$pkgname-$pkgver.tar.gz::https://github.com/P-H-C/$_pkgname/archive/$pkgver.tar.gz&= quot;
+builddir=3D"$srcdir/$_pkgname-$pkgver"
+
+build() {
+=C2=A0 =C2=A0 cd "$builddir"
+=C2=A0 =C2=A0 make && make test
+}
+
+package() {
+=C2=A0 =C2=A0 cd "$builddir"
+=C2=A0 =C2=A0 make DESTDIR=3D"$pkgdir" install || return 1
+
+=C2=A0 =C2=A0 # A version number is not appended to the shared library fil= e by default, so we do it ourselves
+=C2=A0 =C2=A0 mv "$pkgdir"/usr/lib/libargon2.so "$pkgdir&qu= ot;/usr/lib/libargon2.so.$_soname || return 1
+=C2=A0 =C2=A0 ln -s libargon2.so.$_soname "$pkgdir"/usr/lib/liba= rgon2.so || return 1
+=C2=A0 =C2=A0 =C2=A0 =C2=A0ln -s libargon2.so.$_soname "$pkgdir"= /usr/lib/libargon2.so.${_soname%%.*} || return 1
+}
+
+libargon2() {
+=C2=A0 =C2=A0 pkgdesc=3D"The password hash Argon2 library, winner of = PHC"
+=C2=A0 =C2=A0 mkdir -p "$subpkgdir"/usr
+=C2=A0 =C2=A0 mv "$pkgdir"/usr/lib "$subpkgdir"/usr +}
+md5sums=3D"bd3476cb8eac9d521a4e0e04d653f5a8=C2=A0 argon2-20= 161029.tar.gz"
+sha256sums=3D"fe0049728b946b58b94cc6db89b34e2d050c62325d163= 16a534d2bedd78cd5e7=C2=A0 argon2-20161029.tar.gz"
+sha512sums=3D"e1f947a97e8b5f292dd32a6f1ea0ef3f2e41162921865= 3821886ec4e1d5f8289d5b8f4b8bf0a37e69c344a83b975c695947d6b49fd2001= a0e4273bebd4792892=C2=A0 argon2-20161029.tar.gz"
--
2.9.3


--001a1143bd74cb05ea054563a9e6-- --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---