From 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 14 Jul 2018 21:03:06 +0100 Subject: gentoo resync : 14.07.2018 --- dev-lua/luasec/Manifest | 6 +++ dev-lua/luasec/files/luasec-0.5.1-compdefine.patch | 36 ++++++++++++++++++ dev-lua/luasec/luasec-0.5.1.ebuild | 39 ++++++++++++++++++++ dev-lua/luasec/luasec-0.6.ebuild | 43 ++++++++++++++++++++++ dev-lua/luasec/metadata.xml | 10 +++++ 5 files changed, 134 insertions(+) create mode 100644 dev-lua/luasec/Manifest create mode 100644 dev-lua/luasec/files/luasec-0.5.1-compdefine.patch create mode 100644 dev-lua/luasec/luasec-0.5.1.ebuild create mode 100644 dev-lua/luasec/luasec-0.6.ebuild create mode 100644 dev-lua/luasec/metadata.xml (limited to 'dev-lua/luasec') diff --git a/dev-lua/luasec/Manifest b/dev-lua/luasec/Manifest new file mode 100644 index 000000000000..166588550244 --- /dev/null +++ b/dev-lua/luasec/Manifest @@ -0,0 +1,6 @@ +AUX luasec-0.5.1-compdefine.patch 854 BLAKE2B 56099515a5d743a71c01e50f7e45d3d59b1a7eae842b64d40364e976473b682b035555e8df30ed7946ba1927d6b79555e15b886c49fe471f3facb248ec4e149f SHA512 b5b406ca48f505a840e99731eda9d2f8f5b6651f6ba196e47ee2a449b1e94bd390b6fc8eadce40e9ddefed52fc939bdfaac3a634db302f9e09e01672e3161d72 +DIST luasec-0.5.1.tar.gz 46820 BLAKE2B 3b3d33c59c6817a810bb4ab5968657e29d123d5496e9ba28f03636ce389b99fb1e7724d9f2531fc651c86c8252a08973e76ae65ee5ab551cfe4d450519982053 SHA512 c7c92c79d0ec3e12b69f88d810a19397eaf570957d1f13b9695ee435cb6f0f9c31f5bc20a7252aac93d18eed98a5d3fc8a181cd85845a704e469055f215609a8 +DIST luasec-0.6.tar.gz 51071 BLAKE2B d10761399e074eaa657abad2788936296a6fd33db64291663e385b21fc4a4a19ff96fe1a88db9805a3794406f08c597a03c048cfc8675949baf9eaa9368b8b7f SHA512 f7004a329153d0126a3ea27b4986e9d83fb8f2de9c5c2f0c96427c50cc42e1252c69fd8cc69e2e8d423745d2dbfdb5a781b609938f7f502c7aedeb99fd0778cd +EBUILD luasec-0.5.1.ebuild 1081 BLAKE2B efb926c4f933bbddd415e583601f9b7cd8b33a6fcf377003b9390f02e853a26b937a540b97eb26969fc79ac12b96aeb929104fa7e91d882028bcd4f4fac33f71 SHA512 38eaacb4cbaa94f5549e0e6990fcc8c596428d30f901eb36b1f96bdf010a894983ad572d942d3692f131766dfb19ad99ebca289c043ddc4c1dc211ba5065b367 +EBUILD luasec-0.6.ebuild 1027 BLAKE2B d9aa030c4b22570fc58f43b1a2ccdb8efbf11d02913fe957dcb9ab65efc75f8a5909aade97b4bee5c5d3844321a28903dac4f38368eb8825869ffe28201fc2af SHA512 e8fb6764d9d480048edd2ae1ad68aa730e99c6f7b3839fd7f2dd2577bf162b194fca1093f9432657acbf5535c706b60a78cdaaf66884d30b1ee32ef09828d827 +MISC metadata.xml 311 BLAKE2B af896b539ce840176bc39318cd4fb37c32159103bca6ac35afa80b9aace5a2668a5cfda1c5b43862181ea4ad12673f2858d61b99c5f5bb7258061e4b8275eec8 SHA512 f309e681ac9e07c650fec4685d93a513764277ac6cb830ff1de36620ec4348cfe578776adecb18475bb1e32ba4d41ed4e6d15b74e20e8bb4e4c2450cb753aaf3 diff --git a/dev-lua/luasec/files/luasec-0.5.1-compdefine.patch b/dev-lua/luasec/files/luasec-0.5.1-compdefine.patch new file mode 100644 index 000000000000..951b6fb11dbf --- /dev/null +++ b/dev-lua/luasec/files/luasec-0.5.1-compdefine.patch @@ -0,0 +1,36 @@ +diff -ru luasec-0.5.1/src/ssl.c luasec-0.5.1-fixed/src/ssl.c +--- luasec-0.5.1/src/ssl.c 2015-11-20 22:39:32.000000000 +0100 ++++ luasec-0.5.1-fixed/src/ssl.c 2016-03-02 15:48:09.439005988 +0100 +@@ -395,24 +395,30 @@ + } + return 1; + } +- ++ + /** + * Return the compression method used. + */ + static int meth_compression(lua_State *L) + { ++#if !defined(OPENSSL_NO_COMP) + const COMP_METHOD *comp; ++#endif + p_ssl ssl = (p_ssl)luaL_checkudata(L, 1, "SSL:Connection"); + if (ssl->state != LSEC_STATE_CONNECTED) { + lua_pushnil(L); + lua_pushstring(L, "closed"); + return 2; + } ++#if !defined(OPENSSL_NO_COMP) + comp = SSL_get_current_compression(ssl->ssl); + if (comp) + lua_pushstring(L, SSL_COMP_get_name(comp)); + else + lua_pushnil(L); ++#else ++ lua_pushnil(L); ++#endif + return 1; + } + +Only in luasec-0.5.1-fixed/src: ssl.c.orig diff --git a/dev-lua/luasec/luasec-0.5.1.ebuild b/dev-lua/luasec/luasec-0.5.1.ebuild new file mode 100644 index 000000000000..f8cdd3945dd0 --- /dev/null +++ b/dev-lua/luasec/luasec-0.5.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit multilib toolchain-funcs eutils + +DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication" +HOMEPAGE="https://github.com/brunoos/luasec http://www.inf.puc-rio.br/~brunoos/luasec/" +SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm x86" +IUSE="libressl" + +RDEPEND=" + >=dev-lang/lua-5.1:0[deprecated] + dev-lua/luasocket + !libressl? ( dev-libs/openssl:0 ) libressl? ( dev-libs/libressl:= )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN}-${P} + +src_prepare() { + sed -i -e "s#^LUAPATH.*#LUAPATH=$(pkg-config --variable INSTALL_LMOD lua)#"\ + -e "s#^LUACPATH.*#LUACPATH=$(pkg-config --variable INSTALL_CMOD lua)#" Makefile || die + sed -i -e "s/-O2//" src/Makefile || die + lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.h || die + epatch "${FILESDIR}/${PN}-0.5.1-compdefine.patch" +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + linux +} diff --git a/dev-lua/luasec/luasec-0.6.ebuild b/dev-lua/luasec/luasec-0.6.ebuild new file mode 100644 index 000000000000..40f367fc02d4 --- /dev/null +++ b/dev-lua/luasec/luasec-0.6.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit multilib toolchain-funcs eutils + +DESCRIPTION="Lua binding for OpenSSL library to provide TLS/SSL communication" +HOMEPAGE="https://github.com/brunoos/luasec http://www.inf.puc-rio.br/~brunoos/luasec/" +SRC_URI="https://github.com/brunoos/luasec/archive/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" +IUSE="libressl" + +RDEPEND=" + >=dev-lang/lua-5.1:0[deprecated] + dev-lua/luasocket + !libressl? ( dev-libs/openssl:0 ) libressl? ( dev-libs/libressl:= )" +DEPEND="${RDEPEND} + virtual/pkgconfig" + +S=${WORKDIR}/${PN}-${P} + +src_prepare() { + sed -i -e "s/-O2//" src/Makefile || die + lua src/options.lua -g /usr/include/openssl/ssl.h > src/options.h || die +} + +src_compile() { + emake \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC)" \ + linux +} + +src_install() { + emake \ + LUAPATH="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \ + LUACPATH="${D}/$(pkg-config --variable INSTALL_CMOD lua)" \ + install +} diff --git a/dev-lua/luasec/metadata.xml b/dev-lua/luasec/metadata.xml new file mode 100644 index 000000000000..7d74356af05a --- /dev/null +++ b/dev-lua/luasec/metadata.xml @@ -0,0 +1,10 @@ + + + + + rafaelmartins@gentoo.org + + + brunoos/luasec + + -- cgit v1.2.3