parent
9a8087d63b
commit
1342b92f6f
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1 @@
|
|||||||
|
DIST JohnTheRipper-1.8.0-jumbo-1.tar.gz 32533148 BLAKE2B 15929fa25314438619899582b209bee6902b1e53dc2df39ed6a686820665fd4d8e56d26b3f0082d05dc6be2f54add3526570d936c0a929641e33e6dcfb7a13b5 SHA512 8b7fad7a6330b5ff1afc306218ba698aaa27776b566f82c2e76102d5ceb10aeafa69d71fa6fff67c81996ea2c6a04384bab4696ed192306c6d074873562e7089
|
@ -0,0 +1,63 @@
|
|||||||
|
From e2e868db3e153b3f959e119a51703d4afb99c624 Mon Sep 17 00:00:00 2001
|
||||||
|
From: magnum <john.magnum@hushmail.com>
|
||||||
|
Date: Wed, 13 May 2015 12:05:00 +0200
|
||||||
|
Subject: [PATCH] Add another solution to #1093. This make it possible to build
|
||||||
|
using gcc 5 without --std=gnu89 (although I kept the latter for now). See
|
||||||
|
also #1250.
|
||||||
|
|
||||||
|
---
|
||||||
|
src/DES_bs_b.c | 3 +++
|
||||||
|
src/MD5_std.c | 12 ++++++++++++
|
||||||
|
2 files changed, 15 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/DES_bs_b.c b/src/DES_bs_b.c
|
||||||
|
index 306b4e4..18c9235 100644
|
||||||
|
--- a/src/DES_bs_b.c
|
||||||
|
+++ b/src/DES_bs_b.c
|
||||||
|
@@ -1272,6 +1272,9 @@ static MAYBE_INLINE void DES_bs_finalize_keys(void)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if DES_bs_mt
|
||||||
|
+#if __GNUC__ >= 5
|
||||||
|
+extern
|
||||||
|
+#endif
|
||||||
|
MAYBE_INLINE void DES_bs_set_salt_for_thread(int t, unsigned int salt)
|
||||||
|
#else
|
||||||
|
void DES_bs_set_salt(ARCH_WORD salt)
|
||||||
|
diff --git a/src/MD5_std.c b/src/MD5_std.c
|
||||||
|
index 6bdcd35..1eec9b4 100644
|
||||||
|
--- a/src/MD5_std.c
|
||||||
|
+++ b/src/MD5_std.c
|
||||||
|
@@ -496,9 +496,15 @@ extern void MD5_body(MD5_word x[15], MD5_word out[4]);
|
||||||
|
#if MD5_std_mt
|
||||||
|
#define MD5_body(x, out) \
|
||||||
|
MD5_body_for_thread(t, x, out)
|
||||||
|
+#if __GNUC__ >= 5
|
||||||
|
+extern
|
||||||
|
+#endif
|
||||||
|
MAYBE_INLINE_BODY void MD5_body_for_thread(int t,
|
||||||
|
MD5_word x[15], MD5_word out[4])
|
||||||
|
#else
|
||||||
|
+#if __GNUC__ >= 5
|
||||||
|
+extern
|
||||||
|
+#endif
|
||||||
|
MAYBE_INLINE_BODY void MD5_body(MD5_word x[15], MD5_word out[4])
|
||||||
|
#endif
|
||||||
|
{
|
||||||
|
@@ -595,10 +601,16 @@ MAYBE_INLINE_BODY void MD5_body(MD5_word x[15], MD5_word out[4])
|
||||||
|
#if MD5_std_mt
|
||||||
|
#define MD5_body(x0, x1, out0, out1) \
|
||||||
|
MD5_body_for_thread(t, x0, x1, out0, out1)
|
||||||
|
+#if __GNUC__ >= 5
|
||||||
|
+extern
|
||||||
|
+#endif
|
||||||
|
MAYBE_INLINE_BODY void MD5_body_for_thread(int t,
|
||||||
|
MD5_word x0[15], MD5_word x1[15],
|
||||||
|
MD5_word out0[4], MD5_word out1[4])
|
||||||
|
#else
|
||||||
|
+#if __GNUC__ >= 5
|
||||||
|
+extern
|
||||||
|
+#endif
|
||||||
|
MAYBE_INLINE_BODY void MD5_body(MD5_word x0[15], MD5_word x1[15],
|
||||||
|
MD5_word out0[4], MD5_word out1[4])
|
||||||
|
#endif
|
@ -0,0 +1,126 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit flag-o-matic toolchain-funcs pax-utils
|
||||||
|
|
||||||
|
DESCRIPTION="fast password cracker"
|
||||||
|
HOMEPAGE="http://www.openwall.com/john/"
|
||||||
|
|
||||||
|
MY_PN="JohnTheRipper"
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="https://github.com/magnumripper/${MY_PN}.git"
|
||||||
|
inherit git-r3
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
JUMBO="jumbo-1"
|
||||||
|
MY_PV="${PV}-${JUMBO}"
|
||||||
|
MY_P="${MY_PN}-${MY_PV}"
|
||||||
|
SRC_URI="https://github.com/magnumripper/${MY_PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
#removed rexgen and commoncrypto
|
||||||
|
IUSE="custom-cflags kerberos mpi opencl openmp pcap"
|
||||||
|
|
||||||
|
DEPEND=">=dev-libs/openssl-1.0.1:0
|
||||||
|
mpi? ( virtual/mpi )
|
||||||
|
opencl? ( virtual/opencl )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
pcap? ( net-libs/libpcap )
|
||||||
|
dev-libs/gmp:*
|
||||||
|
sys-libs/zlib
|
||||||
|
app-arch/bzip2"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
!app-crypt/johntheripper"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
|
||||||
|
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply "${FILESDIR}/${PV}-gcc5.patch"
|
||||||
|
sed -i 's#/usr/share/john#/etc/john#' src/params.h || die
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
cd src || die
|
||||||
|
|
||||||
|
use custom-cflags || strip-flags
|
||||||
|
|
||||||
|
# John ignores CPPFLAGS, use CFLAGS instead
|
||||||
|
append-cflags -DJOHN_SYSTEMWIDE=1
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--disable-native-macro \
|
||||||
|
--disable-native-tests \
|
||||||
|
--without-commoncrypto \
|
||||||
|
--disable-rexgen \
|
||||||
|
--with-openssl \
|
||||||
|
$(use_enable mpi) \
|
||||||
|
$(use_enable opencl) \
|
||||||
|
$(use_enable openmp) \
|
||||||
|
$(use_enable pcap)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -C src
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
pax-mark -mr run/john
|
||||||
|
#if use opencl; then
|
||||||
|
#gpu tests fail in portage, so run cpu only tests
|
||||||
|
# ./run/john --device=cpu --test=0 --verbosity=2 || die
|
||||||
|
#else
|
||||||
|
#weak tests
|
||||||
|
# ./run/john --test=0 --verbosity=2 || die
|
||||||
|
#strong tests
|
||||||
|
#./run/john --test=1 --verbosity=2 || die
|
||||||
|
#fi
|
||||||
|
ewarn "When built systemwide, john can't run tests without reading files in /etc."
|
||||||
|
ewarn "Don't bother opening a bug for this unless you include a patch to fix it"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# executables
|
||||||
|
dosbin run/john
|
||||||
|
newsbin run/mailer john-mailer
|
||||||
|
|
||||||
|
pax-mark -mr "${ED}usr/sbin/john"
|
||||||
|
|
||||||
|
# grep '$(LN)' Makefile.in | head -n-3 | tail -n+2 | cut -d' ' -f3 | cut -d/ -f3
|
||||||
|
for s in \
|
||||||
|
unshadow unafs undrop unique ssh2john putty2john pfx2john keepass2john keyring2john \
|
||||||
|
zip2john gpg2john rar2john racf2john keychain2john kwallet2john pwsafe2john dmg2john \
|
||||||
|
hccap2john base64conv truecrypt_volume2john keystore2john
|
||||||
|
do
|
||||||
|
dosym john /usr/sbin/$s
|
||||||
|
done
|
||||||
|
|
||||||
|
insinto /usr/share/john
|
||||||
|
doins run/*.py
|
||||||
|
|
||||||
|
if use opencl; then
|
||||||
|
insinto /usr/share/john/kernels
|
||||||
|
doins run/kernels/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
# config files
|
||||||
|
insinto /etc/john
|
||||||
|
doins run/*.chr run/password.lst
|
||||||
|
doins run/*.conf
|
||||||
|
doins -r run/kernels
|
||||||
|
|
||||||
|
# documentation
|
||||||
|
dodoc doc/*
|
||||||
|
}
|
@ -0,0 +1,123 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit flag-o-matic toolchain-funcs pax-utils
|
||||||
|
|
||||||
|
DESCRIPTION="fast password cracker"
|
||||||
|
HOMEPAGE="http://www.openwall.com/john/"
|
||||||
|
|
||||||
|
MY_PN="JohnTheRipper"
|
||||||
|
|
||||||
|
if [[ ${PV} == "9999" ]] ; then
|
||||||
|
EGIT_REPO_URI="https://github.com/magnumripper/${MY_PN}.git"
|
||||||
|
inherit git-r3
|
||||||
|
KEYWORDS=""
|
||||||
|
else
|
||||||
|
JUMBO="jumbo-1"
|
||||||
|
MY_PV="${PV}-${JUMBO}"
|
||||||
|
MY_P="${MY_PN}-${MY_PV}"
|
||||||
|
SRC_URI="https://github.com/magnumripper/${MY_PN}/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
#removed rexgen and commoncrypto
|
||||||
|
IUSE="custom-cflags kerberos mpi opencl openmp pcap"
|
||||||
|
|
||||||
|
DEPEND=">=dev-libs/openssl-1.0.1:0
|
||||||
|
mpi? ( virtual/mpi )
|
||||||
|
opencl? ( virtual/opencl )
|
||||||
|
kerberos? ( virtual/krb5 )
|
||||||
|
pcap? ( net-libs/libpcap )
|
||||||
|
dev-libs/gmp:*
|
||||||
|
sys-libs/zlib
|
||||||
|
app-arch/bzip2"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}
|
||||||
|
!app-crypt/johntheripper"
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
|
||||||
|
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
sed -i 's#$prefix/share/john#/etc/john#' src/configure || die
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
cd src || die
|
||||||
|
|
||||||
|
use custom-cflags || strip-flags
|
||||||
|
|
||||||
|
econf \
|
||||||
|
--disable-native-march \
|
||||||
|
--disable-native-tests \
|
||||||
|
--without-commoncrypto \
|
||||||
|
--disable-rexgen \
|
||||||
|
--with-openssl \
|
||||||
|
--with-systemwide \
|
||||||
|
$(use_enable mpi) \
|
||||||
|
$(use_enable opencl) \
|
||||||
|
$(use_enable openmp) \
|
||||||
|
$(use_enable pcap)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake -C src
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
pax-mark -mr run/john
|
||||||
|
#if use opencl; then
|
||||||
|
#gpu tests fail in portage, so run cpu only tests
|
||||||
|
# ./run/john --device=cpu --test=0 --verbosity=2 || die
|
||||||
|
#else
|
||||||
|
#weak tests
|
||||||
|
# ./run/john --test=0 --verbosity=2 || die
|
||||||
|
#strong tests
|
||||||
|
#./run/john --test=1 --verbosity=2 || die
|
||||||
|
#fi
|
||||||
|
ewarn "When built systemwide, john can't run tests without reading files in /etc."
|
||||||
|
ewarn "Don't bother opening a bug for this unless you include a patch to fix it"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# executables
|
||||||
|
dosbin run/john
|
||||||
|
newsbin run/mailer john-mailer
|
||||||
|
|
||||||
|
pax-mark -mr "${ED}usr/sbin/john"
|
||||||
|
|
||||||
|
# grep '$(LN)' Makefile.in | head -n-3 | tail -n+2 | cut -d' ' -f3 | cut -d/ -f3
|
||||||
|
for s in \
|
||||||
|
unshadow unafs undrop unique ssh2john putty2john pfx2john keepass2john keyring2john \
|
||||||
|
zip2john gpg2john rar2john racf2john keychain2john kwallet2john pwsafe2john dmg2john \
|
||||||
|
hccap2john base64conv truecrypt_volume2john keystore2john
|
||||||
|
do
|
||||||
|
dosym john /usr/sbin/$s
|
||||||
|
done
|
||||||
|
|
||||||
|
insinto /usr/share/john
|
||||||
|
doins run/*.py
|
||||||
|
|
||||||
|
if use opencl; then
|
||||||
|
insinto /usr/share/john/kernels
|
||||||
|
doins run/kernels/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
# config files
|
||||||
|
insinto /etc/john
|
||||||
|
doins run/*.chr run/password.lst
|
||||||
|
doins run/*.conf
|
||||||
|
doins -r run/rules run/kernels run/ztex
|
||||||
|
|
||||||
|
# documentation
|
||||||
|
dodoc doc/*
|
||||||
|
}
|
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>zerochaos@gentoo.org</email>
|
||||||
|
<name>Rick Farina</name>
|
||||||
|
</maintainer>
|
||||||
|
<maintainer type="project">
|
||||||
|
<email>crypto@gentoo.org</email>
|
||||||
|
<name>Crypto</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">magnumripper/JohnTheRipper</remote-id>
|
||||||
|
</upstream>
|
||||||
|
<use>
|
||||||
|
<flag name="opencl">Build with opencl/GPU cracking support</flag>
|
||||||
|
<flag name="pcap">Build with pcap support</flag>
|
||||||
|
</use>
|
||||||
|
</pkgmetadata>
|
@ -1,2 +1,3 @@
|
|||||||
DIST john-1.7.9-jumbo-7.diff.gz 1074044 BLAKE2B beb2b3777bccd68ba510b75575cc12678f38bcebd08a8c6d91a291d14b2a3e404013ade5d68610bc9d4a2e26a6a00db8c8757bd4fbcb64bd20cde28a6abde9f4 SHA512 07a461df199fc776e8f62e969a95762fc1c99b72cdbd4a83d06f05ed236eaac9a918356ec9b8f8d060d1a9b2b8aa5c4021dfe53382761a5a76269ec66a5bd28a
|
DIST john-1.7.9-jumbo-7.diff.gz 1074044 BLAKE2B beb2b3777bccd68ba510b75575cc12678f38bcebd08a8c6d91a291d14b2a3e404013ade5d68610bc9d4a2e26a6a00db8c8757bd4fbcb64bd20cde28a6abde9f4 SHA512 07a461df199fc776e8f62e969a95762fc1c99b72cdbd4a83d06f05ed236eaac9a918356ec9b8f8d060d1a9b2b8aa5c4021dfe53382761a5a76269ec66a5bd28a
|
||||||
DIST john-1.7.9.tar.bz2 717505 BLAKE2B ea720451b4544a975d5baca75242f22d8b306ad4101f5774dd80b0855410efae7d7e09d6c43bd6e89aac7346ea686ccc5a1bfedc8c89888a39a49941774759a9 SHA512 121b4aa6fbb62b14db366aed739d7db760c136a4c3a39d8bba32bde269350354b3d18d15ee783f61b17913b0dd6773068cb01b3d3bbad290c309ae1cd027568b
|
DIST john-1.7.9.tar.bz2 717505 BLAKE2B ea720451b4544a975d5baca75242f22d8b306ad4101f5774dd80b0855410efae7d7e09d6c43bd6e89aac7346ea686ccc5a1bfedc8c89888a39a49941774759a9 SHA512 121b4aa6fbb62b14db366aed739d7db760c136a4c3a39d8bba32bde269350354b3d18d15ee783f61b17913b0dd6773068cb01b3d3bbad290c309ae1cd027568b
|
||||||
|
DIST john-1.8.0.tar.xz 4468704 BLAKE2B 90d6acc03dc8d22ef869320723e4799e64e15b621cde327ad420595889a43242b182079fd306bb7741b766ddc5e1239e3bdd4f4e396a4ab1e86d635cbebf8f60 SHA512 e2820ecabd7ea4c7404c3d40f064994d0f5746b093c859a58fbf2588492ebcef411d9f3088c8e8ee726284ead969e26fdae834cdae3eb2d32408fc79ed906543
|
||||||
|
@ -1,268 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="5"
|
|
||||||
|
|
||||||
inherit cuda eutils flag-o-matic toolchain-funcs pax-utils multilib
|
|
||||||
|
|
||||||
MY_PN="john"
|
|
||||||
MY_P="${MY_PN}-${PV}"
|
|
||||||
|
|
||||||
JUMBO="jumbo-7"
|
|
||||||
|
|
||||||
DESCRIPTION="fast password cracker"
|
|
||||||
HOMEPAGE="https://www.openwall.com/john/"
|
|
||||||
|
|
||||||
SRC_URI="https://www.openwall.com/john/g/${MY_P}.tar.bz2
|
|
||||||
!minimal? ( https://www.openwall.com/john/g/${MY_P}-${JUMBO}.diff.gz )"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
|
||||||
#Remove AltiVec USE flag. Appears to be an upstream issue.
|
|
||||||
IUSE="cuda custom-cflags -minimal cpu_flags_x86_mmx libressl mozilla mpi opencl openmp cpu_flags_x86_sse2"
|
|
||||||
REQUIRED_USE="openmp? ( !minimal )
|
|
||||||
mpi? ( !minimal )
|
|
||||||
cuda? ( !minimal )
|
|
||||||
opencl? ( !minimal )
|
|
||||||
mozilla? ( !minimal )"
|
|
||||||
|
|
||||||
DEPEND="sys-libs/zlib
|
|
||||||
!minimal? (
|
|
||||||
!libressl? ( dev-libs/openssl:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )
|
|
||||||
)
|
|
||||||
mpi? ( virtual/mpi )
|
|
||||||
cuda? ( x11-drivers/nvidia-drivers
|
|
||||||
dev-util/nvidia-cuda-toolkit:= )
|
|
||||||
opencl? ( virtual/opencl )
|
|
||||||
mozilla? ( dev-libs/nss dev-libs/nspr )"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
|
|
||||||
S="${WORKDIR}/${MY_P}"
|
|
||||||
|
|
||||||
has_xop() {
|
|
||||||
echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __XOP__ 1"
|
|
||||||
}
|
|
||||||
|
|
||||||
has_avx() {
|
|
||||||
echo | $(tc-getCC) ${CFLAGS} -E -dM - | grep -q "#define __AVX__ 1"
|
|
||||||
}
|
|
||||||
|
|
||||||
get_target() {
|
|
||||||
if use alpha; then
|
|
||||||
echo "linux-alpha"
|
|
||||||
elif use amd64; then
|
|
||||||
if has_xop; then
|
|
||||||
echo "linux-x86-64-xop"
|
|
||||||
elif has_avx; then
|
|
||||||
echo "linux-x86-64-avx"
|
|
||||||
else
|
|
||||||
echo "linux-x86-64"
|
|
||||||
fi
|
|
||||||
elif use ppc; then
|
|
||||||
#if use altivec; then
|
|
||||||
# echo "linux-ppc32-altivec"
|
|
||||||
#else
|
|
||||||
echo "linux-ppc32"
|
|
||||||
#fi
|
|
||||||
elif use ppc64; then
|
|
||||||
#if use altivec; then
|
|
||||||
# echo "linux-ppc32-altivec"
|
|
||||||
#else
|
|
||||||
echo "linux-ppc64"
|
|
||||||
#fi
|
|
||||||
# linux-ppc64-altivec is slightly slower than linux-ppc32-altivec for most hash types.
|
|
||||||
# as per the Makefile comments
|
|
||||||
elif use sparc; then
|
|
||||||
echo "linux-sparc"
|
|
||||||
elif use x86; then
|
|
||||||
if has_xop; then
|
|
||||||
echo "linux-x86-xop"
|
|
||||||
elif has_avx; then
|
|
||||||
echo "linux-x86-avx"
|
|
||||||
elif use cpu_flags_x86_sse2; then
|
|
||||||
echo "linux-x86-sse2"
|
|
||||||
elif use cpu_flags_x86_mmx; then
|
|
||||||
echo "linux-x86-mmx"
|
|
||||||
else
|
|
||||||
echo "linux-x86-any"
|
|
||||||
fi
|
|
||||||
elif use ppc-macos; then
|
|
||||||
# force AltiVec, the non-altivec profile contains ancient compiler cruft
|
|
||||||
# if use altivec; then
|
|
||||||
echo "macosx-ppc32-altivec"
|
|
||||||
# else
|
|
||||||
# echo "macosx-ppc32"
|
|
||||||
# fi
|
|
||||||
# for Tiger this can be macosx-ppc64
|
|
||||||
elif use x86-macos; then
|
|
||||||
if use cpu_flags_x86_sse2; then
|
|
||||||
echo "macosx-x86-sse2"
|
|
||||||
else
|
|
||||||
echo "macosx-x86"
|
|
||||||
fi
|
|
||||||
elif use x86-solaris; then
|
|
||||||
echo "solaris-x86-any"
|
|
||||||
elif use x86-fbsd; then
|
|
||||||
if use cpu_flags_x86_sse2; then
|
|
||||||
echo "freebsd-x86-sse2"
|
|
||||||
elif use cpu_flags_x86_mmx; then
|
|
||||||
echo "freebsd-x86-mmx"
|
|
||||||
else
|
|
||||||
echo "freebsd-x86-any"
|
|
||||||
fi
|
|
||||||
elif use amd64-fbsd; then
|
|
||||||
echo "freebsd-x86-64"
|
|
||||||
else
|
|
||||||
echo "generic"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
get_john_objs() {
|
|
||||||
echo -n '${JOHN_COMMON_OBJS} '
|
|
||||||
if use opencl; then
|
|
||||||
echo -n '${OCL_OBJS} '
|
|
||||||
fi
|
|
||||||
if use cuda; then
|
|
||||||
echo -n '${CUDA_OBJS}'
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
|
|
||||||
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if ! use minimal; then
|
|
||||||
epatch "${WORKDIR}/${MY_P}-${JUMBO}.diff"
|
|
||||||
|
|
||||||
if use mpi ; then
|
|
||||||
sed -e "s/^#CC = mpicc/CC = mpicc/" \
|
|
||||||
-e "s/^#MPIOBJ =/MPIOBJ =/" \
|
|
||||||
-i src/Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fix typo in jumbo patch
|
|
||||||
sed -i 's:All15:All5:' run/john.conf || die
|
|
||||||
# fix compile on ppc (only needed for jumbo-7)
|
|
||||||
epatch "${FILESDIR}/${P}-ppc-compile-fix.patch"
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd src
|
|
||||||
epatch "${FILESDIR}/${PN}-1.7.6-cflags.patch"
|
|
||||||
epatch "${FILESDIR}/${PN}-1.7.3.1-mkdir-sandbox.patch"
|
|
||||||
|
|
||||||
if ! use minimal; then
|
|
||||||
sed -e "s/LDFLAGS *= */override LDFLAGS += /" -e "/LDFLAGS/s/-s//" \
|
|
||||||
-e "/LDFLAGS/s/-L[^ ]*//g" -e "/CFLAGS/s/-[IL][^ ]*//g" \
|
|
||||||
-i Makefile || die "sed Makefile failed"
|
|
||||||
sed -i 's#/usr/local#/opt#g' Makefile || die
|
|
||||||
fi
|
|
||||||
sed -i 's#JOHN_OBJS = \\#JOHN_COMMON_OBJS = \\#g' Makefile || die
|
|
||||||
|
|
||||||
if use cuda; then
|
|
||||||
cuda_src_prepare
|
|
||||||
sed \
|
|
||||||
-e "/^NVCC_FLAGS/s:-arch sm_10:${NVCCFLAGS}:g" \
|
|
||||||
-i Makefile || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use mozilla; then
|
|
||||||
sed -i -e '/HAVE_NSS =/s/^#*//' -e 's/NSS_override//' Makefile || die
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
local OMP
|
|
||||||
|
|
||||||
use custom-cflags || strip-flags
|
|
||||||
echo "#define JOHN_SYSTEMWIDE 1" >> config.gentoo
|
|
||||||
echo "#define JOHN_SYSTEMWIDE_HOME \"${EPREFIX}/etc/john\"" >> config.gentoo
|
|
||||||
echo "#define JOHN_SYSTEMWIDE_EXEC \"${EPREFIX}/usr/libexec/john\"" >> config.gentoo
|
|
||||||
append-flags -fPIC -fPIE
|
|
||||||
gcc-specs-pie && append-ldflags -nopie
|
|
||||||
use openmp && OMP="-fopenmp"
|
|
||||||
|
|
||||||
CPP="$(tc-getCXX)" CC="$(tc-getCC)" AS="$(tc-getCC)" LD="$(tc-getCC)"
|
|
||||||
if use mpi; then
|
|
||||||
CPP=mpicxx CC=mpicc AS=mpicc LD=mpicc
|
|
||||||
fi
|
|
||||||
|
|
||||||
#this stuff was all stolen from the Makefile, if build breaks, check this first
|
|
||||||
if use opencl; then
|
|
||||||
GPUCFLAGS="${GPUCFLAGS} -DCL_VERSION_1_0"
|
|
||||||
GPULDFLAGS="${GPULDFLAGS} -lOpenCL"
|
|
||||||
fi
|
|
||||||
if use cuda; then
|
|
||||||
GPUCFLAGS="${GPUCFLAGS} -DHAVE_CUDA"
|
|
||||||
GPULDFLAGS="${GPULDFLAGS} -L/opt/cuda/$(get_libdir) -lcudart"
|
|
||||||
fi
|
|
||||||
|
|
||||||
emake -C src/ \
|
|
||||||
CPP="${CPP}" CC="${CC}" AS="${AS}" LD="${LD}" \
|
|
||||||
CFLAGS="-c -Wall -include ../config.gentoo ${CFLAGS} ${OMP} ${GPUCFLAGS}" \
|
|
||||||
LDFLAGS="${LDFLAGS} ${GPULDFLAGS}" \
|
|
||||||
OPT_NORMAL="" \
|
|
||||||
OMPFLAGS="${OMP}" \
|
|
||||||
JOHN_OBJS="$(get_john_objs)" \
|
|
||||||
$(get_target)
|
|
||||||
}
|
|
||||||
|
|
||||||
src_test() {
|
|
||||||
if use opencl; then
|
|
||||||
cp src/opencl/*.cl run/
|
|
||||||
cp src/opencl_*.h run/
|
|
||||||
fi
|
|
||||||
pax-mark -mr run/john
|
|
||||||
if use opencl || use cuda; then
|
|
||||||
ewarn "GPU tests fail, skipping all tests..."
|
|
||||||
else
|
|
||||||
make -C src/ check
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
# executables
|
|
||||||
dosbin run/john
|
|
||||||
newsbin run/mailer john-mailer
|
|
||||||
|
|
||||||
pax-mark -mr "${ED}usr/sbin/john" || die
|
|
||||||
|
|
||||||
dosym john /usr/sbin/unafs
|
|
||||||
dosym john /usr/sbin/unique
|
|
||||||
dosym john /usr/sbin/unshadow
|
|
||||||
|
|
||||||
# jumbo-patch additions
|
|
||||||
if ! use minimal; then
|
|
||||||
for s in \
|
|
||||||
keychain2john keepass2john pwsafe2john hccap2john \
|
|
||||||
racf2john zip2john rar2john pdf2john ssh2john undrop \
|
|
||||||
; do
|
|
||||||
dosym john /usr/sbin/$s
|
|
||||||
done
|
|
||||||
use mozilla && dosym john /usr/sbin/mozilla2john
|
|
||||||
dosbin run/calc_stat
|
|
||||||
dosbin run/genmkvpwd
|
|
||||||
dosbin run/mkvcalcproba
|
|
||||||
dosbin run/raw2dyna
|
|
||||||
dosbin run/tgtsnarf
|
|
||||||
insinto /etc/john
|
|
||||||
doins run/genincstats.rb run/stats
|
|
||||||
doins run/netscreen.py run/sap2john.pl
|
|
||||||
if use opencl; then
|
|
||||||
doins src/opencl/*.cl
|
|
||||||
doins src/opencl_*.h
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# config files
|
|
||||||
insinto /etc/john
|
|
||||||
doins run/*.chr run/password.lst
|
|
||||||
doins run/*.conf
|
|
||||||
|
|
||||||
# documentation
|
|
||||||
dodoc doc/*
|
|
||||||
}
|
|
@ -0,0 +1,143 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit cuda eutils flag-o-matic toolchain-funcs multilib
|
||||||
|
|
||||||
|
MY_PN="john"
|
||||||
|
MY_P="${MY_PN}-${PV}"
|
||||||
|
|
||||||
|
DESCRIPTION="fast password cracker"
|
||||||
|
HOMEPAGE="https://www.openwall.com/john/"
|
||||||
|
|
||||||
|
SRC_URI="https://www.openwall.com/john/j/${MY_P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos"
|
||||||
|
CPU_FLAGS="cpu_flags_x86_mmx cpu_flags_x86_sse2 cpu_flags_x86_avx cpu_flags_x86_xop"
|
||||||
|
IUSE="custom-cflags openmp ${CPU_FLAGS}"
|
||||||
|
|
||||||
|
RDEPEND="sys-libs/zlib"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
!app-crypt/johntheripper-jumbo"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
get_target() {
|
||||||
|
if use alpha; then
|
||||||
|
echo "linux-alpha"
|
||||||
|
elif use amd64; then
|
||||||
|
if use cpu_flags_x86_xop; then
|
||||||
|
echo "linux-x86-64-xop"
|
||||||
|
elif use cpu_flags_x86_avx; then
|
||||||
|
echo "linux-x86-64-avx"
|
||||||
|
else
|
||||||
|
echo "linux-x86-64"
|
||||||
|
fi
|
||||||
|
elif use ppc; then
|
||||||
|
echo "linux-ppc32"
|
||||||
|
elif use ppc64; then
|
||||||
|
echo "linux-ppc64"
|
||||||
|
elif use sparc; then
|
||||||
|
echo "linux-sparc"
|
||||||
|
elif use x86; then
|
||||||
|
if use cpu_flags_x86_xop; then
|
||||||
|
echo "linux-x86-xop"
|
||||||
|
elif use cpu_flags_x86_avx; then
|
||||||
|
echo "linux-x86-avx"
|
||||||
|
elif use cpu_flags_x86_sse2; then
|
||||||
|
echo "linux-x86-sse2"
|
||||||
|
elif use cpu_flags_x86_mmx; then
|
||||||
|
echo "linux-x86-mmx"
|
||||||
|
else
|
||||||
|
echo "linux-x86-any"
|
||||||
|
fi
|
||||||
|
elif use ppc-macos; then
|
||||||
|
echo "macosx-ppc32-altivec"
|
||||||
|
elif use x86-macos; then
|
||||||
|
if use cpu_flags_x86_sse2; then
|
||||||
|
echo "macosx-x86-sse2"
|
||||||
|
else
|
||||||
|
echo "macosx-x86"
|
||||||
|
fi
|
||||||
|
elif use x86-solaris; then
|
||||||
|
echo "solaris-x86-any"
|
||||||
|
elif use x86-fbsd; then
|
||||||
|
if use cpu_flags_x86_sse2; then
|
||||||
|
echo "freebsd-x86-sse2"
|
||||||
|
elif use cpu_flags_x86_mmx; then
|
||||||
|
echo "freebsd-x86-mmx"
|
||||||
|
else
|
||||||
|
echo "freebsd-x86-any"
|
||||||
|
fi
|
||||||
|
elif use amd64-fbsd; then
|
||||||
|
echo "freebsd-x86-64"
|
||||||
|
else
|
||||||
|
echo "generic"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
if use openmp && [[ ${MERGE_TYPE} != binary ]]; then
|
||||||
|
tc-has-openmp || die "Please switch to an openmp compatible compiler"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
local OMP
|
||||||
|
|
||||||
|
use custom-cflags || strip-flags
|
||||||
|
cat <<- EOF >> config.gentoo || die
|
||||||
|
#define JOHN_SYSTEMWIDE 1
|
||||||
|
#define JOHN_SYSTEMWIDE_HOME "${EPREFIX}/etc/john"
|
||||||
|
#define JOHN_SYSTEMWIDE_EXEC "${EPREFIX}/usr/libexec/john"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
append-flags -fPIC -fPIE
|
||||||
|
#gcc-specs-pie && append-ldflags -nopie
|
||||||
|
use openmp && OMP="-fopenmp"
|
||||||
|
|
||||||
|
CPP="$(tc-getCXX)" CC="$(tc-getCC)" AS="$(tc-getCC)" LD="$(tc-getCC)"
|
||||||
|
|
||||||
|
emake -C src/ \
|
||||||
|
CPP="${CPP}" CC="${CC}" AS="${AS}" LD="${LD}" \
|
||||||
|
CFLAGS="-c -Wall -include ../config.gentoo ${CFLAGS} ${OMP}" \
|
||||||
|
LDFLAGS="${LDFLAGS} ${OMP}" \
|
||||||
|
OPT_NORMAL="" \
|
||||||
|
OMPFLAGS="${OMP}" \
|
||||||
|
$(get_target)
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
make -C src/ check
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
# executables
|
||||||
|
dosbin run/john
|
||||||
|
newsbin run/mailer john-mailer
|
||||||
|
|
||||||
|
dosym john /usr/sbin/unafs
|
||||||
|
dosym john /usr/sbin/unique
|
||||||
|
dosym john /usr/sbin/unshadow
|
||||||
|
|
||||||
|
# config files
|
||||||
|
insinto /etc/john
|
||||||
|
doins run/*.chr run/password.lst
|
||||||
|
doins run/*.conf
|
||||||
|
|
||||||
|
# documentation
|
||||||
|
dodoc doc/*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
if [ -n "${REPLACING_VERSIONS}" ] && [ "${REPLACING_VERSIONS}" != "1.8.0" ]; then
|
||||||
|
ewarn "This package no longer includes jumbo. If you want jumbo please install app-crypt/johntheripper-jumbo instead."
|
||||||
|
fi
|
||||||
|
}
|
@ -1,3 +1,4 @@
|
|||||||
DIST kbfs-2.10.1.tar.gz 4471525 BLAKE2B 79a1046a6d225ab790081e2ec0aa057c8aab9c3c1fd0fe9832769b01f2e92137aa3b6424c303b736dbc6142917aecbb32c54d98111b42be80e66ee459524c7f2 SHA512 66b07a07c4b4734465d8ea8eccf3b1d05c0c3ba8792161ed3fd8ed9eaccb43d51cf5ef44c8c44fca4a22ab2b360093f1801d9eb77904d2aa917d0a76026fffa9
|
DIST kbfs-2.10.1.tar.gz 4471525 BLAKE2B 79a1046a6d225ab790081e2ec0aa057c8aab9c3c1fd0fe9832769b01f2e92137aa3b6424c303b736dbc6142917aecbb32c54d98111b42be80e66ee459524c7f2 SHA512 66b07a07c4b4734465d8ea8eccf3b1d05c0c3ba8792161ed3fd8ed9eaccb43d51cf5ef44c8c44fca4a22ab2b360093f1801d9eb77904d2aa917d0a76026fffa9
|
||||||
|
DIST kbfs-2.11.0.tar.gz 4520872 BLAKE2B 4472360205f42f59bc18f64634b4e10f38f532db262de38260a459faf0d76b9f805fb3d5e12d21afecbd51a980e63c68cc2be47b4e5ab597b7b0bfdd491dd54d SHA512 f735f7fc1c958eabcb38933f19edeba0cd3854e3d5a2030c6e4301c9cea714c432993e099b2199060e1275982755f60728545e71151c5796eb9be4978790e2f5
|
||||||
DIST kbfs-2.6.0.tar.gz 5836566 BLAKE2B 14ca1fa35d01330ad51c5ca735bea059dc4f5be10298f36d2a7bd10ab5cfe2a399104dbade2da58ea3e0e77ef1e24f0644b751e7f06b91e9f4360514aaa7f6df SHA512 f636f6d01fa12e63930be7fa2d0cd919c37e68820bd602af6a54703a64759e475c5e19e29bf60b94d02dd9db188709c9ecd4da7abd05af7880fdf5e94a8d3590
|
DIST kbfs-2.6.0.tar.gz 5836566 BLAKE2B 14ca1fa35d01330ad51c5ca735bea059dc4f5be10298f36d2a7bd10ab5cfe2a399104dbade2da58ea3e0e77ef1e24f0644b751e7f06b91e9f4360514aaa7f6df SHA512 f636f6d01fa12e63930be7fa2d0cd919c37e68820bd602af6a54703a64759e475c5e19e29bf60b94d02dd9db188709c9ecd4da7abd05af7880fdf5e94a8d3590
|
||||||
DIST kbfs-2.8.0.tar.gz 4459997 BLAKE2B b361ae343ab5fada7f9edac8c5083173dca103362b6e0688df069fbc0bf7dbb0eab6779259bd5c1038c542d7f51b68259404aa24c797da5c3aee6fab9fc4dab1 SHA512 892b7c51f52ca129145f10932e23c22f0f7003ea8662d26939d4f9e72cd8296fc5a66516dc7a3135fdc1cb96b1d02160c0f1dd32a4a6fe13ddcd4750eac9b8fc
|
DIST kbfs-2.8.0.tar.gz 4459997 BLAKE2B b361ae343ab5fada7f9edac8c5083173dca103362b6e0688df069fbc0bf7dbb0eab6779259bd5c1038c542d7f51b68259404aa24c797da5c3aee6fab9fc4dab1 SHA512 892b7c51f52ca129145f10932e23c22f0f7003ea8662d26939d4f9e72cd8296fc5a66516dc7a3135fdc1cb96b1d02160c0f1dd32a4a6fe13ddcd4750eac9b8fc
|
||||||
|
@ -0,0 +1,51 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit golang-build systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Keybase Filesystem (KBFS)"
|
||||||
|
HOMEPAGE="https://keybase.io/docs/kbfs"
|
||||||
|
SRC_URI="https://github.com/keybase/kbfs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND=""
|
||||||
|
RDEPEND="
|
||||||
|
app-crypt/gnupg
|
||||||
|
sys-fs/fuse
|
||||||
|
"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack "${P}.tar.gz"
|
||||||
|
mkdir -vp "${S}/src/github.com/keybase" || die
|
||||||
|
ln -vs "${S}" "${S}/src/github.com/keybase/kbfs" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
||||||
|
EGO_BUILD_FLAGS="-tags production -o ${T}/kbfsfuse" \
|
||||||
|
golang-build_src_compile
|
||||||
|
EGO_PN="github.com/keybase/kbfs/kbfsgit/git-remote-keybase" \
|
||||||
|
EGO_BUILD_FLAGS="-tags production -o ${T}/git-remote-keybase" \
|
||||||
|
golang-build_src_compile
|
||||||
|
EGO_PN="github.com/keybase/kbfs/redirector" \
|
||||||
|
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase-redirector" \
|
||||||
|
golang-build_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
EGO_PN="github.com/keybase/kbfs/kbfsfuse" \
|
||||||
|
golang-build_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin "${T}/kbfsfuse"
|
||||||
|
dobin "${T}/git-remote-keybase"
|
||||||
|
dobin "${T}/keybase-redirector"
|
||||||
|
systemd_douserunit "${S}/packaging/linux/systemd/kbfs.service"
|
||||||
|
}
|
@ -0,0 +1,54 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit golang-build systemd
|
||||||
|
|
||||||
|
DESCRIPTION="Client for keybase.io"
|
||||||
|
HOMEPAGE="https://keybase.io/"
|
||||||
|
SRC_URI="https://github.com/keybase/client/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="BSD"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
~app-crypt/kbfs-${PV}"
|
||||||
|
RDEPEND="
|
||||||
|
app-crypt/gnupg"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack "${P}.tar.gz"
|
||||||
|
ln -vs "client-${PV}" "${P}" || die
|
||||||
|
mkdir -vp "${S}/src/github.com/keybase" || die
|
||||||
|
ln -vs "${S}" "${S}/src/github.com/keybase/client" || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
EGO_PN="github.com/keybase/client/go/keybase" \
|
||||||
|
EGO_BUILD_FLAGS="-tags production -o ${T}/keybase" \
|
||||||
|
golang-build_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
EGO_PN="github.com/keybase/client/go/keybase" \
|
||||||
|
golang-build_src_test
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
dobin "${T}/keybase"
|
||||||
|
dobin "${S}/packaging/linux/run_keybase"
|
||||||
|
systemd_douserunit "${S}/packaging/linux/systemd/keybase.service"
|
||||||
|
dodir "/opt/keybase"
|
||||||
|
insinto "/opt/keybase"
|
||||||
|
doins "${S}/packaging/linux/crypto_squirrel.txt"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "Start/Restart keybase: run_keybase"
|
||||||
|
elog "Run the service: keybase service"
|
||||||
|
elog "Run the client: keybase login"
|
||||||
|
ewarn "Note that the user keybasehelper is obsolete and can be removed"
|
||||||
|
}
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST cloud-init-17.2.tar.gz 810821 BLAKE2B df1a7c1ed1fc48a7801a53bd89839d963debca6abf7f892d61bf7ec9222ab33bf78221e65d79028e0445cac4c5fe1e0c1620d49aea26c036ee17933d9c1893f5 SHA512 ad1c7f6ca9762b70a1f06a6b538032a7de0c5371fd792260d5959df113f4f51509d184b2207ffa23b41f395c1903d551d66aaf2a2ad60af3594cf1f18d1e4a38
|
DIST cloud-init-17.2.tar.gz 810821 BLAKE2B df1a7c1ed1fc48a7801a53bd89839d963debca6abf7f892d61bf7ec9222ab33bf78221e65d79028e0445cac4c5fe1e0c1620d49aea26c036ee17933d9c1893f5 SHA512 ad1c7f6ca9762b70a1f06a6b538032a7de0c5371fd792260d5959df113f4f51509d184b2207ffa23b41f395c1903d551d66aaf2a2ad60af3594cf1f18d1e4a38
|
||||||
DIST cloud-init-18.4.tar.gz 965112 BLAKE2B 2879aafedea877e4e406a5e837d100ba65e40c62660621f606e7a189af7b1ec8d98ba2c02ae5d253a0b4587502d3a636dec5c2772c968a9037b47e62a05656b4 SHA512 730aca6406f652f55afc2dd50c49eb6708584e0a96715606bcba05cb7f40e47c256faff1f9748f04674a8f941ec9435801c9ed2ac79adec8a6ef167d6b195103
|
DIST cloud-init-18.4.tar.gz 965112 BLAKE2B 2879aafedea877e4e406a5e837d100ba65e40c62660621f606e7a189af7b1ec8d98ba2c02ae5d253a0b4587502d3a636dec5c2772c968a9037b47e62a05656b4 SHA512 730aca6406f652f55afc2dd50c49eb6708584e0a96715606bcba05cb7f40e47c256faff1f9748f04674a8f941ec9435801c9ed2ac79adec8a6ef167d6b195103
|
||||||
|
DIST cloud-init-18.5.tar.gz 990381 BLAKE2B 0dbbd5b2402d3a7742c46f8a37b0ea31f40ac16bdbfe49dca0056ab8f90c47dbf26e6d3f40f34275caf5102d0b9b8be4e2c28bfc2276e85a5aad11af20b08979 SHA512 f89ee636922e33b5b2dcb5230763404fbeee148e28b8f61bf5b2f1f07000f960f9d38545dfb7bcbe9afb8253f77d66c94b39e9a159715b44a440a7cbe1fe1aeb
|
||||||
|
@ -0,0 +1,90 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
PYTHON_COMPAT=( python2_7 python3_4 python3_5 python3_6 )
|
||||||
|
|
||||||
|
inherit distutils-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Cloud instance initialisation magic"
|
||||||
|
HOMEPAGE="https://launchpad.net/cloud-init"
|
||||||
|
SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="test"
|
||||||
|
|
||||||
|
CDEPEND="
|
||||||
|
dev-python/jinja[${PYTHON_USEDEP}]
|
||||||
|
dev-python/oauthlib[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyserial[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/configobj-5.0.2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||||||
|
dev-python/requests[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jsonpatch[${PYTHON_USEDEP}]
|
||||||
|
dev-python/jsonschema[${PYTHON_USEDEP}]
|
||||||
|
dev-python/six[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
DEPEND="
|
||||||
|
dev-python/setuptools[${PYTHON_USEDEP}]
|
||||||
|
test? (
|
||||||
|
${CDEPEND}
|
||||||
|
>=dev-python/httpretty-0.7.1[${PYTHON_USEDEP}]
|
||||||
|
dev-python/mock[${PYTHON_USEDEP}]
|
||||||
|
dev-python/nose[${PYTHON_USEDEP}]
|
||||||
|
dev-python/unittest2[${PYTHON_USEDEP}]
|
||||||
|
dev-python/coverage[${PYTHON_USEDEP}]
|
||||||
|
dev-python/contextlib2[${PYTHON_USEDEP}]
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="
|
||||||
|
${CDEPEND}
|
||||||
|
net-analyzer/macchanger
|
||||||
|
sys-apps/iproute2
|
||||||
|
sys-fs/growpart
|
||||||
|
virtual/logger
|
||||||
|
"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
# Fix Gentoo support
|
||||||
|
# https://code.launchpad.net/~gilles-dartiguelongue/cloud-init/+git/cloud-init/+merge/358777
|
||||||
|
"${FILESDIR}"/${PN}-18.4-fix-packages-module.patch
|
||||||
|
"${FILESDIR}"/${PN}-18.4-gentoo-support-upstream-templates.patch
|
||||||
|
"${FILESDIR}"/18.4-fix-filename-for-storing-locale.patch
|
||||||
|
"${FILESDIR}"/18.4-fix-update_package_sources-function.patch
|
||||||
|
"${FILESDIR}"/18.4-add-support-for-package_upgrade.patch
|
||||||
|
# From master
|
||||||
|
"${FILESDIR}"/${PV}-fix-invalid-string-format.patch
|
||||||
|
)
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
# Fix location of documentation installation
|
||||||
|
sed -i "s:USR + '/share/doc/cloud-init:USR + '/share/doc/${PF}:" setup.py || die
|
||||||
|
distutils-r1_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
python_test() {
|
||||||
|
# Do not use Makefile target as it does not setup environment correclty
|
||||||
|
esetup.py nosetests -v --where cloudinit --where tests/unittests || die
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
distutils-r1_python_install --init-system=sysvinit_openrc,systemd --distro gentoo
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install_all() {
|
||||||
|
keepdir /etc/cloud
|
||||||
|
|
||||||
|
distutils-r1_python_install_all
|
||||||
|
|
||||||
|
# installs as non-executable
|
||||||
|
chmod +x "${D}"/etc/init.d/*
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog "cloud-init-local needs to be run in the boot runlevel because it"
|
||||||
|
elog "modifies services in the default runlevel. When a runlevel is started"
|
||||||
|
elog "it is cached, so modifications that happen to the current runlevel"
|
||||||
|
elog "while you are in it are not acted upon."
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
From 5b065316113b97aadb43e63cc31bb8639f6a6376 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Scott Moser <smoser@ubuntu.com>
|
||||||
|
Date: Fri, 14 Dec 2018 03:24:26 +0000
|
||||||
|
Subject: [PATCH] Update to pylint 2.2.2.
|
||||||
|
|
||||||
|
The tip-pylint tox target correctly reported the invalid use of
|
||||||
|
string formatting. The change here is to:
|
||||||
|
|
||||||
|
a.) Fix the error that was caught.
|
||||||
|
b.) move to pylint 2.2.2 for the default 'pylint' target.
|
||||||
|
---
|
||||||
|
cloudinit/sources/DataSourceAzure.py | 4 ++--
|
||||||
|
tox.ini | 2 +-
|
||||||
|
2 files changed, 3 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/cloudinit/sources/DataSourceAzure.py b/cloudinit/sources/DataSourceAzure.py
|
||||||
|
index e076d5dc..46efca4a 100644
|
||||||
|
--- a/cloudinit/sources/DataSourceAzure.py
|
||||||
|
+++ b/cloudinit/sources/DataSourceAzure.py
|
||||||
|
@@ -980,8 +980,8 @@ def read_azure_ovf(contents):
|
||||||
|
raise NonAzureDataSource("No LinuxProvisioningConfigurationSet")
|
||||||
|
if len(lpcs_nodes) > 1:
|
||||||
|
raise BrokenAzureDataSource("found '%d' %ss" %
|
||||||
|
- ("LinuxProvisioningConfigurationSet",
|
||||||
|
- len(lpcs_nodes)))
|
||||||
|
+ (len(lpcs_nodes),
|
||||||
|
+ "LinuxProvisioningConfigurationSet"))
|
||||||
|
lpcs = lpcs_nodes[0]
|
||||||
|
|
||||||
|
if not lpcs.hasChildNodes():
|
||||||
|
diff --git a/tox.ini b/tox.ini
|
||||||
|
index 2fb3209d..d983348b 100644
|
||||||
|
--- a/tox.ini
|
||||||
|
+++ b/tox.ini
|
||||||
|
@@ -21,7 +21,7 @@ setenv =
|
||||||
|
basepython = python3
|
||||||
|
deps =
|
||||||
|
# requirements
|
||||||
|
- pylint==1.8.1
|
||||||
|
+ pylint==2.2.2
|
||||||
|
# test-requirements because unit tests are now present in cloudinit tree
|
||||||
|
-r{toxinidir}/test-requirements.txt
|
||||||
|
commands = {envpython} -m pylint {posargs:cloudinit tests tools}
|
||||||
|
--
|
||||||
|
2.20.0
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
DIST open-vm-tools-10.1.10-6082533.tar.gz 5111726 BLAKE2B 22e2e901c542ae14b7537bc26ff848359f30bde6824a16968b70070dd6e57c92fbf76dca0d02e35ef45bda257725e207632b0602a4336bd2d9c97d10fb094967 SHA512 60c52a24509cb0630f2ad649fe6717fefff624fc2a5c736ced35cbdb8f639264d482e063e8140eedb39216adfb1231d58232bfef0233ebc477ba4f9a732c5965
|
DIST open-vm-tools-10.1.10-6082533.tar.gz 5111726 BLAKE2B 22e2e901c542ae14b7537bc26ff848359f30bde6824a16968b70070dd6e57c92fbf76dca0d02e35ef45bda257725e207632b0602a4336bd2d9c97d10fb094967 SHA512 60c52a24509cb0630f2ad649fe6717fefff624fc2a5c736ced35cbdb8f639264d482e063e8140eedb39216adfb1231d58232bfef0233ebc477ba4f9a732c5965
|
||||||
DIST open-vm-tools-10.1.15-6677369.tar.gz 5153995 BLAKE2B 03c6b359df8f42f1ba65331dcac67e8ce86b0fce9a572c1665d3f385cae14f1757611d3948d30bb5b2e40bb2b4673bb244c45f56098faf09d6de515bb937ea3f SHA512 fe3699a7f704bdadc4c274c963d177f4700067e7436074554b7cf113ffa341ad0e4753016214f947418fd5a7cb4a6f2c0342acf074b6b414b3fd18fd2ea2bc58
|
DIST open-vm-tools-10.1.15-6677369.tar.gz 5153995 BLAKE2B 03c6b359df8f42f1ba65331dcac67e8ce86b0fce9a572c1665d3f385cae14f1757611d3948d30bb5b2e40bb2b4673bb244c45f56098faf09d6de515bb937ea3f SHA512 fe3699a7f704bdadc4c274c963d177f4700067e7436074554b7cf113ffa341ad0e4753016214f947418fd5a7cb4a6f2c0342acf074b6b414b3fd18fd2ea2bc58
|
||||||
DIST open-vm-tools-10.2.5-8068406.tar.gz 4818035 BLAKE2B 87e3edc42afceaf9efe69ae8cbd1abfbbf959fe09a721dbe4737ca30c6b57dcf1d8bff23bb3ed3d2236c31e7f3e6fd4d10a689b40b3b725eb580609a68bb7090 SHA512 da2f26b4b22e195af111cc16d5819aeb963f0dfa18b5d2677d897549836ec8679808315646f7f86ae36862df9e623bbcb5d553dae97a68b3ef928a5c07ea2e68
|
DIST open-vm-tools-10.2.5-8068406.tar.gz 4818035 BLAKE2B 87e3edc42afceaf9efe69ae8cbd1abfbbf959fe09a721dbe4737ca30c6b57dcf1d8bff23bb3ed3d2236c31e7f3e6fd4d10a689b40b3b725eb580609a68bb7090 SHA512 da2f26b4b22e195af111cc16d5819aeb963f0dfa18b5d2677d897549836ec8679808315646f7f86ae36862df9e623bbcb5d553dae97a68b3ef928a5c07ea2e68
|
||||||
|
DIST open-vm-tools-10.3.5-10430147.tar.gz 4623854 BLAKE2B a2bc0ed099cd713820aea17f01131fb4ffcdefedc04b2edb217b4a96c6c9a4007f8ecc80c40445580abffaf3fb0f67be3ca9f3df7a55d368109a53da91e0db77 SHA512 2f2b3d9a8d39b01904cf845936b51a468ba61a29ca64635f842451ca9fd90bf5a770967e4c332319327c6f920ac4fb06d304e185c18ab8898aeb4fcd491a4a1f
|
||||||
|
@ -0,0 +1,150 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
inherit autotools linux-info pam systemd toolchain-funcs user
|
||||||
|
|
||||||
|
DESCRIPTION="Opensourced tools for VMware guests"
|
||||||
|
HOMEPAGE="https://github.com/vmware/open-vm-tools"
|
||||||
|
MY_P="${P}-10430147"
|
||||||
|
SRC_URI="https://github.com/vmware/open-vm-tools/releases/download/stable-${PV}/${MY_P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="LGPL-2.1"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="X +deploypkg +dnet doc +fuse +grabbitmqproxy gtkmm +icu multimon pam +resolutionkms +ssl static-libs +vgauth"
|
||||||
|
REQUIRED_USE="
|
||||||
|
multimon? ( X )
|
||||||
|
vgauth? ( ssl )
|
||||||
|
grabbitmqproxy? ( ssl )
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
dev-libs/glib
|
||||||
|
net-libs/libtirpc
|
||||||
|
deploypkg? ( dev-libs/libmspack )
|
||||||
|
fuse? ( sys-fs/fuse:0 )
|
||||||
|
pam? ( virtual/pam )
|
||||||
|
ssl? ( dev-libs/openssl:0 )
|
||||||
|
vgauth? (
|
||||||
|
dev-libs/libxml2
|
||||||
|
dev-libs/xmlsec
|
||||||
|
)
|
||||||
|
X? (
|
||||||
|
x11-libs/libXext
|
||||||
|
multimon? ( x11-libs/libXinerama )
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXrender
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libXtst
|
||||||
|
x11-libs/libSM
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
x11-libs/gdk-pixbuf:2
|
||||||
|
x11-libs/gtk+:3
|
||||||
|
gtkmm? (
|
||||||
|
dev-cpp/gtkmm:3.0
|
||||||
|
dev-libs/libsigc++:2
|
||||||
|
)
|
||||||
|
)
|
||||||
|
dnet? ( dev-libs/libdnet )
|
||||||
|
icu? ( dev-libs/icu:= )
|
||||||
|
resolutionkms? (
|
||||||
|
x11-libs/libdrm[video_cards_vmware]
|
||||||
|
virtual/libudev
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
net-libs/rpcsvc-proto
|
||||||
|
"
|
||||||
|
|
||||||
|
BDEPEND="
|
||||||
|
virtual/pkgconfig
|
||||||
|
doc? ( app-doc/doxygen )
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}/${MY_P}"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}/10.1.0-mount.vmhgfs.patch"
|
||||||
|
"${FILESDIR}/10.1.0-Werror.patch"
|
||||||
|
)
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
local CONFIG_CHECK="~VMWARE_BALLOON ~VMWARE_PVSCSI ~VMXNET3"
|
||||||
|
use X && CONFIG_CHECK+=" ~DRM_VMWGFX"
|
||||||
|
kernel_is -lt 3 9 || CONFIG_CHECK+=" ~VMWARE_VMCI ~VMWARE_VMCI_VSOCKETS"
|
||||||
|
kernel_is -lt 3 || CONFIG_CHECK+=" ~FUSE_FS"
|
||||||
|
linux-info_pkg_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
eapply -p2 "${PATCHES[@]}"
|
||||||
|
eapply_user
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local myeconfargs=(
|
||||||
|
--without-root-privileges
|
||||||
|
$(use_enable multimon)
|
||||||
|
$(use_with X x)
|
||||||
|
$(use_with X gtk3)
|
||||||
|
$(use_with gtkmm gtkmm3)
|
||||||
|
$(use_enable doc docs)
|
||||||
|
--disable-tests
|
||||||
|
$(use_enable resolutionkms)
|
||||||
|
$(use_enable static-libs static)
|
||||||
|
$(use_enable deploypkg)
|
||||||
|
$(use_enable grabbitmqproxy)
|
||||||
|
$(use_with pam)
|
||||||
|
$(use_enable vgauth)
|
||||||
|
--disable-caf
|
||||||
|
$(use_with dnet)
|
||||||
|
$(use_with icu)
|
||||||
|
)
|
||||||
|
# Avoid a bug in configure.ac
|
||||||
|
use ssl || myeconfargs+=( --without-ssl )
|
||||||
|
|
||||||
|
econf "${myeconfargs[@]}"
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
default
|
||||||
|
find "${ED}" -name '*.la' -delete || die
|
||||||
|
|
||||||
|
if use pam; then
|
||||||
|
rm "${ED}"/etc/pam.d/vmtoolsd || die
|
||||||
|
pamd_mimic_system vmtoolsd auth account
|
||||||
|
fi
|
||||||
|
|
||||||
|
newinitd "${FILESDIR}/open-vm-tools.initd" vmware-tools
|
||||||
|
newconfd "${FILESDIR}/open-vm-tools.confd" vmware-tools
|
||||||
|
|
||||||
|
if use vgauth; then
|
||||||
|
systemd_newunit "${FILESDIR}"/vmtoolsd.vgauth.service vmtoolsd.service
|
||||||
|
systemd_dounit "${FILESDIR}"/vgauthd.service
|
||||||
|
else
|
||||||
|
systemd_dounit "${FILESDIR}"/vmtoolsd.service
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Replace mount.vmhgfs with a wrapper
|
||||||
|
mv "${ED}"/usr/sbin/{mount.vmhgfs,hgfsmounter} || die
|
||||||
|
dosbin "${FILESDIR}/mount.vmhgfs"
|
||||||
|
|
||||||
|
# Make fstype = vmhgfs-fuse work in fstab
|
||||||
|
dosym vmhgfs-fuse /usr/bin/mount.vmhgfs-fuse
|
||||||
|
|
||||||
|
if use X; then
|
||||||
|
fperms 4711 /usr/bin/vmware-user-suid-wrapper
|
||||||
|
dobin scripts/common/vmware-xdg-detect-de
|
||||||
|
|
||||||
|
elog "To be able to use the drag'n'drop feature of VMware for file"
|
||||||
|
elog "exchange, please add the users to the 'vmware' group."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
enewgroup vmware
|
||||||
|
}
|
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
DIST skrooge-2.16.2.tar.xz 21005424 BLAKE2B c8e11df29defc714fe71ad4f488cd6207dcc8bfc0cbee28422682f9c683ed7af8200b84f90cfdd0ca6d0bd0292dab46724c6b9afa0155c9f1603bbbe189b001d SHA512 4bc7de279cf55888a258700c2a8450270904066684b1ce0b121cf5eb966da174d969daa3db432781de62d94420e706ab5364e386e053dde7617d967442eae397
|
DIST skrooge-2.16.2.tar.xz 21005424 BLAKE2B c8e11df29defc714fe71ad4f488cd6207dcc8bfc0cbee28422682f9c683ed7af8200b84f90cfdd0ca6d0bd0292dab46724c6b9afa0155c9f1603bbbe189b001d SHA512 4bc7de279cf55888a258700c2a8450270904066684b1ce0b121cf5eb966da174d969daa3db432781de62d94420e706ab5364e386e053dde7617d967442eae397
|
||||||
|
DIST skrooge-2.17.0.tar.xz 23421972 BLAKE2B c0e08ef7235a6e05e945fcb92a222cc89e7a99ead4b30ba112fea7b420e150545e002e174b747bf7955415241eb55e8007d97e7fd92fa547a1f596360ab68156 SHA512 e65a1e1ed30af7c76776dbdf22f62d475ec3aece9c866453634d2692c6d1f1d6c00cb04376861cb3b09a990a3202f08dcb70ffe28f3c146cce17ade3a3a67a47
|
||||||
|
@ -0,0 +1,99 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
KDE_HANDBOOK="optional"
|
||||||
|
KDE_TEST="forceoptional"
|
||||||
|
VIRTUALX_REQUIRED="test"
|
||||||
|
inherit kde5
|
||||||
|
|
||||||
|
DESCRIPTION="Personal finances manager, aiming at being simple and intuitive"
|
||||||
|
HOMEPAGE="https://skrooge.org/"
|
||||||
|
[[ ${PV} == 9999 ]] || SRC_URI="mirror://kde/stable/${PN}/${P}.tar.xz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="activities designer kde ofx webkit"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
$(add_frameworks_dep karchive)
|
||||||
|
$(add_frameworks_dep kcompletion)
|
||||||
|
$(add_frameworks_dep kconfig)
|
||||||
|
$(add_frameworks_dep kconfigwidgets)
|
||||||
|
$(add_frameworks_dep kcoreaddons)
|
||||||
|
$(add_frameworks_dep kdbusaddons)
|
||||||
|
$(add_frameworks_dep ki18n)
|
||||||
|
$(add_frameworks_dep kiconthemes)
|
||||||
|
$(add_frameworks_dep kio)
|
||||||
|
$(add_frameworks_dep kitemviews)
|
||||||
|
$(add_frameworks_dep knewstuff)
|
||||||
|
$(add_frameworks_dep knotifications)
|
||||||
|
$(add_frameworks_dep knotifyconfig)
|
||||||
|
$(add_frameworks_dep kparts)
|
||||||
|
$(add_frameworks_dep kservice)
|
||||||
|
$(add_frameworks_dep ktextwidgets)
|
||||||
|
$(add_frameworks_dep kwallet)
|
||||||
|
$(add_frameworks_dep kwidgetsaddons)
|
||||||
|
$(add_frameworks_dep kxmlgui)
|
||||||
|
$(add_qt_dep qtconcurrent)
|
||||||
|
$(add_qt_dep qtdbus)
|
||||||
|
$(add_qt_dep qtdeclarative 'widgets')
|
||||||
|
$(add_qt_dep qtgui)
|
||||||
|
$(add_qt_dep qtnetwork)
|
||||||
|
$(add_qt_dep qtprintsupport)
|
||||||
|
$(add_qt_dep qtscript)
|
||||||
|
$(add_qt_dep qtsql)
|
||||||
|
$(add_qt_dep qtsvg)
|
||||||
|
$(add_qt_dep qtwidgets)
|
||||||
|
$(add_qt_dep qtxml)
|
||||||
|
app-crypt/qca:2[qt5(+)]
|
||||||
|
dev-db/sqlcipher
|
||||||
|
dev-libs/grantlee:5
|
||||||
|
activities? ( $(add_frameworks_dep kactivities) )
|
||||||
|
kde? ( $(add_frameworks_dep krunner) )
|
||||||
|
ofx? ( dev-libs/libofx )
|
||||||
|
webkit? ( $(add_qt_dep qtwebkit) )
|
||||||
|
!webkit? ( $(add_qt_dep qtwebengine 'widgets') )
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
$(add_frameworks_dep kguiaddons)
|
||||||
|
$(add_frameworks_dep kjobwidgets)
|
||||||
|
$(add_frameworks_dep kwindowsystem)
|
||||||
|
dev-libs/libxslt
|
||||||
|
virtual/pkgconfig
|
||||||
|
x11-misc/shared-mime-info
|
||||||
|
designer? (
|
||||||
|
$(add_frameworks_dep kdesignerplugin)
|
||||||
|
$(add_qt_dep designer)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
!app-office/skrooge:4
|
||||||
|
$(add_qt_dep qtquickcontrols)
|
||||||
|
"
|
||||||
|
|
||||||
|
REQUIRED_USE="test? ( designer )"
|
||||||
|
|
||||||
|
# hangs + installs files
|
||||||
|
RESTRICT+=" test"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DSKG_BUILD_TEST=$(usex test)
|
||||||
|
-DSKG_DESIGNER=$(usex designer)
|
||||||
|
$(cmake-utils_use_find_package activities KF5Activities)
|
||||||
|
$(cmake-utils_use_find_package kde KF5Runner)
|
||||||
|
$(cmake-utils_use_find_package ofx LibOfx)
|
||||||
|
-DSKG_WEBENGINE=$(usex !webkit)
|
||||||
|
)
|
||||||
|
|
||||||
|
kde5_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DSKG_BUILD_TEST=ON
|
||||||
|
)
|
||||||
|
kde5_src_test
|
||||||
|
}
|
Binary file not shown.
@ -1,789 +0,0 @@
|
|||||||
# Copyright 1999-2018 Gentoo Authors
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="6"
|
|
||||||
MY_EXTRAS_VER="20181111-2314Z"
|
|
||||||
|
|
||||||
CMAKE_MAKEFILE_GENERATOR=emake
|
|
||||||
|
|
||||||
# Keeping eutils in EAPI=6 for emktemp in pkg_config
|
|
||||||
|
|
||||||
inherit eutils flag-o-matic prefix toolchain-funcs \
|
|
||||||
user cmake-utils multilib-build
|
|
||||||
|
|
||||||
SRC_URI="http://cdn.mysql.com/Downloads/MySQL-5.6/${P}.tar.gz
|
|
||||||
https://cdn.mysql.com/archives/mysql-5.6/${P}.tar.gz
|
|
||||||
http://downloads.mysql.com/archives/MySQL-5.6/${P}.tar.gz"
|
|
||||||
|
|
||||||
# Gentoo patches to MySQL
|
|
||||||
if [[ "${MY_EXTRAS_VER}" != "live" && "${MY_EXTRAS_VER}" != "none" ]]; then
|
|
||||||
SRC_URI="${SRC_URI}
|
|
||||||
mirror://gentoo/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://gitweb.gentoo.org/proj/mysql-extras.git/snapshot/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://dev.gentoo.org/~grknight/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://dev.gentoo.org/~robbat2/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2
|
|
||||||
https://dev.gentoo.org/~jmbsvicetto/distfiles/mysql-extras-${MY_EXTRAS_VER}.tar.bz2"
|
|
||||||
fi
|
|
||||||
|
|
||||||
HOMEPAGE="https://www.mysql.com/"
|
|
||||||
DESCRIPTION="A fast, multi-threaded, multi-user SQL database server"
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0/18"
|
|
||||||
IUSE="client-libs cracklib debug jemalloc latin1 libressl numa +perl profiling selinux
|
|
||||||
+server static static-libs systemtap tcmalloc test yassl"
|
|
||||||
|
|
||||||
# Tests always fail when libressl is enabled due to hard-coded ciphers in the tests
|
|
||||||
RESTRICT="libressl? ( test )"
|
|
||||||
|
|
||||||
REQUIRED_USE="?? ( tcmalloc jemalloc ) static? ( yassl )"
|
|
||||||
|
|
||||||
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
|
|
||||||
|
|
||||||
# Shorten the path because the socket path length must be shorter than 107 chars
|
|
||||||
# and we will run a mysql server during test phase
|
|
||||||
S="${WORKDIR}/mysql"
|
|
||||||
|
|
||||||
if [[ "${MY_EXTRAS_VER}" == "live" ]] ; then
|
|
||||||
inherit git-r3
|
|
||||||
EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/mysql-extras.git"
|
|
||||||
EGIT_CHECKOUT_DIR="${WORKDIR}/mysql-extras"
|
|
||||||
EGIT_CLONE_TYPE=shallow
|
|
||||||
MY_PATCH_DIR="${WORKDIR}/mysql-extras"
|
|
||||||
else
|
|
||||||
MY_PATCH_DIR="${WORKDIR}/mysql-extras-${MY_EXTRAS_VER}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PATCHES=(
|
|
||||||
"${MY_PATCH_DIR}"/01050_all_mysql_config_cleanup-5.6.patch
|
|
||||||
"${MY_PATCH_DIR}"/02040_all_embedded-library-shared-5.5.10.patch
|
|
||||||
"${MY_PATCH_DIR}"/20006_all_cmake_elib-mysql-5.6.35.patch
|
|
||||||
"${MY_PATCH_DIR}"/20007_all_cmake-debug-werror-5.6.22.patch
|
|
||||||
"${MY_PATCH_DIR}"/20008_all_mysql-tzinfo-symlink-5.6.37.patch
|
|
||||||
"${MY_PATCH_DIR}"/20009_all_mysql_myodbc_symbol_fix-5.6.patch
|
|
||||||
"${MY_PATCH_DIR}"/20018_all_mysql-5.6.25-without-clientlibs-tools.patch
|
|
||||||
"${MY_PATCH_DIR}"/20027_all_mysql-5.5-perl5.26-includes.patch
|
|
||||||
"${MY_PATCH_DIR}"/20028_all_mysql-5.6-gcc7.patch
|
|
||||||
"${MY_PATCH_DIR}"/20031_all_mysql-5.6-fix-monitor.test.patch
|
|
||||||
"${MY_PATCH_DIR}"/20036_all_mysql-5.6-fix-rpl_semi_sync_shutdown_hang.test.patch
|
|
||||||
)
|
|
||||||
|
|
||||||
# Be warned, *DEPEND are version-dependant
|
|
||||||
# These are used for both runtime and compiletime
|
|
||||||
COMMON_DEPEND="
|
|
||||||
kernel_linux? (
|
|
||||||
sys-process/procps:0=
|
|
||||||
dev-libs/libaio:0=
|
|
||||||
)
|
|
||||||
net-misc/curl
|
|
||||||
>=sys-apps/sed-4
|
|
||||||
>=sys-apps/texinfo-4.7-r1
|
|
||||||
jemalloc? ( dev-libs/jemalloc:0= )
|
|
||||||
tcmalloc? ( dev-util/google-perftools:0= )
|
|
||||||
systemtap? ( >=dev-util/systemtap-1.3:0= )
|
|
||||||
!yassl? (
|
|
||||||
!libressl? ( >=dev-libs/openssl-1.0.0:0= )
|
|
||||||
libressl? ( dev-libs/libressl:0= )
|
|
||||||
)
|
|
||||||
>=sys-libs/zlib-1.2.3:0=
|
|
||||||
sys-libs/ncurses:0=
|
|
||||||
server? (
|
|
||||||
numa? ( sys-process/numactl )
|
|
||||||
)
|
|
||||||
!client-libs? ( dev-db/mysql-connector-c[${MULTILIB_USEDEP},static-libs?] )
|
|
||||||
"
|
|
||||||
DEPEND="virtual/yacc
|
|
||||||
static? ( sys-libs/ncurses[static-libs] )
|
|
||||||
|| ( >=sys-devel/gcc-3.4.6 >=sys-devel/gcc-apple-4.0 )
|
|
||||||
${COMMON_DEPEND}"
|
|
||||||
RDEPEND="selinux? ( sec-policy/selinux-mysql )
|
|
||||||
client-libs? ( !dev-db/mariadb-connector-c[mysqlcompat] !dev-db/mysql-connector-c )
|
|
||||||
!dev-db/mariadb !dev-db/mariadb-galera !dev-db/percona-server !dev-db/mysql-cluster
|
|
||||||
server? ( !prefix? ( dev-db/mysql-init-scripts ) )
|
|
||||||
${COMMON_DEPEND}
|
|
||||||
"
|
|
||||||
# For other stuff to bring us in
|
|
||||||
# dev-perl/DBD-mysql is needed by some scripts installed by MySQL
|
|
||||||
PDEPEND="perl? ( >=dev-perl/DBD-mysql-2.9004 )"
|
|
||||||
|
|
||||||
pkg_setup() {
|
|
||||||
if [[ ${MERGE_TYPE} != binary ]] ; then
|
|
||||||
local GCC_MAJOR_SET=$(gcc-major-version)
|
|
||||||
local GCC_MINOR_SET=$(gcc-minor-version)
|
|
||||||
# Bug 565584. InnoDB now requires atomic functions introduced with gcc-4.7 on
|
|
||||||
# non x86{,_64} arches
|
|
||||||
if ! use amd64 && ! use x86 && [[ ${GCC_MAJOR_SET} -lt 4 || \
|
|
||||||
${GCC_MAJOR_SET} -eq 4 && ${GCC_MINOR_SET} -lt 7 ]] ; then
|
|
||||||
eerror "${PN} needs to be built with gcc-4.7 or later."
|
|
||||||
eerror "Please use gcc-config to switch to gcc-4.7 or later version."
|
|
||||||
die
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if has test ${FEATURES} && \
|
|
||||||
use server && ! has userpriv ${FEATURES} ; then
|
|
||||||
eerror "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# This should come after all of the die statements
|
|
||||||
enewgroup mysql 60 || die "problem adding 'mysql' group"
|
|
||||||
enewuser mysql 60 -1 /dev/null mysql || die "problem adding 'mysql' user"
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_preinst() {
|
|
||||||
# Here we need to see if the implementation switched client libraries
|
|
||||||
# We check if this is a new instance of the package and a client library already exists
|
|
||||||
local SHOW_ABI_MESSAGE libpath
|
|
||||||
if use client-libs && [[ -z ${REPLACING_VERSIONS} && -e "${EROOT%/}/usr/$(get_libdir)/libmysqlclient.so" ]] ; then
|
|
||||||
libpath=$(readlink "${EROOT%/}/usr/$(get_libdir)/libmysqlclient.so")
|
|
||||||
elog "Due to ABI changes when switching between different client libraries,"
|
|
||||||
elog "revdep-rebuild must find and rebuild all packages linking to libmysqlclient."
|
|
||||||
elog "Please run: revdep-rebuild --library ${libpath}"
|
|
||||||
ewarn "Failure to run revdep-rebuild may cause issues with other programs or libraries"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_postinst() {
|
|
||||||
# Make sure the vars are correctly initialized
|
|
||||||
mysql_init_vars
|
|
||||||
|
|
||||||
# Create log directory securely if it does not exist
|
|
||||||
[[ -d "${ROOT}${MY_LOGDIR}" ]] || install -d -m0750 -o mysql -g mysql "${ROOT}${MY_LOGDIR}"
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
|
|
||||||
einfo
|
|
||||||
elog "You might want to run:"
|
|
||||||
elog "\"emerge --config =${CATEGORY}/${PF}\""
|
|
||||||
elog "if this is a new install."
|
|
||||||
elog
|
|
||||||
elog "If you are switching server implentations, you should run the"
|
|
||||||
elog "mysql_upgrade tool."
|
|
||||||
einfo
|
|
||||||
else
|
|
||||||
einfo
|
|
||||||
elog "If you are upgrading major versions, you should run the"
|
|
||||||
elog "mysql_upgrade tool."
|
|
||||||
einfo
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_unpack() {
|
|
||||||
unpack ${A}
|
|
||||||
# Grab the patches
|
|
||||||
[[ "${MY_EXTRAS_VER}" == "live" ]] && S="${WORKDIR}/mysql-extras" git-r3_src_unpack
|
|
||||||
|
|
||||||
mv -f "${WORKDIR}/${P}" "${S}" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
_disable_engine() {
|
|
||||||
echo > "${S%/}/storage/${1}/CMakeLists.txt" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
_disable_plugin() {
|
|
||||||
echo > "${S%/}/plugin/${1}/CMakeLists.txt" || die
|
|
||||||
}
|
|
||||||
|
|
||||||
if use jemalloc ; then
|
|
||||||
echo "TARGET_LINK_LIBRARIES(mysqld jemalloc)" >> "${S}/sql/CMakeLists.txt" || die
|
|
||||||
fi
|
|
||||||
if use tcmalloc; then
|
|
||||||
echo "TARGET_LINK_LIBRARIES(mysqld tcmalloc)" >> "${S}/sql/CMakeLists.txt" || die
|
|
||||||
fi
|
|
||||||
# Remove the centos and rhel selinux policies to support mysqld_safe under SELinux
|
|
||||||
if [[ -d "${S}/support-files/SELinux" ]] ; then
|
|
||||||
echo > "${S}/support-files/SELinux/CMakeLists.txt" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
if use libressl ; then
|
|
||||||
sed -i 's/OPENSSL_MAJOR_VERSION STREQUAL "1"/OPENSSL_MAJOR_VERSION STREQUAL "2"/' \
|
|
||||||
"${S}/cmake/ssl.cmake" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
sed -i 's~ADD_SUBDIRECTORY(storage/ndb)~~' CMakeLists.txt || die
|
|
||||||
|
|
||||||
local plugin
|
|
||||||
local server_plugins=( semisync )
|
|
||||||
local test_plugins=( audit_null daemon_example fulltext )
|
|
||||||
if ! use server; then # These plugins are for the server
|
|
||||||
for plugin in "${server_plugins[@]}" ; do
|
|
||||||
_disable_plugin "${plugin}"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
if ! use test; then # These plugins are only used during testing
|
|
||||||
for plugin in "${test_plugins[@]}" ; do
|
|
||||||
_disable_plugin "${plugin}"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Don't build example
|
|
||||||
_disable_engine example
|
|
||||||
_disable_engine ndb
|
|
||||||
_disable_plugin innodb_memcached
|
|
||||||
|
|
||||||
cmake-utils_src_prepare
|
|
||||||
}
|
|
||||||
|
|
||||||
src_configure(){
|
|
||||||
# bug 508724 mariadb cannot use ld.gold
|
|
||||||
tc-ld-disable-gold
|
|
||||||
# Bug #114895, bug #110149
|
|
||||||
filter-flags "-O" "-O[01]"
|
|
||||||
|
|
||||||
append-cxxflags -felide-constructors
|
|
||||||
|
|
||||||
# bug #283926, with GCC4.4, this is required to get correct behavior.
|
|
||||||
append-flags -fno-strict-aliasing
|
|
||||||
|
|
||||||
CMAKE_BUILD_TYPE="RelWithDebInfo"
|
|
||||||
|
|
||||||
# debug hack wrt #497532
|
|
||||||
mycmakeargs=(
|
|
||||||
-DCMAKE_C_FLAGS_RELWITHDEBINFO="$(usex debug '' '-DNDEBUG')"
|
|
||||||
-DCMAKE_CXX_FLAGS_RELWITHDEBINFO="$(usex debug '' '-DNDEBUG')"
|
|
||||||
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
|
|
||||||
-DMYSQL_DATADIR="${EPREFIX}/var/lib/mysql"
|
|
||||||
-DSYSCONFDIR="${EPREFIX}/etc/mysql"
|
|
||||||
-DINSTALL_BINDIR=bin
|
|
||||||
-DINSTALL_DOCDIR=share/doc/${PF}
|
|
||||||
-DINSTALL_DOCREADMEDIR=share/doc/${PF}
|
|
||||||
-DINSTALL_INCLUDEDIR=include/mysql
|
|
||||||
-DINSTALL_INFODIR=share/info
|
|
||||||
-DINSTALL_LIBDIR=$(get_libdir)
|
|
||||||
-DINSTALL_MANDIR=share/man
|
|
||||||
-DINSTALL_MYSQLSHAREDIR=share/mysql
|
|
||||||
-DINSTALL_PLUGINDIR=$(get_libdir)/mysql/plugin
|
|
||||||
-DINSTALL_SCRIPTDIR=share/mysql/scripts
|
|
||||||
-DINSTALL_MYSQLDATADIR="${EPREFIX}/var/lib/mysql"
|
|
||||||
-DINSTALL_SBINDIR=sbin
|
|
||||||
-DINSTALL_SUPPORTFILESDIR="${EPREFIX}/usr/share/mysql"
|
|
||||||
-DCOMPILATION_COMMENT="Gentoo Linux ${PF}"
|
|
||||||
-DWITH_UNIT_TESTS=$(usex test ON OFF)
|
|
||||||
### TODO: make this system but issues with UTF-8 prevent it
|
|
||||||
-DWITH_EDITLINE=bundled
|
|
||||||
-DWITH_ZLIB=system
|
|
||||||
-DWITH_LIBWRAP=0
|
|
||||||
-DENABLED_LOCAL_INFILE=1
|
|
||||||
-DMYSQL_UNIX_ADDR="${EPREFIX}/var/run/mysqld/mysqld.sock"
|
|
||||||
-DWITH_DEFAULT_COMPILER_OPTIONS=0
|
|
||||||
-DWITH_DEFAULT_FEATURE_SET=0
|
|
||||||
# The build forces this to be defined when cross-compiling. We pass it
|
|
||||||
# all the time for simplicity and to make sure it is actually correct.
|
|
||||||
-DSTACK_DIRECTION=$(tc-stack-grows-down && echo -1 || echo 1)
|
|
||||||
-DWITH_LIBEVENT=NO
|
|
||||||
-DWITHOUT_CLIENTLIBS=YES
|
|
||||||
-DENABLE_DTRACE=$(usex systemtap)
|
|
||||||
-DWITH_SSL=$(usex yassl bundled system)
|
|
||||||
-DINSTALL_MYSQLTESTDIR=$(usex test 'share/mysql/mysql-test' '')
|
|
||||||
-DWITHOUT_VALIDATE_PASSWORD=1
|
|
||||||
)
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
|
|
||||||
if [[ ( -n ${MYSQL_DEFAULT_CHARSET} ) && ( -n ${MYSQL_DEFAULT_COLLATION} ) ]]; then
|
|
||||||
ewarn "You are using a custom charset of ${MYSQL_DEFAULT_CHARSET}"
|
|
||||||
ewarn "and a collation of ${MYSQL_DEFAULT_COLLATION}."
|
|
||||||
ewarn "You MUST file bugs without these variables set."
|
|
||||||
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DDEFAULT_CHARSET=${MYSQL_DEFAULT_CHARSET}
|
|
||||||
-DDEFAULT_COLLATION=${MYSQL_DEFAULT_COLLATION}
|
|
||||||
)
|
|
||||||
|
|
||||||
elif ! use latin1 ; then
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DDEFAULT_CHARSET=utf8
|
|
||||||
-DDEFAULT_COLLATION=utf8_general_ci
|
|
||||||
)
|
|
||||||
else
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DDEFAULT_CHARSET=latin1
|
|
||||||
-DDEFAULT_COLLATION=latin1_swedish_ci
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITH_NUMA=$(usex numa ON OFF)
|
|
||||||
-DEXTRA_CHARSETS=all
|
|
||||||
-DDISABLE_SHARED=$(usex static YES NO)
|
|
||||||
-DWITH_DEBUG=$(usex debug)
|
|
||||||
-DWITH_EMBEDDED_SERVER=OFF
|
|
||||||
-DENABLED_PROFILING=$(usex profiling)
|
|
||||||
)
|
|
||||||
|
|
||||||
if use static; then
|
|
||||||
mycmakeargs+=( -DWITH_PIC=1 )
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Storage engines
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITH_ARCHIVE_STORAGE_ENGINE=1
|
|
||||||
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
|
|
||||||
-DWITH_CSV_STORAGE_ENGINE=1
|
|
||||||
-DWITH_HEAP_STORAGE_ENGINE=1
|
|
||||||
-DWITH_INNOBASE_STORAGE_ENGINE=1
|
|
||||||
-DWITH_MYISAMMRG_STORAGE_ENGINE=1
|
|
||||||
-DWITH_MYISAM_STORAGE_ENGINE=1
|
|
||||||
-DWITH_PARTITION_STORAGE_ENGINE=1
|
|
||||||
-DWITH_INNODB_MEMCACHED=0
|
|
||||||
)
|
|
||||||
|
|
||||||
else
|
|
||||||
mycmakeargs+=(
|
|
||||||
-DWITHOUT_SERVER=1
|
|
||||||
-DWITH_EMBEDDED_SERVER=OFF
|
|
||||||
-DEXTRA_CHARSETS=none
|
|
||||||
)
|
|
||||||
fi
|
|
||||||
|
|
||||||
cmake-utils_src_configure
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
cmake-utils_src_compile
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
cmake-utils_src_install
|
|
||||||
|
|
||||||
# Kill old libmysqclient_r symlinks if they exist. Time to fix what depends on them.
|
|
||||||
find "${D}" -name 'libmysqlclient_r.*' -type l -delete || die
|
|
||||||
# Make sure the vars are correctly initialized
|
|
||||||
mysql_init_vars
|
|
||||||
|
|
||||||
# Convenience links
|
|
||||||
einfo "Making Convenience links for mysqlcheck multi-call binary"
|
|
||||||
dosym "mysqlcheck" "/usr/bin/mysqlanalyze"
|
|
||||||
dosym "mysqlcheck" "/usr/bin/mysqlrepair"
|
|
||||||
dosym "mysqlcheck" "/usr/bin/mysqloptimize"
|
|
||||||
|
|
||||||
# INSTALL_LAYOUT=STANDALONE causes cmake to create a /usr/data dir
|
|
||||||
if [[ -d "${ED}/usr/data" ]] ; then
|
|
||||||
rm -Rf "${ED}/usr/data" || die
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Unless they explicitly specific USE=test, then do not install the
|
|
||||||
# testsuite. It DOES have a use to be installed, esp. when you want to do a
|
|
||||||
# validation of your database configuration after tuning it.
|
|
||||||
if ! use test ; then
|
|
||||||
rm -rf "${D}/${MY_SHAREDSTATEDIR}/mysql-test"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Configuration stuff
|
|
||||||
einfo "Building default configuration ..."
|
|
||||||
insinto "${MY_SYSCONFDIR#${EPREFIX}}"
|
|
||||||
[[ -f "${S%/}/scripts/mysqlaccess.conf" ]] && doins "${S%/}"/scripts/mysqlaccess.conf
|
|
||||||
local mycnf_src="my.cnf-5.6"
|
|
||||||
sed -e "s!@DATADIR@!${MY_DATADIR}!g" \
|
|
||||||
"${FILESDIR%/}/${mycnf_src}" \
|
|
||||||
> "${TMPDIR%/}/my.cnf.ok" || die
|
|
||||||
use prefix && sed -i -r -e '/^user[[:space:]]*=[[:space:]]*mysql$/d' "${TMPDIR%/}/my.cnf.ok"
|
|
||||||
if use latin1 ; then
|
|
||||||
sed -i \
|
|
||||||
-e "/character-set/s|utf8|latin1|g" \
|
|
||||||
"${TMPDIR%/}/my.cnf.ok" || die
|
|
||||||
fi
|
|
||||||
eprefixify "${TMPDIR%/}/my.cnf.ok"
|
|
||||||
newins "${TMPDIR}/my.cnf.ok" my.cnf
|
|
||||||
|
|
||||||
if use server ; then
|
|
||||||
einfo "Including support files and sample configurations"
|
|
||||||
docinto "support-files"
|
|
||||||
local script
|
|
||||||
for script in \
|
|
||||||
"${S}"/support-files/magic
|
|
||||||
do
|
|
||||||
[[ -f "$script" ]] && dodoc "${script}"
|
|
||||||
done
|
|
||||||
|
|
||||||
docinto "scripts"
|
|
||||||
for script in "${S}"/scripts/mysql* ; do
|
|
||||||
[[ ( -f "$script" ) && ( "${script%.sh}" == "${script}" ) ]] && dodoc "${script}"
|
|
||||||
done
|
|
||||||
fi
|
|
||||||
|
|
||||||
#Remove mytop if perl is not selected
|
|
||||||
[[ -e "${ED}/usr/bin/mytop" ]] && ! use perl && rm -f "${ED}/usr/bin/mytop"
|
|
||||||
}
|
|
||||||
|
|
||||||
# Official test instructions:
|
|
||||||
# USE='perl server static-libs' \
|
|
||||||
# FEATURES='test userpriv -usersandbox' \
|
|
||||||
# ebuild mysql-X.X.XX.ebuild \
|
|
||||||
# digest clean package
|
|
||||||
src_test() {
|
|
||||||
|
|
||||||
_disable_test() {
|
|
||||||
local rawtestname reason
|
|
||||||
rawtestname="${1}" ; shift
|
|
||||||
reason="${@}"
|
|
||||||
ewarn "test '${rawtestname}' disabled: '${reason}'"
|
|
||||||
echo ${rawtestname} : ${reason} >> "${T}/disabled.def"
|
|
||||||
}
|
|
||||||
|
|
||||||
local TESTDIR="${BUILD_DIR}/mysql-test"
|
|
||||||
local retstatus_unit
|
|
||||||
local retstatus_tests
|
|
||||||
|
|
||||||
if ! use server ; then
|
|
||||||
einfo "Skipping server tests due to minimal build."
|
|
||||||
return 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
|
||||||
# localhost. Also causes weird failures.
|
|
||||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
|
||||||
|
|
||||||
if [[ $UID -eq 0 ]]; then
|
|
||||||
die "Testing with FEATURES=-userpriv is no longer supported by upstream. Tests MUST be run as non-root."
|
|
||||||
fi
|
|
||||||
has usersandbox $FEATURES && ewarn "Some tests may fail with FEATURES=usersandbox"
|
|
||||||
|
|
||||||
einfo ">>> Test phase [test]: ${CATEGORY}/${PF}"
|
|
||||||
|
|
||||||
# Run CTest (test-units)
|
|
||||||
cmake-utils_src_test
|
|
||||||
retstatus_unit=$?
|
|
||||||
|
|
||||||
# Ensure that parallel runs don't die
|
|
||||||
export MTR_BUILD_THREAD="$((${RANDOM} % 100))"
|
|
||||||
# Enable parallel testing, auto will try to detect number of cores
|
|
||||||
# You may set this by hand.
|
|
||||||
# The default maximum is 8 unless MTR_MAX_PARALLEL is increased
|
|
||||||
export MTR_PARALLEL="${MTR_PARALLEL:-auto}"
|
|
||||||
|
|
||||||
# create directories because mysqladmin might run out of order
|
|
||||||
mkdir -p "${T}"/var-tests{,/log} || die
|
|
||||||
|
|
||||||
# Run mysql tests
|
|
||||||
pushd "${TESTDIR}" > /dev/null || die
|
|
||||||
|
|
||||||
touch "${T}/disabled.def"
|
|
||||||
# These are failing in MySQL 5.7 for now and are believed to be
|
|
||||||
# false positives:
|
|
||||||
#
|
|
||||||
local t
|
|
||||||
|
|
||||||
for t in auth_sec.keyring_udf federated.federated_plugin ; do
|
|
||||||
_disable_test "$t" "False positives in Gentoo"
|
|
||||||
done
|
|
||||||
|
|
||||||
# run mysql-test tests
|
|
||||||
perl mysql-test-run.pl --force --vardir="${T}/var-tests" --reorder --skip-test=tokudb --skip-test-list="${T}/disabled.def"
|
|
||||||
retstatus_tests=$?
|
|
||||||
|
|
||||||
popd > /dev/null || die
|
|
||||||
|
|
||||||
# Cleanup is important for these testcases.
|
|
||||||
pkill -9 -f "${S}/ndb" 2>/dev/null
|
|
||||||
pkill -9 -f "${S}/sql" 2>/dev/null
|
|
||||||
|
|
||||||
local failures=""
|
|
||||||
[[ $retstatus_unit -eq 0 ]] || failures="${failures} test-unit"
|
|
||||||
[[ $retstatus_tests -eq 0 ]] || failures="${failures} tests"
|
|
||||||
|
|
||||||
[[ -z "$failures" ]] || die "Test failures: $failures"
|
|
||||||
einfo "Tests successfully completed"
|
|
||||||
}
|
|
||||||
|
|
||||||
mysql_init_vars() {
|
|
||||||
MY_SHAREDSTATEDIR=${MY_SHAREDSTATEDIR="${EPREFIX%/}/usr/share/mysql"}
|
|
||||||
MY_SYSCONFDIR=${MY_SYSCONFDIR="${EPREFIX%/}/etc/mysql"}
|
|
||||||
MY_LOCALSTATEDIR=${MY_LOCALSTATEDIR="${EPREFIX%/}/var/lib/mysql"}
|
|
||||||
MY_LOGDIR=${MY_LOGDIR="${EPREFIX%/}/var/log/mysql"}
|
|
||||||
|
|
||||||
if [[ -z "${MY_DATADIR}" ]] ; then
|
|
||||||
MY_DATADIR=""
|
|
||||||
if [[ -f "${MY_SYSCONFDIR}/my.cnf" ]] ; then
|
|
||||||
MY_DATADIR=`"my_print_defaults" mysqld 2>/dev/null \
|
|
||||||
| sed -ne '/datadir/s|^--datadir=||p' \
|
|
||||||
| tail -n1`
|
|
||||||
if [[ -z "${MY_DATADIR}" ]] ; then
|
|
||||||
MY_DATADIR=`grep ^datadir "${MY_SYSCONFDIR}/my.cnf" \
|
|
||||||
| sed -e 's/.*=\s*//' \
|
|
||||||
| tail -n1`
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [[ -z "${MY_DATADIR}" ]] ; then
|
|
||||||
MY_DATADIR="${MY_LOCALSTATEDIR}"
|
|
||||||
einfo "Using default MY_DATADIR"
|
|
||||||
fi
|
|
||||||
elog "MySQL MY_DATADIR is ${MY_DATADIR}"
|
|
||||||
|
|
||||||
if [[ -z "${PREVIOUS_DATADIR}" ]] ; then
|
|
||||||
if [[ -e "${MY_DATADIR}" ]] ; then
|
|
||||||
# If you get this and you're wondering about it, see bug #207636
|
|
||||||
elog "MySQL datadir found in ${MY_DATADIR}"
|
|
||||||
elog "A new one will not be created."
|
|
||||||
PREVIOUS_DATADIR="yes"
|
|
||||||
else
|
|
||||||
PREVIOUS_DATADIR="no"
|
|
||||||
fi
|
|
||||||
export PREVIOUS_DATADIR
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
if [[ ${EBUILD_PHASE} == "config" ]]; then
|
|
||||||
local new_MY_DATADIR
|
|
||||||
new_MY_DATADIR=`"my_print_defaults" mysqld 2>/dev/null \
|
|
||||||
| sed -ne '/datadir/s|^--datadir=||p' \
|
|
||||||
| tail -n1`
|
|
||||||
|
|
||||||
if [[ ( -n "${new_MY_DATADIR}" ) && ( "${new_MY_DATADIR}" != "${MY_DATADIR}" ) ]]; then
|
|
||||||
ewarn "MySQL MY_DATADIR has changed"
|
|
||||||
ewarn "from ${MY_DATADIR}"
|
|
||||||
ewarn "to ${new_MY_DATADIR}"
|
|
||||||
MY_DATADIR="${new_MY_DATADIR}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
export MY_SHAREDSTATEDIR MY_SYSCONFDIR
|
|
||||||
export MY_LOCALSTATEDIR MY_LOGDIR
|
|
||||||
export MY_DATADIR
|
|
||||||
}
|
|
||||||
|
|
||||||
pkg_config() {
|
|
||||||
_getoptval() {
|
|
||||||
local mypd="${EROOT%/}"/usr/bin/my_print_defaults
|
|
||||||
local section="$1"
|
|
||||||
local flag="--${2}="
|
|
||||||
local extra_options="${3}"
|
|
||||||
"${mypd}" $extra_options $section | sed -n "/^${flag}/s,${flag},,gp"
|
|
||||||
}
|
|
||||||
local old_MY_DATADIR="${MY_DATADIR}"
|
|
||||||
local old_HOME="${HOME}"
|
|
||||||
# my_print_defaults needs to read stuff in $HOME/.my.cnf
|
|
||||||
export HOME=${EPREFIX%/}/root
|
|
||||||
|
|
||||||
# Make sure the vars are correctly initialized
|
|
||||||
mysql_init_vars
|
|
||||||
|
|
||||||
[[ -z "${MY_DATADIR}" ]] && die "Sorry, unable to find MY_DATADIR"
|
|
||||||
if [[ ! -x "${EROOT%/}/usr/sbin/mysqld" ]] ; then
|
|
||||||
die "Minimal builds do NOT include the MySQL server"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ( -n "${MY_DATADIR}" ) && ( "${MY_DATADIR}" != "${old_MY_DATADIR}" ) ]]; then
|
|
||||||
local MY_DATADIR_s="${ROOT%/}/${MY_DATADIR}"
|
|
||||||
MY_DATADIR_s="${MY_DATADIR_s%%/}"
|
|
||||||
local old_MY_DATADIR_s="${ROOT%/}/${old_MY_DATADIR}"
|
|
||||||
old_MY_DATADIR_s="${old_MY_DATADIR_s%%/}"
|
|
||||||
|
|
||||||
if [[ ( -d "${old_MY_DATADIR_s}" ) && ( "${old_MY_DATADIR_s}" != / ) ]]; then
|
|
||||||
if [[ -d "${MY_DATADIR_s}" ]]; then
|
|
||||||
ewarn "Both ${old_MY_DATADIR_s} and ${MY_DATADIR_s} exist"
|
|
||||||
ewarn "Attempting to use ${MY_DATADIR_s} and preserving ${old_MY_DATADIR_s}"
|
|
||||||
else
|
|
||||||
elog "Moving MY_DATADIR from ${old_MY_DATADIR_s} to ${MY_DATADIR_s}"
|
|
||||||
mv --strip-trailing-slashes -T "${old_MY_DATADIR_s}" "${MY_DATADIR_s}" \
|
|
||||||
|| die "Moving MY_DATADIR failed"
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
ewarn "Previous MY_DATADIR (${old_MY_DATADIR_s}) does not exist"
|
|
||||||
if [[ -d "${MY_DATADIR_s}" ]]; then
|
|
||||||
ewarn "Attempting to use ${MY_DATADIR_s}"
|
|
||||||
else
|
|
||||||
eerror "New MY_DATADIR (${MY_DATADIR_s}) does not exist"
|
|
||||||
die "Configuration Failed! Please reinstall ${CATEGORY}/${PN}"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
local pwd1="a"
|
|
||||||
local pwd2="b"
|
|
||||||
local maxtry=15
|
|
||||||
|
|
||||||
if [ -z "${MYSQL_ROOT_PASSWORD}" ]; then
|
|
||||||
local tmp_mysqld_password_source=
|
|
||||||
|
|
||||||
for tmp_mysqld_password_source in mysql client; do
|
|
||||||
einfo "Trying to get password for mysql 'root' user from '${tmp_mysqld_password_source}' section ..."
|
|
||||||
MYSQL_ROOT_PASSWORD="$(_getoptval "${tmp_mysqld_password_source}" password)"
|
|
||||||
if [[ -n "${MYSQL_ROOT_PASSWORD}" ]]; then
|
|
||||||
if [[ ${MYSQL_ROOT_PASSWORD} == *$'\n'* ]]; then
|
|
||||||
ewarn "Ignoring password from '${tmp_mysqld_password_source}' section due to newline character (do you have multiple password options set?)!"
|
|
||||||
MYSQL_ROOT_PASSWORD=
|
|
||||||
continue
|
|
||||||
fi
|
|
||||||
|
|
||||||
einfo "Found password in '${tmp_mysqld_password_source}' section!"
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
# Sometimes --show is required to display passwords in some implementations of my_print_defaults
|
|
||||||
if [[ "${MYSQL_ROOT_PASSWORD}" == '*****' ]]; then
|
|
||||||
MYSQL_ROOT_PASSWORD="$(_getoptval "${tmp_mysqld_password_source}" password --show)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
unset tmp_mysqld_password_source
|
|
||||||
fi
|
|
||||||
MYSQL_TMPDIR="$(_getoptval mysqld tmpdir)"
|
|
||||||
# These are dir+prefix
|
|
||||||
MYSQL_RELAY_LOG="$(_getoptval mysqld relay-log)"
|
|
||||||
MYSQL_RELAY_LOG=${MYSQL_RELAY_LOG%/*}
|
|
||||||
MYSQL_LOG_BIN="$(_getoptval mysqld log-bin)"
|
|
||||||
MYSQL_LOG_BIN=${MYSQL_LOG_BIN%/*}
|
|
||||||
|
|
||||||
if [[ ! -d "${EROOT%/}/$MYSQL_TMPDIR" ]]; then
|
|
||||||
einfo "Creating MySQL tmpdir $MYSQL_TMPDIR"
|
|
||||||
install -d -m 770 -o mysql -g mysql "${EROOT%/}/$MYSQL_TMPDIR"
|
|
||||||
fi
|
|
||||||
if [[ ! -d "${EROOT%/}/$MYSQL_LOG_BIN" ]]; then
|
|
||||||
einfo "Creating MySQL log-bin directory $MYSQL_LOG_BIN"
|
|
||||||
install -d -m 770 -o mysql -g mysql "${EROOT%/}/$MYSQL_LOG_BIN"
|
|
||||||
fi
|
|
||||||
if [[ ! -d "${EROOT%/}/$MYSQL_RELAY_LOG" ]]; then
|
|
||||||
einfo "Creating MySQL relay-log directory $MYSQL_RELAY_LOG"
|
|
||||||
install -d -m 770 -o mysql -g mysql "${EROOT%/}/$MYSQL_RELAY_LOG"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "${ROOT%/}/${MY_DATADIR}/mysql" ]] ; then
|
|
||||||
ewarn "You have already a MySQL database in place."
|
|
||||||
ewarn "(${ROOT%/}/${MY_DATADIR}/*)"
|
|
||||||
ewarn "Please rename or delete it if you wish to replace it."
|
|
||||||
die "MySQL database already exists!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Bug #213475 - MySQL _will_ object strenously if your machine is named
|
|
||||||
# localhost. Also causes weird failures.
|
|
||||||
[[ "${HOSTNAME}" == "localhost" ]] && die "Your machine must NOT be named localhost"
|
|
||||||
|
|
||||||
if [ -z "${MYSQL_ROOT_PASSWORD}" ]; then
|
|
||||||
|
|
||||||
einfo "Please provide a password for the mysql 'root' user now"
|
|
||||||
einfo "or through the ${HOME}/.my.cnf file."
|
|
||||||
ewarn "Avoid [\"'\\_%] characters in the password"
|
|
||||||
read -rsp " >" pwd1 ; echo
|
|
||||||
|
|
||||||
einfo "Retype the password"
|
|
||||||
read -rsp " >" pwd2 ; echo
|
|
||||||
|
|
||||||
if [[ "x$pwd1" != "x$pwd2" ]] ; then
|
|
||||||
die "Passwords are not the same"
|
|
||||||
fi
|
|
||||||
MYSQL_ROOT_PASSWORD="${pwd1}"
|
|
||||||
unset pwd1 pwd2
|
|
||||||
fi
|
|
||||||
|
|
||||||
local options
|
|
||||||
local sqltmp="$(emktemp)"
|
|
||||||
|
|
||||||
# Fix bug 446200. Don't reference host my.cnf, needs to come first,
|
|
||||||
# see http://bugs.mysql.com/bug.php?id=31312
|
|
||||||
use prefix && options="${options} '--defaults-file=${MY_SYSCONFDIR}/my.cnf'"
|
|
||||||
|
|
||||||
local help_tables="${EROOT%/}${MY_SHAREDSTATEDIR}/fill_help_tables.sql"
|
|
||||||
[[ -r "${help_tables}" ]] \
|
|
||||||
&& cp "${help_tables}" "${TMPDIR}/fill_help_tables.sql" \
|
|
||||||
|| touch "${TMPDIR}/fill_help_tables.sql"
|
|
||||||
help_tables="${TMPDIR}/fill_help_tables.sql"
|
|
||||||
|
|
||||||
# Figure out which options we need to disable to do the setup
|
|
||||||
local helpfile="${TMPDIR%/}/mysqld-help"
|
|
||||||
"${EROOT%/}/usr/sbin/mysqld" --verbose --help >"${helpfile}" 2>/dev/null
|
|
||||||
for opt in host-cache name-resolve networking slave-start \
|
|
||||||
federated ssl log-bin relay-log slow-query-log external-locking \
|
|
||||||
log-slave-updates \
|
|
||||||
; do
|
|
||||||
optexp="--(skip-)?${opt}" optfull="--loose-skip-${opt}"
|
|
||||||
egrep -sq -- "${optexp}" "${helpfile}" && options="${options} ${optfull}"
|
|
||||||
done
|
|
||||||
|
|
||||||
einfo "Creating the mysql database and setting proper permissions on it ..."
|
|
||||||
|
|
||||||
# Now that /var/run is a tmpfs mount point, we need to ensure it exists before using it
|
|
||||||
PID_DIR="${EROOT%/}/var/run/mysqld"
|
|
||||||
if [[ ! -d "${PID_DIR}" ]]; then
|
|
||||||
install -d -m 755 -o mysql -g mysql "${PID_DIR}" || die "Could not create pid directory"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ ! -d "${MY_DATADIR}" ]]; then
|
|
||||||
install -d -m 750 -o mysql -g mysql "${MY_DATADIR}" || die "Could not create data directory"
|
|
||||||
fi
|
|
||||||
|
|
||||||
pushd "${TMPDIR}" &>/dev/null || die
|
|
||||||
|
|
||||||
# Filling timezones, see
|
|
||||||
# http://dev.mysql.com/doc/mysql/en/time-zone-support.html
|
|
||||||
"${EROOT%/}/usr/bin/mysql_tzinfo_to_sql" "${EROOT%/}/usr/share/zoneinfo" >> "${sqltmp}" 2>/dev/null
|
|
||||||
chown mysql "${sqltmp}" || die
|
|
||||||
|
|
||||||
local cmd=( "${EROOT%/}/usr/share/mysql/scripts/mysql_install_db" )
|
|
||||||
[[ -f "${cmd}" ]] || cmd=( "${EROOT%/}/usr/bin/mysql_install_db" )
|
|
||||||
if [[ -r "${help_tables}" ]] ; then
|
|
||||||
cat "${help_tables}" >> "${sqltmp}"
|
|
||||||
fi
|
|
||||||
cmd+=( "--basedir=${EPREFIX%/}/usr" ${options} "--datadir=${ROOT%/}${MY_DATADIR}" "--tmpdir=${ROOT%/}${MYSQL_TMPDIR}" )
|
|
||||||
einfo "Command: ${cmd[*]}"
|
|
||||||
su -s /bin/sh -c "${cmd[*]}" mysql \
|
|
||||||
>"${TMPDIR%/}"/mysql_install_db.log 2>&1
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
grep -B5 -A999 -i "ERROR" "${TMPDIR%/}"/mysql_install_db.log 1>&2
|
|
||||||
die "Failed to initialize mysqld. Please review ${EPREFIX%/}/var/log/mysql/mysqld.err AND ${TMPDIR%/}/mysql_install_db.log"
|
|
||||||
fi
|
|
||||||
popd &>/dev/null || die
|
|
||||||
[[ -f "${ROOT%/}/${MY_DATADIR}/mysql/user.frm" ]] \
|
|
||||||
|| die "MySQL databases not installed"
|
|
||||||
|
|
||||||
use prefix || options="${options} --user=mysql"
|
|
||||||
|
|
||||||
local socket="${EROOT%/}/var/run/mysqld/mysqld${RANDOM}.sock"
|
|
||||||
local pidfile="${EROOT%/}/var/run/mysqld/mysqld${RANDOM}.pid"
|
|
||||||
local mysqld="${EROOT%/}/usr/sbin/mysqld \
|
|
||||||
${options} \
|
|
||||||
$(use prefix || echo --user=mysql) \
|
|
||||||
--log-warnings=0 \
|
|
||||||
--basedir=${EROOT%/}/usr \
|
|
||||||
--datadir=${ROOT%/}/${MY_DATADIR} \
|
|
||||||
--max_allowed_packet=8M \
|
|
||||||
--net_buffer_length=16K \
|
|
||||||
--socket=${socket} \
|
|
||||||
--pid-file=${pidfile} \
|
|
||||||
--tmpdir=${ROOT}/${MYSQL_TMPDIR}"
|
|
||||||
#einfo "About to start mysqld: ${mysqld}"
|
|
||||||
ebegin "Starting mysqld"
|
|
||||||
einfo "Command ${mysqld}"
|
|
||||||
${mysqld} &
|
|
||||||
rc=$?
|
|
||||||
while ! [[ -S "${socket}" || "${maxtry}" -lt 1 ]] ; do
|
|
||||||
maxtry=$((${maxtry}-1))
|
|
||||||
echo -n "."
|
|
||||||
sleep 1
|
|
||||||
done
|
|
||||||
eend $rc
|
|
||||||
|
|
||||||
if ! [[ -S "${socket}" ]]; then
|
|
||||||
die "Completely failed to start up mysqld with: ${mysqld}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
ebegin "Setting root password"
|
|
||||||
# Do this from memory, as we don't want clear text passwords in temp files
|
|
||||||
local sql="SET PASSWORD FOR 'root'@'localhost' = PASSWORD('${MYSQL_ROOT_PASSWORD}');"
|
|
||||||
"${EROOT%/}/usr/bin/mysql" \
|
|
||||||
--no-defaults \
|
|
||||||
"--socket=${socket}" \
|
|
||||||
-hlocalhost \
|
|
||||||
-e "${sql}"
|
|
||||||
eend $?
|
|
||||||
|
|
||||||
if [[ -n "${sqltmp}" ]] ; then
|
|
||||||
ebegin "Loading \"zoneinfo\", this step may require a few seconds"
|
|
||||||
"${EROOT%/}/usr/bin/mysql" \
|
|
||||||
--socket="${socket}" \
|
|
||||||
-hlocalhost \
|
|
||||||
-uroot \
|
|
||||||
--password="${MYSQL_ROOT_PASSWORD}" \
|
|
||||||
mysql < "${sqltmp}"
|
|
||||||
rc=$?
|
|
||||||
eend $?
|
|
||||||
[[ $rc -ne 0 ]] && ewarn "Failed to load zoneinfo!"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Stop the server and cleanup
|
|
||||||
einfo "Stopping the server ..."
|
|
||||||
kill $(< "${pidfile}" )
|
|
||||||
rm -f "${sqltmp}"
|
|
||||||
wait %1
|
|
||||||
einfo "Done"
|
|
||||||
}
|
|
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST simgear-2018.1.1.tar.bz2 1303653 BLAKE2B 44b98c2ba8ae292c3736d04813869df528d7ca14bbdc1773e1f4bd4b7b4899b5fd8605a7ada5dcc2d5e863e82ee2f1e1d2b980d3bd775c92325ad3ca834306c3 SHA512 3de7a15dc7b60e9e7466950c1b466d0daefea84b4730a9b8cf5e26c41cece5fd03ccf57b0f3cb977093482beb734560812e347003e19e0bb4b40d81820a11563
|
DIST simgear-2018.1.1.tar.bz2 1303653 BLAKE2B 44b98c2ba8ae292c3736d04813869df528d7ca14bbdc1773e1f4bd4b7b4899b5fd8605a7ada5dcc2d5e863e82ee2f1e1d2b980d3bd775c92325ad3ca834306c3 SHA512 3de7a15dc7b60e9e7466950c1b466d0daefea84b4730a9b8cf5e26c41cece5fd03ccf57b0f3cb977093482beb734560812e347003e19e0bb4b40d81820a11563
|
||||||
DIST simgear-2018.2.1.tar.bz2 1314943 BLAKE2B 60e44896d466085014020874a1be6ab3f6f87e472f985237404dffb5dfbd5c25f0d330701276e0b8d075830695872eb7521bb4eb5b0107edac5977c3aab85bf7 SHA512 6756994e0688a1f3699c33548ea90b19e99a439ea2f2002cf524629370cd1161a1556ee966fc3a781141fc7a08e7574adc0ecbe6dec67e72d631c6c4d744e4dd
|
DIST simgear-2018.2.1.tar.bz2 1314943 BLAKE2B 60e44896d466085014020874a1be6ab3f6f87e472f985237404dffb5dfbd5c25f0d330701276e0b8d075830695872eb7521bb4eb5b0107edac5977c3aab85bf7 SHA512 6756994e0688a1f3699c33548ea90b19e99a439ea2f2002cf524629370cd1161a1556ee966fc3a781141fc7a08e7574adc0ecbe6dec67e72d631c6c4d744e4dd
|
||||||
|
DIST simgear-2018.3.1.tar.bz2 1330322 BLAKE2B 5b350ddce726d8ea15c4a1a64a28b9e4307647378c52989231daa7b4a0e53730dc754c239660d0f5ec33189ece6629448b37f61ca7578c21c3aa4147d4565a26 SHA512 673ee76e9f4f9c9adb25a2523bad5b70a079d821391cb8fc9f9e651ad6c195356ac9a8ba18a65df365dc66990406de287099fb249ca23eefc111ebba884f7289
|
||||||
|
@ -0,0 +1,60 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-utils toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Development library for simulation games"
|
||||||
|
HOMEPAGE="http://www.simgear.org/"
|
||||||
|
SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="+dns debug gdal openmp subversion test"
|
||||||
|
|
||||||
|
COMMON_DEPEND="
|
||||||
|
dev-libs/expat
|
||||||
|
>=dev-games/openscenegraph-3.2.0
|
||||||
|
media-libs/openal
|
||||||
|
net-misc/curl
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/opengl
|
||||||
|
dns? ( net-libs/udns )
|
||||||
|
gdal? ( sci-libs/gdal )
|
||||||
|
"
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
>=dev-libs/boost-1.44
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
subversion? ( dev-vcs/subversion )
|
||||||
|
"
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_setup() {
|
||||||
|
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_DNS=$(usex dns)
|
||||||
|
-DENABLE_GDAL=$(usex gdal)
|
||||||
|
-DENABLE_OPENMP=$(usex openmp)
|
||||||
|
-DENABLE_PKGUTIL=ON
|
||||||
|
-DENABLE_RTI=OFF
|
||||||
|
-DENABLE_SIMD=ON
|
||||||
|
-DENABLE_SOUND=ON
|
||||||
|
-DENABLE_TESTS=$(usex test)
|
||||||
|
-DSIMGEAR_HEADLESS=OFF
|
||||||
|
-DSIMGEAR_SHARED=ON
|
||||||
|
-DSYSTEM_EXPAT=ON
|
||||||
|
-DSYSTEM_UDNS=ON
|
||||||
|
-DUSE_AEONWAVE=OFF
|
||||||
|
-DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO perhaps track it
|
||||||
|
)
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,53 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
PHP_EXT_NAME="event"
|
||||||
|
PHP_EXT_INI="yes"
|
||||||
|
PHP_EXT_ZENDEXT="no"
|
||||||
|
DOCS=( README.md )
|
||||||
|
|
||||||
|
USE_PHP="php5-6 php7-0 php7-1 php7-2 php7-3"
|
||||||
|
|
||||||
|
inherit php-ext-pecl-r3
|
||||||
|
|
||||||
|
KEYWORDS="~amd64 ~ia64 ~x86"
|
||||||
|
LICENSE="PHP-3.01"
|
||||||
|
|
||||||
|
DESCRIPTION="PHP wrapper for libevent2"
|
||||||
|
LICENSE="PHP-3"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
>=dev-libs/libevent-2.0.2
|
||||||
|
ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) )
|
||||||
|
php_targets_php5-6? ( dev-lang/php:5.6[sockets?] )
|
||||||
|
php_targets_php7-0? ( dev-lang/php:7.0[sockets?] )
|
||||||
|
php_targets_php7-1? ( dev-lang/php:7.1[sockets?] )
|
||||||
|
php_targets_php7-2? ( dev-lang/php:7.2[sockets?] )
|
||||||
|
php_targets_php7-3? ( dev-lang/php:7.3[sockets?] )"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND} !dev-php/pecl-libevent"
|
||||||
|
|
||||||
|
IUSE="debug examples +extra libressl +sockets +ssl threads"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local PHP_EXT_ECONF_ARGS=(
|
||||||
|
--with-event-core
|
||||||
|
$(use_enable debug event-debug)
|
||||||
|
$(use_with extra event-extra)
|
||||||
|
$(use_with ssl event-openssl)
|
||||||
|
$(use_with threads event-pthreads)
|
||||||
|
$(use_enable sockets event-sockets)
|
||||||
|
)
|
||||||
|
php-ext-source-r3_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local slot
|
||||||
|
for slot in $(php_get_slots); do
|
||||||
|
php_init_slot_env "${slot}"
|
||||||
|
SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test
|
||||||
|
done
|
||||||
|
}
|
@ -1,4 +1,2 @@
|
|||||||
DIST yaml-1.3.0.tgz 37075 BLAKE2B 90fc101dc5b1d040efbbda481d28a862dd4021d09cf1853644db8769b04ca7c986a38758247b6e61dd38bdae31f995fef04f7b381d303b3914b8126806e99ce8 SHA512 60f54db7cd22ef1dc31cb5b31950a138e0bd2cc436f9e667aaa69ddceb4dcd7aeea9ecca9d424cb6822c2300b382de8f10c07403f80df749192820b27881d96a
|
DIST yaml-1.3.2.tgz 37354 BLAKE2B a8124b0b24ba0686e028b27d9659f7c273435861cba23da321a650813aca28394659fe3083ae08f992f9813912352d0f198d3348dded58a465275b7de4c227d6 SHA512 d1761ebda34b48894a50b831969c928d8a1d3a8577c5213bea92a3de97ec4cf908ffabcc269b2cafae29e49143b8403c3b370c3bfc6d20548c4093a3cb132263
|
||||||
DIST yaml-1.3.1.tgz 37263 BLAKE2B 4be9dad710a4b7b2ea3ed8222500bbf2c94807b1bed627c1460beb31b5745c1dd5484fed11d23bb7deec454fcbb5d88a93034c82f7fe978e6cbb26944c9f7c4f SHA512 67359e6b8d5b19ad594acd741dfb53006079fbdbdb7c3402be57c006f45c992158c505ad2bf0c52a1b997c9b9fac48724b1a44fc5744689b0f02b308324a4a4f
|
DIST yaml-2.0.4.tgz 39071 BLAKE2B 3a5dba0f6a16087909f4673543d64946e5929a5ef4cc616df6a4225aa2d274b2b5492b00ab0e95ed93f808bc2a4dd0a2f6d60c8c2ded078af35c4499042488d6 SHA512 138e5b4566800fc7d624baf71bc585d6d432755046e598ae9f4099fa565727e04d79bb171289a53eb9e5daa416ffee1b0fb4967c84976ac6cd6fc01b0a05fbae
|
||||||
DIST yaml-2.0.0.tgz 37960 BLAKE2B df325cb73c4788a3022661e841c9ab479a103bcee76d4f911d2ba673d7fa7344006d8ba9a22aed3a701accee49593d524ee506052ac30231f02463c34d7b51e9 SHA512 760c9f9f5738594e3ad55c030fa619bc891e1d5a8feb85bec2389e2fd4d6d4933fd13abf68c85eb1bb4cc3b6f4a66079ea75a2046c47fe4095b01a50c8e65eab
|
|
||||||
DIST yaml-2.0.2.tgz 38495 BLAKE2B c992c72b7ba84ca3d953109a9d274c7c3b203f3ce75630860f40a43a565e9ffd92f1d831e386624351879598ee305a64cb3b4228eccfa58b4bf1db76f994cab9 SHA512 b3dd2098826cd7cdcfd1e5d97b9015de66812dc90e506e74a4a50a56afed5f9de0449465bb807a36a13170f479897cc62a9b108653aa7eb81895abd5966bde1a
|
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
MY_PV="${PV/_beta/b}"
|
|
||||||
PHP_EXT_PECL_FILENAME="yaml-${MY_PV}.tgz"
|
|
||||||
PHP_EXT_NAME="yaml"
|
|
||||||
PHP_EXT_INI="yes"
|
|
||||||
PHP_EXT_ZENDEXT="no"
|
|
||||||
DOCS=( CREDITS README )
|
|
||||||
|
|
||||||
USE_PHP="php7-0 php5-6"
|
|
||||||
|
|
||||||
inherit php-ext-pecl-r3
|
|
||||||
|
|
||||||
USE_PHP="php5-6"
|
|
||||||
|
|
||||||
S="${WORKDIR}/yaml-${MY_PV}"
|
|
||||||
PHP_EXT_S="${S}"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DESCRIPTION="YAML 1.1 (YAML Ain't Markup Language) serialization for PHP"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="0"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=">=dev-libs/libyaml-0.1.0"
|
|
||||||
RDEPEND="${DEPEND}"
|
|
||||||
PDEPEND="php_targets_php7-0? ( dev-php/pecl-yaml:7 )"
|
|
||||||
PHP_EXT_ECONF_ARGS=""
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use php_targets_php5-6 ; then
|
|
||||||
php-ext-source-r3_src_prepare
|
|
||||||
else
|
|
||||||
default_src_prepare
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if use php_targets_php5-6 ; then
|
|
||||||
php-ext-pecl-r3_src_install
|
|
||||||
fi
|
|
||||||
}
|
|
@ -1,44 +0,0 @@
|
|||||||
# Copyright 1999-2016 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI=6
|
|
||||||
|
|
||||||
MY_PV="${PV/_rc/RC}"
|
|
||||||
PHP_EXT_PECL_FILENAME="yaml-${MY_PV}.tgz"
|
|
||||||
PHP_EXT_NAME="yaml"
|
|
||||||
PHP_EXT_INI="yes"
|
|
||||||
PHP_EXT_ZENDEXT="no"
|
|
||||||
DOCS=( CREDITS README )
|
|
||||||
|
|
||||||
USE_PHP="php7-0 php5-6"
|
|
||||||
|
|
||||||
inherit php-ext-pecl-r3
|
|
||||||
|
|
||||||
S="${WORKDIR}/yaml-${MY_PV}"
|
|
||||||
PHP_EXT_S="${S}"
|
|
||||||
USE_PHP="php7-0"
|
|
||||||
|
|
||||||
KEYWORDS="~amd64 ~x86"
|
|
||||||
|
|
||||||
DESCRIPTION="YAML 1.1 (YAML Ain't Markup Language) serialization for PHP"
|
|
||||||
LICENSE="MIT"
|
|
||||||
SLOT="7"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
DEPEND=">=dev-libs/libyaml-0.1.0"
|
|
||||||
RDEPEND="${DEPEND} php_targets_php5-6? ( dev-php/pecl-yaml:0[php_targets_php5-6] )"
|
|
||||||
PHP_EXT_ECONF_ARGS=""
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
if use php_targets_php7-0 ; then
|
|
||||||
php-ext-source-r3_src_prepare
|
|
||||||
else
|
|
||||||
default_src_prepare
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
if use php_targets_php7-0 ; then
|
|
||||||
php-ext-pecl-r3_src_install
|
|
||||||
fi
|
|
||||||
}
|
|
@ -0,0 +1,71 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI="6"
|
||||||
|
|
||||||
|
PHP_EXT_NAME="swoole"
|
||||||
|
PHP_EXT_INI="yes"
|
||||||
|
PHP_EXT_ZENDEXT="no"
|
||||||
|
PHP_EXT_SAPIS="cli"
|
||||||
|
DOCS=( README.md )
|
||||||
|
|
||||||
|
USE_PHP="php7-0 php7-1 php7-2 php7-3"
|
||||||
|
|
||||||
|
inherit php-ext-pecl-r3
|
||||||
|
|
||||||
|
HOMEPAGE="https://www.swoole.co.uk"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
|
||||||
|
DESCRIPTION="Event-driven asynchronous & concurrent & coroutine networking engine"
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
# Tests can hang. Disable until this no longer happens
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
DEPEND="
|
||||||
|
dev-libs/libaio
|
||||||
|
dev-libs/boost:0=
|
||||||
|
dev-libs/libpcre
|
||||||
|
http2? ( net-libs/nghttp2:0= )
|
||||||
|
ssl? ( !libressl? ( dev-libs/openssl:0= ) libressl? ( dev-libs/libressl:0= ) )
|
||||||
|
php_targets_php7-0? ( dev-lang/php:7.0[cli,sockets?] )
|
||||||
|
php_targets_php7-1? ( dev-lang/php:7.1[cli,sockets?] )
|
||||||
|
php_targets_php7-2? ( dev-lang/php:7.2[cli,sockets?] )
|
||||||
|
php_targets_php7-3? ( dev-lang/php:7.3[cli,sockets?] )
|
||||||
|
mysql? (
|
||||||
|
php_targets_php7-0? ( dev-lang/php:7.0[mysql,mysqli(+)] )
|
||||||
|
php_targets_php7-1? ( dev-lang/php:7.1[mysql,mysqli(+)] )
|
||||||
|
php_targets_php7-2? ( dev-lang/php:7.2[mysql,mysqli(+)] )
|
||||||
|
php_targets_php7-3? ( dev-lang/php:7.3[mysql,mysqli(+)] )
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="${DEPEND}"
|
||||||
|
|
||||||
|
IUSE="debug http2 libressl mysql sockets ssl"
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# PostgreSQL disabled due to Gentoo's slot system
|
||||||
|
# JEMalloc not included as it refuses to find a ${EROOT}usr/includes/jemalloc subdirectory
|
||||||
|
local PHP_EXT_ECONF_ARGS=(
|
||||||
|
--enable-swoole
|
||||||
|
--disable-coroutine-postgresql
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable http2)
|
||||||
|
$(use_enable mysql mysqlnd)
|
||||||
|
$(use_enable ssl openssl)
|
||||||
|
$(use_with ssl openssl-dir "${EROOT%/}/usr")
|
||||||
|
$(use_enable sockets)
|
||||||
|
)
|
||||||
|
|
||||||
|
php-ext-source-r3_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_test() {
|
||||||
|
local slot
|
||||||
|
for slot in $(php_get_slots); do
|
||||||
|
php_init_slot_env "${slot}"
|
||||||
|
[[ -f tests/template.phpt ]] && rm tests/template.phpt
|
||||||
|
SKIP_ONLINE_TESTS="yes" NO_INTERACTION="yes" emake test
|
||||||
|
done
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1 @@
|
|||||||
DIST shc-3.8.9.tgz 20536 BLAKE2B 68f2c18f79e28bcbf5116428ec16a4b6eceffba686aaf3e9075f14a77793831bbb9c80c7f44a849f152eb164000956a383343d4dc8b49fc8cf68758aa9a4d27e SHA512 e8a4f9b0ef6e90fc99ebeeb0af36b89d1020209429c9651a036ab1f51a293d9faa3b775b7f040e91997b6ff5a487cb45943fc3548fa6fa3e7282e0d6f74d2cd4
|
|
||||||
DIST shc-3.9.6.tar.gz 122644 BLAKE2B bef9993f49ffc7a1119862c8bd4b520a6122505493a59269218c6d46a0780e0788d3c9acc3975e642f9ea0bfd5a3907f0c1ff54bbc20c01fc630b2da096fc479 SHA512 dbda4af6740a8a719976d7260133ab3d92552ea08416e2b1ec4815e83349507ed68eb1e52a78b34e2c129dd40eafcce84ef7bf0d97d28073ee3af4598f804ed2
|
DIST shc-3.9.6.tar.gz 122644 BLAKE2B bef9993f49ffc7a1119862c8bd4b520a6122505493a59269218c6d46a0780e0788d3c9acc3975e642f9ea0bfd5a3907f0c1ff54bbc20c01fc630b2da096fc479 SHA512 dbda4af6740a8a719976d7260133ab3d92552ea08416e2b1ec4815e83349507ed68eb1e52a78b34e2c129dd40eafcce84ef7bf0d97d28073ee3af4598f804ed2
|
||||||
|
@ -1,37 +0,0 @@
|
|||||||
# Copyright 1999-2012 Gentoo Foundation
|
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
|
||||||
|
|
||||||
EAPI="4"
|
|
||||||
|
|
||||||
inherit toolchain-funcs
|
|
||||||
|
|
||||||
DESCRIPTION="A (shell-) script compiler/scrambler"
|
|
||||||
HOMEPAGE="http://www.datsi.fi.upm.es/~frosal"
|
|
||||||
SRC_URI="http://www.datsi.fi.upm.es/~frosal/sources/${P}.tgz"
|
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
|
||||||
SLOT="0"
|
|
||||||
KEYWORDS="~alpha amd64 ppc ~sparc x86"
|
|
||||||
IUSE=""
|
|
||||||
|
|
||||||
RESTRICT="test"
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
# respect LDFLAGS
|
|
||||||
sed -i makefile -e 's:$(CC) $(CFLAGS):& $(LDFLAGS):' || die
|
|
||||||
# fix source file name wrt bug #433970
|
|
||||||
mv {${P},${PN}}.c || die
|
|
||||||
}
|
|
||||||
|
|
||||||
src_compile() {
|
|
||||||
## the "test"-target leads to an access-violation -> so we skip it
|
|
||||||
## as it's only for demonstration purposes anyway.
|
|
||||||
emake CC=$(tc-getCC) CFLAGS="${CFLAGS}" shc
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
dobin shc
|
|
||||||
doman shc.1
|
|
||||||
newdoc shc.README README
|
|
||||||
dodoc CHANGES
|
|
||||||
}
|
|
Binary file not shown.
Binary file not shown.
@ -1,2 +1,3 @@
|
|||||||
DIST FlightGear-2018.1.1-data.tar.bz2 1576049981 BLAKE2B cfcf028ca04ed785ba7c65979e6566ab773d8af869a9b62050969295eafecf7d1f5b6162f498af96786fa23a46e886390f240b56c83e7107473f59552a1155a5 SHA512 022f102f95c9cd8b153d991dad55ecd182e71aa0f3ecfe1502a35d6dcda0746a1fd183f808e59aba8c7f3a0cc9ae1f2f91ff49565bff4c7bc5a1c4889fcc127f
|
DIST FlightGear-2018.1.1-data.tar.bz2 1576049981 BLAKE2B cfcf028ca04ed785ba7c65979e6566ab773d8af869a9b62050969295eafecf7d1f5b6162f498af96786fa23a46e886390f240b56c83e7107473f59552a1155a5 SHA512 022f102f95c9cd8b153d991dad55ecd182e71aa0f3ecfe1502a35d6dcda0746a1fd183f808e59aba8c7f3a0cc9ae1f2f91ff49565bff4c7bc5a1c4889fcc127f
|
||||||
DIST FlightGear-2018.2.1-data.tar.bz2 1624676603 BLAKE2B baecea2002fc3c256205e70c6692102f9bccd04c839902353b0e6d803a97221479e8b54095530dc7af366d842c487d04447f0fd775527e6f5ea0ac32ed602dd6 SHA512 93690703965dd83b610ea0ba67938c0d3fb2d5f6d8c842851a979f352387431eacafb4d181a56dad6def474b2ab84f412cf5531570ce18c1ec80076fe92e4d05
|
DIST FlightGear-2018.2.1-data.tar.bz2 1624676603 BLAKE2B baecea2002fc3c256205e70c6692102f9bccd04c839902353b0e6d803a97221479e8b54095530dc7af366d842c487d04447f0fd775527e6f5ea0ac32ed602dd6 SHA512 93690703965dd83b610ea0ba67938c0d3fb2d5f6d8c842851a979f352387431eacafb4d181a56dad6def474b2ab84f412cf5531570ce18c1ec80076fe92e4d05
|
||||||
|
DIST FlightGear-2018.3.1-data.tar.bz2 1735407015 BLAKE2B e076e0096656c607cd32c7f86999685bc65bc1d8a28a260e0e7d760a5d4ea645f3a84f8410f9091e9767fcc143d0910f3e2ac2546e9408a49032b864bdd3c742 SHA512 495ef2dc87244c10cbca6deed7731e84f07c4a495e6d70ea7a88581e655b366c17900603f2388d2d21c4fe5cc4279820ae2a112376deeba4d37a53cd3495c102
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
DESCRIPTION="FlightGear data files"
|
||||||
|
HOMEPAGE="http://www.flightgear.org/"
|
||||||
|
SRC_URI="mirror://sourceforge/flightgear/FlightGear-${PV}-data.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE=""
|
||||||
|
|
||||||
|
# data files split to separate package since 2.10.0
|
||||||
|
RDEPEND="
|
||||||
|
!<games-simulation/flightgear-2.10.0
|
||||||
|
"
|
||||||
|
|
||||||
|
S=${WORKDIR}/fgdata
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
insinto /usr/share/flightgear
|
||||||
|
rm -fr .git
|
||||||
|
doins -r *
|
||||||
|
}
|
@ -1,2 +1,3 @@
|
|||||||
DIST flightgear-2018.1.1.tar.bz2 8158999 BLAKE2B 5d7ca65c0b2627c7b34681e0af8e060f67cbed80d7e313c056fb92f026bc2355af66bbb6b377573db32f5101c63f1fa04521ba7fdffd584a56ae1049d1bcce83 SHA512 962be602a8c294081109ee1893383ac22dd83a0511fdb600d24d5dc9eca24d19687eaeed545695259502431e6d8c8bcdafe26846636ad40be28f5c2e4b0cfe93
|
DIST flightgear-2018.1.1.tar.bz2 8158999 BLAKE2B 5d7ca65c0b2627c7b34681e0af8e060f67cbed80d7e313c056fb92f026bc2355af66bbb6b377573db32f5101c63f1fa04521ba7fdffd584a56ae1049d1bcce83 SHA512 962be602a8c294081109ee1893383ac22dd83a0511fdb600d24d5dc9eca24d19687eaeed545695259502431e6d8c8bcdafe26846636ad40be28f5c2e4b0cfe93
|
||||||
DIST flightgear-2018.2.1.tar.bz2 8344999 BLAKE2B fc5fbd43bcc2e40ed3245aa5059b0e5a40918a707cbddc8383de191e29f6cdfaa6960f6cfffb201b20ad10f5da0f343a693768d38be2788fd2582f7b5dc2419c SHA512 d308eebf6d6017794c086d534f6543c03a54e55bd7f48caf8359d5a84776406eac8cd8f32252efb2cd8bbb82c9c15fe4d7e3229ff2483e7a9772bd532331be03
|
DIST flightgear-2018.2.1.tar.bz2 8344999 BLAKE2B fc5fbd43bcc2e40ed3245aa5059b0e5a40918a707cbddc8383de191e29f6cdfaa6960f6cfffb201b20ad10f5da0f343a693768d38be2788fd2582f7b5dc2419c SHA512 d308eebf6d6017794c086d534f6543c03a54e55bd7f48caf8359d5a84776406eac8cd8f32252efb2cd8bbb82c9c15fe4d7e3229ff2483e7a9772bd532331be03
|
||||||
|
DIST flightgear-2018.3.1.tar.bz2 8404294 BLAKE2B b90d64bc7381baef3adf3f2b77acb6822562d76319e85bebeda977754c281cd48b4ce137d910cc9f96947cfe1b7612c6ff45f2ed49775348b651944bb8796ba4 SHA512 ad07cdf90b1890519a22a1f79374b2d11e70191d85bc76d50913708a250801c3e091228999011367e374572a46c60f572f8b138d6a7c9fd2155f63107667d93c
|
||||||
|
@ -0,0 +1,159 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
inherit cmake-utils bash-completion-r1 toolchain-funcs
|
||||||
|
|
||||||
|
DESCRIPTION="Open Source Flight Simulator"
|
||||||
|
HOMEPAGE="http://www.flightgear.org/"
|
||||||
|
SRC_URI="mirror://sourceforge/flightgear/${P}.tar.bz2"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
SLOT="0"
|
||||||
|
IUSE="dbus debug examples gdal openmp qt5 +udev +utils vim-syntax"
|
||||||
|
|
||||||
|
# Needs --fg-root with path to flightgear-data passed to test runner passed,
|
||||||
|
# not really worth patching
|
||||||
|
RESTRICT="test"
|
||||||
|
|
||||||
|
# zlib is some strange auto-dep from simgear
|
||||||
|
COMMON_DEPEND="
|
||||||
|
dev-db/sqlite:3
|
||||||
|
>=dev-games/openscenegraph-3.2.0[jpeg,png]
|
||||||
|
~dev-games/simgear-${PV}[gdal=]
|
||||||
|
media-libs/openal
|
||||||
|
>=media-libs/speex-1.2.0:0
|
||||||
|
media-libs/speexdsp:0
|
||||||
|
media-sound/gsm
|
||||||
|
sys-libs/zlib
|
||||||
|
virtual/glu
|
||||||
|
x11-libs/libX11
|
||||||
|
dbus? ( >=sys-apps/dbus-1.6.18-r1 )
|
||||||
|
gdal? ( >=sci-libs/gdal-2.0.0:0 )
|
||||||
|
qt5? (
|
||||||
|
>=dev-qt/qtcore-5.7.1:5
|
||||||
|
>=dev-qt/qtdeclarative-5.7.1:5
|
||||||
|
>=dev-qt/qtgui-5.7.1:5
|
||||||
|
>=dev-qt/qtnetwork-5.7.1:5
|
||||||
|
>=dev-qt/qtwidgets-5.7.1:5
|
||||||
|
)
|
||||||
|
udev? ( virtual/udev )
|
||||||
|
utils? (
|
||||||
|
media-libs/freeglut
|
||||||
|
media-libs/freetype:2
|
||||||
|
media-libs/glew:0
|
||||||
|
media-libs/libpng:0
|
||||||
|
virtual/opengl
|
||||||
|
qt5? ( >=dev-qt/qtwebsockets-5.7.1:5 )
|
||||||
|
)
|
||||||
|
"
|
||||||
|
# libXi and libXmu are build-only-deps according to FindGLUT.cmake
|
||||||
|
DEPEND="${COMMON_DEPEND}
|
||||||
|
>=dev-libs/boost-1.44
|
||||||
|
>=media-libs/plib-1.8.5
|
||||||
|
utils? (
|
||||||
|
x11-libs/libXi
|
||||||
|
x11-libs/libXmu
|
||||||
|
)
|
||||||
|
"
|
||||||
|
RDEPEND="${COMMON_DEPEND}
|
||||||
|
~games-simulation/${PN}-data-${PV}
|
||||||
|
"
|
||||||
|
|
||||||
|
DOCS=(AUTHORS ChangeLog NEWS README Thanks)
|
||||||
|
|
||||||
|
pkg_pretend() {
|
||||||
|
use openmp && tc-check-openmp
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DENABLE_AUTOTESTING=OFF
|
||||||
|
-DENABLE_FGCOM=$(usex utils)
|
||||||
|
-DENABLE_FGELEV=$(usex utils)
|
||||||
|
-DENABLE_FGJS=$(usex utils)
|
||||||
|
-DENABLE_FGVIEWER=$(usex utils)
|
||||||
|
-DENABLE_FLITE=OFF
|
||||||
|
-DENABLE_GDAL=$(usex gdal)
|
||||||
|
-DENABLE_GPSSMOOTH=$(usex utils)
|
||||||
|
-DENABLE_HID_INPUT=$(usex udev)
|
||||||
|
-DENABLE_JS_DEMO=$(usex utils)
|
||||||
|
-DENABLE_JSBSIM=ON
|
||||||
|
-DENABLE_LARCSIM=ON
|
||||||
|
-DENABLE_METAR=$(usex utils)
|
||||||
|
-DENABLE_OPENMP=$(usex openmp)
|
||||||
|
-DENABLE_PLIB_JOYSTICK=ON # NOTE look for defaults changes in CMake
|
||||||
|
-DENABLE_PROFILE=OFF
|
||||||
|
-DENABLE_QT=$(usex qt5)
|
||||||
|
-DENABLE_RTI=OFF
|
||||||
|
-DENABLE_STGMERGE=ON
|
||||||
|
-DENABLE_TERRASYNC=$(usex utils)
|
||||||
|
-DENABLE_TRAFFIC=$(usex utils)
|
||||||
|
-DENABLE_UIUC_MODEL=ON
|
||||||
|
-DENABLE_YASIM=ON
|
||||||
|
-DEVENT_INPUT=$(usex udev)
|
||||||
|
-DFG_BUILD_TYPE=Release
|
||||||
|
-DFG_DATA_DIR=/usr/share/${PN}
|
||||||
|
-DJSBSIM_TERRAIN=ON
|
||||||
|
-DOSG_FSTREAM_EXPORT_FIXED=OFF # TODO also see simgear
|
||||||
|
-DSP_FDMS=ON
|
||||||
|
-DSYSTEM_CPPUNIT=OFF # NOTE we do not build tests anyway
|
||||||
|
-DSYSTEM_FLITE=ON
|
||||||
|
-DSYSTEM_HTS_ENGINE=ON
|
||||||
|
-DSYSTEM_SPEEX=ON
|
||||||
|
-DSYSTEM_GSM=ON
|
||||||
|
-DSYSTEM_SQLITE=ON
|
||||||
|
-DUSE_AEONWAVE=OFF
|
||||||
|
-DUSE_DBUS=$(usex dbus)
|
||||||
|
-DWITH_FGPANEL=$(usex utils)
|
||||||
|
)
|
||||||
|
if use gdal && use utils; then
|
||||||
|
mycmakeargs+=(-DENABLE_DEMCONVERT=ON)
|
||||||
|
else
|
||||||
|
mycmakeargs+=(-DENABLE_DEMCONVERT=OFF)
|
||||||
|
fi
|
||||||
|
if use qt5 && use utils; then
|
||||||
|
mycmakeargs+=(-DENABLE_FGQCANVAS=ON)
|
||||||
|
else
|
||||||
|
mycmakeargs+=(-DENABLE_FGQCANVAS=OFF)
|
||||||
|
fi
|
||||||
|
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
cmake-utils_src_install
|
||||||
|
|
||||||
|
# Install bash completion (TODO zsh)
|
||||||
|
# Uncomment below when scripts stops writing files...
|
||||||
|
# sed -e "s|/usr/local/share/FlightGear|${GAMES_DATADIR}/${PN}|" \
|
||||||
|
# -i scripts/completion/fg-completion.bash || die 'unable to replace FG_ROOT'
|
||||||
|
# newbashcomp scripts/completion/fg-completion.bash ${PN}
|
||||||
|
|
||||||
|
# Install examples and other misc files
|
||||||
|
if use examples; then
|
||||||
|
insinto /usr/share/doc/"${PF}"/examples
|
||||||
|
doins -r scripts/java scripts/perl scripts/python
|
||||||
|
insinto /usr/share/doc/"${PF}"/examples/c++
|
||||||
|
doins -r scripts/example/*
|
||||||
|
insinto /usr/share/doc/"${PF}"/tools
|
||||||
|
doins -r scripts/atis scripts/tools/*
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Install nasal script syntax
|
||||||
|
if use vim-syntax; then
|
||||||
|
insinto /usr/share/vim/vimfiles/syntax
|
||||||
|
doins scripts/syntax/{ac3d,nasal}.vim
|
||||||
|
insinto /usr/share/vim/vimfiles/ftdetect/
|
||||||
|
doins "${FILESDIR}"/{ac3d,nasal}.vim
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
einfo "Please note that data files location changed to /usr/share/flightgear"
|
||||||
|
if use qt5; then
|
||||||
|
einfo "To use launcher, run fgfs with '--launcher' parameter"
|
||||||
|
fi
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1,2 @@
|
|||||||
|
DIST shaderc-2018.0.tar.gz 206013 BLAKE2B b45fb6e959f621566817f8e31b1947e479b6ea392eb64f334dca9ad24cc4e8b736dd236e634de3f96342f48d8138722a2b769efb9db65025def5ed59bf5b911b SHA512 7a420fde73c9f2aae3f13558d538a1f4ae43bba19e2b4d2da8fbbd017e9e4f328ece5f330f1bbcb9fe84c91b7eb84b9158dc2e3d144c82939090a0fa6f5b4ef0
|
||||||
DIST shaderc-7a23a01742b88329fb2260eda007172135ba25d4.tar.gz 186291 BLAKE2B e91f57ba5c9339fed17d409b82df284a7897ed8bcabb203a0b8aab439df1d460ff5efdaa49e9140801b1430e831bbdca6920181fd1ddd07d8d35eb17b519246b SHA512 558447bc29b0c7610fda0f6c2a6b66f3c8fc7f2f5e336ad190ae959caa8c7aa1e09d3c2efe0e197cb2cbe1fa97e0c68623ce423c658b29fcbd1f1e1ea4c85f18
|
DIST shaderc-7a23a01742b88329fb2260eda007172135ba25d4.tar.gz 186291 BLAKE2B e91f57ba5c9339fed17d409b82df284a7897ed8bcabb203a0b8aab439df1d460ff5efdaa49e9140801b1430e831bbdca6920181fd1ddd07d8d35eb17b519246b SHA512 558447bc29b0c7610fda0f6c2a6b66f3c8fc7f2f5e336ad190ae959caa8c7aa1e09d3c2efe0e197cb2cbe1fa97e0c68623ce423c658b29fcbd1f1e1ea4c85f18
|
||||||
|
@ -0,0 +1,26 @@
|
|||||||
|
diff --git a/glslc/CMakeLists.txt b/glslc/CMakeLists.txt
|
||||||
|
index acf6fb0..0f5d888 100644
|
||||||
|
--- a/glslc/CMakeLists.txt
|
||||||
|
+++ b/glslc/CMakeLists.txt
|
||||||
|
@@ -18,7 +18,7 @@ add_library(glslc STATIC
|
||||||
|
shaderc_default_compile_options(glslc)
|
||||||
|
target_include_directories(glslc PUBLIC ${glslang_SOURCE_DIR})
|
||||||
|
target_link_libraries(glslc PRIVATE glslang OSDependent OGLCompiler
|
||||||
|
- HLSL glslang SPIRV ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
+ glslang SPIRV HLSL ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
target_link_libraries(glslc PRIVATE shaderc_util shaderc)
|
||||||
|
|
||||||
|
add_executable(glslc_exe src/main.cc)
|
||||||
|
diff --git a/libshaderc_util/CMakeLists.txt b/libshaderc_util/CMakeLists.txt
|
||||||
|
index 873540a..b189430 100644
|
||||||
|
--- a/libshaderc_util/CMakeLists.txt
|
||||||
|
+++ b/libshaderc_util/CMakeLists.txt
|
||||||
|
@@ -35,7 +35,7 @@ endif(SHADERC_ENABLE_INSTALL)
|
||||||
|
find_package(Threads)
|
||||||
|
target_link_libraries(shaderc_util PRIVATE
|
||||||
|
glslang OSDependent OGLCompiler HLSL glslang SPIRV
|
||||||
|
- SPIRV-Tools-opt ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
+ SPIRV-Tools-opt SPIRV-Tools ${CMAKE_THREAD_LIBS_INIT})
|
||||||
|
|
||||||
|
shaderc_add_tests(
|
||||||
|
TEST_PREFIX shaderc_util
|
@ -0,0 +1,85 @@
|
|||||||
|
# Copyright 1999-2018 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
EAPI=6
|
||||||
|
|
||||||
|
PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
|
||||||
|
|
||||||
|
inherit cmake-multilib python-any-r1
|
||||||
|
|
||||||
|
DESCRIPTION="Collection of tools, libraries and tests for shader compilation"
|
||||||
|
HOMEPAGE="https://github.com/google/shaderc"
|
||||||
|
SRC_URI="https://github.com/google/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="Apache-2.0"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~amd64 ~x86"
|
||||||
|
IUSE="doc test"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-util/glslang-7.10[${MULTILIB_USEDEP}]
|
||||||
|
dev-util/spirv-tools[${MULTILIB_USEDEP}]
|
||||||
|
"
|
||||||
|
DEPEND="${RDEPEND}
|
||||||
|
${PYTHON_DEPS}
|
||||||
|
dev-util/spirv-headers
|
||||||
|
doc? ( dev-ruby/asciidoctor )
|
||||||
|
test? (
|
||||||
|
dev-cpp/gtest
|
||||||
|
$(python_gen_any_dep 'dev-python/nose[${PYTHON_USEDEP}]')
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
# https://github.com/google/shaderc/issues/470
|
||||||
|
RESTRICT=test
|
||||||
|
|
||||||
|
PATCHES=( "${FILESDIR}/${P}-fix-glslang-link-order.patch" )
|
||||||
|
|
||||||
|
python_check_deps() {
|
||||||
|
if use test; then
|
||||||
|
has_version --host-root "dev-python/nose[${PYTHON_USEDEP}]"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
cmake_comment_add_subdirectory examples
|
||||||
|
|
||||||
|
# Unbundle glslang, spirv-headers, spirv-tools
|
||||||
|
cmake_comment_add_subdirectory third_party
|
||||||
|
sed -i \
|
||||||
|
-e "s|\$<TARGET_FILE:spirv-dis>|${EPREFIX}/usr/bin/spirv-dis|" \
|
||||||
|
glslc/test/CMakeLists.txt || die
|
||||||
|
|
||||||
|
# Disable git versioning
|
||||||
|
sed -i -e '/build-version/d' glslc/CMakeLists.txt || die
|
||||||
|
|
||||||
|
# Manually create build-version.inc as we disabled git versioning
|
||||||
|
cat <<- EOF > glslc/src/build-version.inc || die
|
||||||
|
"${P}\n"
|
||||||
|
"$(best_version dev-util/spirv-tools)\n"
|
||||||
|
"$(best_version dev-util/glslang)\n"
|
||||||
|
EOF
|
||||||
|
|
||||||
|
cmake-utils_src_prepare
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_configure() {
|
||||||
|
local mycmakeargs=(
|
||||||
|
-DSHADERC_SKIP_TESTS="$(usex !test)"
|
||||||
|
)
|
||||||
|
cmake-utils_src_configure
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_compile() {
|
||||||
|
if multilib_is_native_abi && use doc; then
|
||||||
|
cmake-utils_src_make glslc_doc_README
|
||||||
|
fi
|
||||||
|
cmake-utils_src_compile
|
||||||
|
}
|
||||||
|
|
||||||
|
multilib_src_install() {
|
||||||
|
if multilib_is_native_abi; then
|
||||||
|
use doc && local HTML_DOCS=( "${BUILD_DIR}/glslc/README.html" )
|
||||||
|
fi
|
||||||
|
cmake-utils_src_install
|
||||||
|
}
|
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
Tue, 18 Dec 2018 13:08:30 +0000
|
Wed, 19 Dec 2018 05:38:31 +0000
|
||||||
|
@ -1 +1 @@
|
|||||||
Tue, 18 Dec 2018 13:08:30 +0000
|
Wed, 19 Dec 2018 05:38:32 +0000
|
||||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue