X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 4EC93DC0089 for ; Thu, 1 Jan 2015 00:45:57 +0000 (UTC) Received: by mail-pd0-f172.google.com with SMTP id y13so21751273pdi.3 for ; Wed, 31 Dec 2014 16:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:references:from:content-type:in-reply-to:message-id:date:to :content-transfer-encoding:mime-version; bh=3frDAgSI3gbV2CDSvsXLRkWSCnqX5AUWCQ9YYdq3D8s=; b=xMpEjYoYuvHQstwzyNA5+og+yydnk5a4PXx68h8L5jpdluddRecPku6mhvvocZqISH JliMZXCKK4igbnsWptqNZ3Q9yKjVO34xz+BoFkip/f41nwc3jDijaelI/MS2vlXKAIxc yosHeWPAM4r+tgGPWewljlGT/XSV88dLnKzZ+Fwcypnd71nif5oMrDuhWiKUCGNDzmsF ZeBcSNbzJZn7Omsx0y1tYFmxzRgEhpY2o0zwGsWDwUlVwOqIdP548i2YBMvUzRBkGtu4 EsGbSal1upnZuspWz+vL9Pry5kPVv7EJ8qwdnK95fOY5ntXM7q3y6ca4BgVxJry092Id iVZQ== X-Received: by 10.70.128.80 with SMTP id nm16mr111415846pdb.1.1420073156225; Wed, 31 Dec 2014 16:45:56 -0800 (PST) Received: from [10.228.173.188] ([166.170.51.160]) by mx.google.com with ESMTPSA id v4sm42289987pdc.61.2014.12.31.16.45.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 31 Dec 2014 16:45:55 -0800 (PST) Subject: [alpine-aports] Re: [PATCH] testing/libressl: new aport References: <1420061501-23229-1-git-send-email-systmkor@gmail.com> From: Orion Content-Type: text/plain; charset=us-ascii X-Mailer: iPhone Mail (12B440) In-Reply-To: <1420061501-23229-1-git-send-email-systmkor@gmail.com> Message-Id: <9AB46CF1-1A9B-4B6B-A741-BAE6B578F811@gmail.com> Date: Wed, 31 Dec 2014 16:45:53 -0800 To: "alpine-aports@lists.alpinelinux.org" Content-Transfer-Encoding: quoted-printable X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Mime-Version: 1.0 (1.0) So sorry. I forgot to put in the proper dependencies. I'll fix that tomorrow= afternoon. Sent from my iPhone > On Dec 31, 2014, at 13:31, systmkor wrote: >=20 > SSL/TLS protocol forked from OpenSSL by the OpenBSD community. This is > the Portable Edition. > http://www.libressl.org/ > --- > testing/libressl/APKBUILD | 59 ++++++++++++++++++++++= ++++ > testing/libressl/libressl-dummy-rand-egd.patch | 29 +++++++++++++ > 2 files changed, 88 insertions(+) > create mode 100644 testing/libressl/APKBUILD > create mode 100644 testing/libressl/libressl-dummy-rand-egd.patch >=20 > diff --git a/testing/libressl/APKBUILD b/testing/libressl/APKBUILD > new file mode 100644 > index 0000000..c632b5c > --- /dev/null > +++ b/testing/libressl/APKBUILD > @@ -0,0 +1,59 @@ > +# Contributor: Orion > +# Maintainer: Orion > +# Reference Material > +# https://aur.archlinux.org/packages/li/libressl/PKGBUILD > +# Note > +# I don't know if the libressl-dummy-rand-egd.patch is needed > + > +pkgname=3Dlibressl > +pkgver=3D2.1.2 > +pkgrel=3D0 > +pkgdesc=3D"FREE version of the SSL/TLS protocol forked from OpenSSL - Por= table edition" > +url=3D"http://www.libressl.org/" > +arch=3D"x86 x86_64" > +license=3D"custom:OpenSSL" > +depends=3D"" > +depends_dev=3D"" > +makedepends=3D"$depends_dev" > +install=3D"" > +subpackages=3D"$pkgname-dev $pkgname-doc" > +source=3D"http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$pkgver.ta= r.gz" > + > +_builddir=3D"$srcdir/$pkgname-$pkgver" > +prepare() { > + local i > + cd "$_builddir" > + for i in $source; do > + case $i in > + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; > + esac > + done > +} > + > +build() { > + cd "$_builddir" > + ./configure \ > + --build=3D$CBUILD \ > + --host=3D$CHOST \ > + --prefix=3D/usr \ > + --sysconfdir=3D/etc \ > + --mandir=3D/usr/share/man \ > + --infodir=3D/usr/share/info \ > + --localstatedir=3D/var \ > + || return 1 > + make || return 1 > + make check > +} > + > +package() { > + cd "$_builddir" > + make DESTDIR=3D"$pkgdir" install || return 1 > + rm -f "$pkgdir"/usr/lib/*.la > + rename ".1" ".lssl" "$pkgdir"/usr/share/man/man1/* > + rename ".3" ".3ssl" "$pkgdir"/usr/share/man/man3/* > + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING > +} > + > +md5sums=3D"c979a977e3b54fbecfa762c74a631bc3 libressl-2.1.2.tar.gz" > +sha256sums=3D"07c05f12e5d49dbfcf82dd23b6b4877b7cdb1c8e4c8dd27cb4d9e5758a6= caf52 libressl-2.1.2.tar.gz" > +sha512sums=3D"3c6f5165d7ab65e792fb065219723030aa84c7aa31b1a5712398dfaf047= 47c3dffaf11a4e864892b86433b3707e5007e309fb75a455652787c6ea2b3034de081 libre= ssl-2.1.2.tar.gz" > diff --git a/testing/libressl/libressl-dummy-rand-egd.patch b/testing/libr= essl/libressl-dummy-rand-egd.patch > new file mode 100644 > index 0000000..42ad5f8 > --- /dev/null > +++ b/testing/libressl/libressl-dummy-rand-egd.patch > @@ -0,0 +1,29 @@ > +--- libressl-2.0.0/crypto/rand/rand_lib.c 2014-07-11 19:41:26.00000000= 0 +0200 > ++++ libressl-2.0.0/crypto/rand/rand_lib.c 2014-07-12 00:16:22.58371340= 0 +0200 > +@@ -98,3 +98,15 @@ > + arc4random_buf(buf, num); > + return 1; > + } > ++ > ++int > ++RAND_egd(const char *path) > ++{ > ++ return -1; > ++} > ++ > ++int > ++RAND_egd_bytes(const char *path, int bytes) > ++{ > ++ return -1; > ++} > +--- libressl-2.0.0/include/openssl/rand.h 2014-07-11 19:41:25.00000000= 0 +0200 > ++++ libressl-2.0.0/include/openssl/rand.h 2014-07-12 00:08:44.89343531= 5 +0200 > +@@ -96,6 +96,8 @@ > + int RAND_write_file(const char *file); > + const char *RAND_file_name(char *file, size_t num); > + int RAND_status(void); > ++int RAND_egd(const char *path); > ++int RAND_egd_bytes(const char *path,int bytes); > + int RAND_poll(void); > +=20 > + /* BEGIN ERROR CODES */ > --=20 > 2.2.1 >=20 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---