parent
3b35dd73c2
commit
37d1fc868a
@ -1,23 +1,23 @@
|
||||
-----BEGIN PGP SIGNED MESSAGE-----
|
||||
Hash: SHA512
|
||||
|
||||
MANIFEST Manifest.files.gz 28810 BLAKE2B bcb36155be66f3416364387d084cdd0e6ed27256b791cc2608d03ce3033a14d7f421960b1703c17a753a12068451ada7ec15de999eeaf076d0a37af1cfd37772 SHA512 12e094d7aa0e7343268d2403abb5b2baa75d5f0f0385363b7a0af60301141c115cfda6c5ca0f5af1a8a4584116c67abc8423062eae84f37bc70021418b1ec2b6
|
||||
TIMESTAMP 2018-12-18T13:08:35Z
|
||||
MANIFEST Manifest.files.gz 28823 BLAKE2B 0bcdfb11479f04e67ed5379e1a35f567bb9a8e2a044d861e0fa5a0ea701ddd1b389d37eb1e91ae0c706e8221a79917b0fdb605ddb97be93f0e2b486ac09c7b63 SHA512 1d7011288632115f968476f8a48dbd2fc7e1cd714f4675608ba1f1947753f853fcef409d720c52e2ce58b7a43427f4d5f3dc8fc724169930958fd409e7689e83
|
||||
TIMESTAMP 2018-12-19T05:38:36Z
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlwY8VNfFIAAAAAALgAo
|
||||
iQKTBAEBCgB9FiEE4dartjv8+0ugL98c7FkO6skYklAFAlwZ2VxfFIAAAAAALgAo
|
||||
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEUx
|
||||
RDZBQkI2M0JGQ0ZCNEJBMDJGREYxQ0VDNTkwRUVBQzkxODkyNTAACgkQ7FkO6skY
|
||||
klC2shAAiEhQpjMU9c1gZuSOepYpDChO8JfTvIDcloZymyhQRGoKKJhqeOeUnzRn
|
||||
TffQvu9/onBVg5jKC1YIroRn/y4lJHUAnimIT+IStJL3/fTrJ5XJcWjYK7bkStrs
|
||||
vXPpb4qB2yCjc1QVm3FjwjnauPGzaGKmUOmd999GsL28hjqe/Wht/RdMCLkTPNVb
|
||||
e/TOCzZoByAXJzWfp2qUlH76u8vKGbWhhvyn6/xunM37+TkdGQL0zigPk0A0rT76
|
||||
Zm+7lfz9vvcxrrIV+SQGUzzbvVfaNMM9ggCYUaP072irRD3NeR/iaXhXRQ8tpI/8
|
||||
8GcbypTyYnKMkbLgkLYj8hCx03jCQsZuTtJJofw5oUlOG+bnXMqB8ES+FtGRg6eb
|
||||
fatweiSCK34oIM+s9hy4CSsoTe8YZ6W0wXlPDCD5rr330+cjrdWv+ug1oH+gZlOj
|
||||
RWdhhPNvL6UaavEqZpKZzXCp6hMNevbx/Tji9zwfRll4PKfIPQ0Xo1UEbYSd4SQD
|
||||
TUu1WtJ9TwtleKFN5wu+0EALfplZ7WBm2lb355VCjmszcRPTnV/MHbm2DR9ge5cS
|
||||
sOKZFzL/VVqL/WxhwiVGPjE3w5n0EBrQ7v8MSUa1ro9t2eimRAHWfUfqSMpuQ/x6
|
||||
MxOJc8PlgSpSPG9lCObE1qqnDyokXSTbN2L1kq9onLKh9SeHdsE=
|
||||
=w2jW
|
||||
klB89g/+PbrLHkADcU41Q/NKAuzfljuZ02tuxLQSJ/k7+BLaWAUFW1+abTtUFrik
|
||||
sig++nKqLUQRQnt7JcO0Blmuxs/8YOcmWqIvd8Bw+m4b8geXWjoKr3LlbCvMDBLV
|
||||
Nzy3zvlKQ9v0g17QI9Om/USUXe2suBp0OeUvqsT5+6K5n2CKA6tXIQwrYYKy0uBn
|
||||
4DNZnRPT0fJWYwSxwvbNvjtdYy9SCvLY6bmh694lVGqHXTtXgMSC1qU1Xw4+nbkJ
|
||||
K+0YzQCiNQUY7906yb9FmB+e5ZF6S+5GNjvKFKF1/IUMFZHVn6uNrV+lX0gI0FbV
|
||||
gyA4OP+wnv4DpqPkQKu7e5NlHIFlXaPgD8/V/QUCzeCtxouPk0Kqq24+C720iXib
|
||||
J5j9S4eqbH64R1xD7EsuieofQE7Yjrust2XiHHWpEmL30QcT4RVUr1w6i3zwxvPp
|
||||
mVKf9gkAZrtYvcFWDYKsSF6CSVL1ojjRqHridegvIU0LxxJzLmq7SwEBdxl1lihO
|
||||
SbJrcuECzhaIgmDENJuhbyj5OSqRTAI7RBv2AYXUjpyLSPh6FDnoM9mL6NbVLocP
|
||||
wptYD1IBmFBBXl6EcvO0yQVmr9UgQAW2HTnjdNdxJIFajnMDobFh71AfFZ7IjKu/
|
||||
s1Y9exbZG9dzC8zUvYvcpeZkYHeq5kP3ZR8poLStMP7ro3U1UsU=
|
||||
=iqww
|
||||
-----END PGP SIGNATURE-----
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,3 +1,3 @@
|
||||
DIST stuffit520.611linux-i386.tar.gz 1955619 BLAKE2B fb80abef29d266c93747b3359c62840afa15a32786a82ee01cab22cf0eddad750817c87b767632df5bb2ef681c1c9dd6dfe136dae388f8390bcab0b137a2c0bc SHA512 a1d4631c2d238b49c710816cd5ed8a01dcf52c29b870297b8dfd76fb0cb6e725c5b0f9d4a6c155c7b6980005df52fc4597632f72e90f00bf93ad80a28972270a
|
||||
EBUILD stuffit-5.2.0.611.ebuild 1471 BLAKE2B 33b12391d0b2ee3a638b85f5010ad500032570d52a875ed72f36403f43fd238a6e47b9316f30be82966a78e6f602ff45b9db764d898f6894490e1eada29cacce SHA512 816b2b903025599753824cff5eed538c327b49ab146c26967e5246fdc0e2b2168f1531266970c1670d2cf2bcf1f45ab7eb3332b41294734c2214ad7e69b42cea
|
||||
EBUILD stuffit-5.2.0.611.ebuild 1483 BLAKE2B 78acbc361330b828415fe6334a62b0bd1048ad927fbf7927df23a01423d78256027e8982869216874517b6faeb93396c1028ff65b87aea527342316c6de19c7e SHA512 013048fca9cbf5ae86fb680c6bfa1de0afcbd1cc45f6143c35be7fb64d1dedc298ed1fa5f564ffcd6502dc8b803a50d6899f1592a49a3a117542a96ffc9f29d5
|
||||
MISC metadata.xml 302 BLAKE2B f1870466f061240593b130854dc1baaffbc351f573e2f8e7bd4e5d8dcb986a794d151bc6a41bb7929b34a5bea104f0f95efbedd3bd068af39896fd444997cf45 SHA512 cb8ca2c4b1b49221c5e2ef4d37a9f8faa4a03ec8e116dfe31185f0a09aeaadf1034f45f655d984658e8318f057ca9028edb4cd373abb0d5bfe05ff6dd83d00b3
|
||||
|
Binary file not shown.
@ -0,0 +1,5 @@
|
||||
AUX 1.8.0-gcc5.patch 1793 BLAKE2B b25b356e68c5e210557373a3cf8e5543e8851f2d375fb72af82189bfb7c491826bc4fe092484e28031683d30a37863c20b6c36b19ca73ed133e77988dc4df188 SHA512 941a8fbe435d24287be158648d3083062806de639ce822645d949a171b2e662249bb13d9f5903017792cc979c7ff89615681adaed2afbf0d9c6ca5fe825e135a
|
||||
DIST JohnTheRipper-1.8.0-jumbo-1.tar.gz 32533148 BLAKE2B 15929fa25314438619899582b209bee6902b1e53dc2df39ed6a686820665fd4d8e56d26b3f0082d05dc6be2f54add3526570d936c0a929641e33e6dcfb7a13b5 SHA512 8b7fad7a6330b5ff1afc306218ba698aaa27776b566f82c2e76102d5ceb10aeafa69d71fa6fff67c81996ea2c6a04384bab4696ed192306c6d074873562e7089
|
||||
EBUILD johntheripper-jumbo-1.8.0.ebuild 2940 BLAKE2B 1c6b481c78f848f2a6c8dbe0721e63d61cb7c4a433e4e15d892539fd0e440f37e3e8f13541e391475f57978b88b8ef7106cc93de0b7a0d1ef9a55ffe27807581 SHA512 353eca3400ac5d20b19cc10f0f9af8e0631beb1d7d063bb52408c8511ca815d208f03fced4f9d4010a8352ff887ec5531008bd84fc1ed3eb6067db17cee100e6
|
||||
EBUILD johntheripper-jumbo-9999.ebuild 2865 BLAKE2B 11b00b85e23031676a54c7ac32b40d4c19a79b28583df585291b1a2d3531b52db97a12785f9a346fddd848518526b3f00d09f7e5f451bc0a98b84959e4e623a8 SHA512 9dad160ba5e0e045b02c98806b5d995669935297775d91fe373ea168055256af16252548acfc30590a85bbc37da53c7f2e201bca380c4689f96cce54099580f6
|
||||
MISC metadata.xml 573 BLAKE2B bfe4625ed3871bcc6c083ce63f30b433c6904411db832f5833b753c02dda92d60086264b4167fc59c7b3130de2db73e4d8814c606f02372669c866c185d6477f SHA512 590ef9c3538bbda4e19f88acf78988510343771e4e764d68d0872add996bc041c28aa8f16efcb4b21232870ff7c3e768b3512f39f0da900fedeb99210c200fd6
|
@ -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,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
|
||||
}
|
@ -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,13 +1,16 @@
|
||||
AUX 18.4-add-support-for-package_upgrade.patch 1734 BLAKE2B 1eb4fd07bec989b1584ec0ad272243d33f0c6b6fd17994b6bda69c38a0360acedfdeb7ca81f8c9bee2c35a40b07b5f831a10315129c1b0fd030a00881831fc76 SHA512 ebe2eadb13190d29e1933a81d1e8a0301842f2a9fbf1848ec2618c479a731d98d8807827abb1b43aebb05110bc566048841f8d1b63118b691f8a0c3e4c32aefb
|
||||
AUX 18.4-fix-filename-for-storing-locale.patch 1045 BLAKE2B 0167101d78f821fefc3d05447d3fe35d7328cdebcb3a0eebdaaf2f14b8e2f46efe7c0fb4031baa3a8600546a47f98641719112992c8e50cc1ab0181851937f81 SHA512 8a3b1bf35a445cbc7c3d4849c4c9ebd716209bc3b38bc060cd3b27b1b09749da8dcf35c8e0963300f7cc21f43fda96e5928f9f3c86c22a784cc60b840a1cc419
|
||||
AUX 18.4-fix-update_package_sources-function.patch 880 BLAKE2B f8a50714d5763f43c177de8e65369203e4d3b94de98126b85fca22ee4a89f9568c6081078b03dd4bb6cdcd07c51bc55b093e94092a06fd7eeec610ce22780f67 SHA512 8b82d0e565a9f8b4f6464382e01b79c95ad0ced600bf2ba1c6377eea704f86108cf68bc20c99f65e68c6b2d7a7ccc02624bfef400dd76990ef18f00f1e220f6c
|
||||
AUX 18.5-fix-invalid-string-format.patch 1680 BLAKE2B 55e0fe95b7ab61bfa8a9106f92e28da8df39d47e3fc35adbbff0a1c977cbbc0d996de400693cfcbf1011f8f9e0ed61fd444f225f6b0f9dd2cd4e0c48484cea31 SHA512 b9a6646419dd3c0fa34a1ba97cec29870369af97ea72791973348443d6ceeee80fd5e27ed4d7f2beb1fc7c27c699f2e22a787ad062bada5284bc55981cb08f29
|
||||
AUX cloud-init-18.4-fix-packages-module.patch 704 BLAKE2B e5deb163e7d97365befb63bf6978900d250356a3b29972b5c8ec6dd19c202d03cf0a07bbf1e8b437c3ec80b810f5c1af456bd589adfde290636b3fc10028ad36 SHA512 ea28c8d5c9a4ebd0d65dea8dd09e5c9c9973fc3456ff8a4e35b3eb4eb856e5c4809b922ef5d958682fb7429ba23eafd80e0fdee629967b7f838d4127db5e1ac7
|
||||
AUX cloud-init-18.4-gentoo-support-upstream-templates.patch 3366 BLAKE2B 88add00b9754fb9b9301545ec35bbcf3c747fa6a3a5b10e79879c022a59cbb8d3b1102615b48ad19e5d2c9e477c31159bea4d9435bd4371fe6b4ab864225cf59 SHA512 c840338d19ef74caec4d1d867a3e674b80b34fd995d2961efa41650de36653f1c027e3e7c841a2231db6ad1b3dfe478fb3e7511bf2ba8a9cba9e43e160a0412b
|
||||
AUX cloud.cfg 1815 BLAKE2B df997117fc3e15303171942c2127eb1ae8c333a04c3d8ba7aa6e55b6f0641872e90bc643cb4ac576876c50af09136777507b739b4cc50b5b4094272b5e8bcdb0 SHA512 ff9a978befebdc177000ce50252a89d2b9adf4e2ab92c7c87300c54cebe5ff160fd6619dd56f0432a6ec8a819a4f948aa3e99c06e37dc6650ed41fdce16daeb3
|
||||
AUX hosts.gentoo.tmpl 920 BLAKE2B 9195167754ff1f09c37c0220a2dbf7c0c098daf8e71edabe944a96cbf66d2b029fbb36fef9efe6ffa7410bb8ee33f71f04a4dc1f7c62811fdd87e5216eb6589a SHA512 39e6bcdf40bd842a1d2e4ccd1c993b432016f7b3c4d5455b71896a16ee87a5d698e214919172f0a7e2f647156f5efe0964fed999dd193e4f16c944efdcc0f9c5
|
||||
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.5.tar.gz 990381 BLAKE2B 0dbbd5b2402d3a7742c46f8a37b0ea31f40ac16bdbfe49dca0056ab8f90c47dbf26e6d3f40f34275caf5102d0b9b8be4e2c28bfc2276e85a5aad11af20b08979 SHA512 f89ee636922e33b5b2dcb5230763404fbeee148e28b8f61bf5b2f1f07000f960f9d38545dfb7bcbe9afb8253f77d66c94b39e9a159715b44a440a7cbe1fe1aeb
|
||||
EBUILD cloud-init-17.2.ebuild 1962 BLAKE2B 253368bf942bbda581e586ba346b56ee9e80b92069c5eb4b6f114d62a5756aa68bd61a87ddf8b46d27ac27e90b8e3f201802d1ed9137846e0c6063bea248ed77 SHA512 aa04144b55af445074987e4c3bdb9a8caefa5c34f6c07f10dbfa980e97036c34379e3c062acf97d29d82c309e0e5257c56ec89cac3e05eb67b5dc0e091eb8ece
|
||||
EBUILD cloud-init-18.4-r1.ebuild 2504 BLAKE2B 7e5af1c61d1c68e99d19900fc865c179c094ea52316f88d192791d16f903968d40f5d6614604c30172e77480fd57a204f26f25a8c344514e4da37e8cb0305939 SHA512 d57b356391edbc8fb216fffed8634791d144e8871197d95d65bba2f9abf9a581636bd47cc5eecba4b16532d7de06e9a181d899d0669ccdce41008ac40940d973
|
||||
EBUILD cloud-init-18.5.ebuild 2581 BLAKE2B 749437a7e57fc17a9821fc4904788e6015ae740d1da9518addd536d321c5c89b85945cfabaec14163f23bed4b59eded7997618d2012972a8a4c332551f345589 SHA512 e954b470853182f55eb8a6670fa29f3c80355e328da7a30cdf79994b38228691307057810941a625776f36d1eb61df3e694be02874d117a9a7e21d50ff3b3c3d
|
||||
EBUILD cloud-init-9999.ebuild 2571 BLAKE2B 867e5ac678791a7892e3bcea1d0c0c38fc80f95484ecdd900fe5936161682d72e4a3d4e02c8bad35ef3f3c3a5fca8fb771ba60bc253ee5f0929ef092662383a9 SHA512 083237921392e83b227bfde148e6f461999a854c681569488dc2fb82ecfefb32fadbd9bf12e62ca26029d0bc5ec81d83b0c5a87471fa9d16331b75311f52be04
|
||||
MISC metadata.xml 583 BLAKE2B 24a5563ff0106a6992b0adb539bc12f34f4ceee97213a71c6b8c15701ff627dc914917dc32510b728a59e8014571ec9d86313b0016710308e317da4b28adbf1e SHA512 1424ff88b0a75fe1037471c4187f3a557f1d180acf7879b52696730b9e789e6bcb2e2d870b68ae0b6d4eab05fa0d11388f2fd9b6a64eb0bfbd54403a88b1f68b
|
||||
|
@ -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
|
||||
|
@ -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,3 +1,5 @@
|
||||
DIST skrooge-2.16.2.tar.xz 21005424 BLAKE2B c8e11df29defc714fe71ad4f488cd6207dcc8bfc0cbee28422682f9c683ed7af8200b84f90cfdd0ca6d0bd0292dab46724c6b9afa0155c9f1603bbbe189b001d SHA512 4bc7de279cf55888a258700c2a8450270904066684b1ce0b121cf5eb966da174d969daa3db432781de62d94420e706ab5364e386e053dde7617d967442eae397
|
||||
DIST skrooge-2.17.0.tar.xz 23421972 BLAKE2B c0e08ef7235a6e05e945fcb92a222cc89e7a99ead4b30ba112fea7b420e150545e002e174b747bf7955415241eb55e8007d97e7fd92fa547a1f596360ab68156 SHA512 e65a1e1ed30af7c76776dbdf22f62d475ec3aece9c866453634d2692c6d1f1d6c00cb04376861cb3b09a990a3202f08dcb70ffe28f3c146cce17ade3a3a67a47
|
||||
EBUILD skrooge-2.16.2.ebuild 2362 BLAKE2B f2733b59125117086e4d26bbe321feea256ac62cb187b8fc10ba1e74a895248676644d73d5a02613c3655133c0d1d5babc6d1c53f606265a9d60465e6d7a6fc9 SHA512 a46d06ec91d13303ae03201e9e015289392ec4771b4cba76b1b064e650df56cbbb2dbb65b996b5e899485cf4ce545f937aa1ff1d5c70a08b2239438f4612e03e
|
||||
MISC metadata.xml 400 BLAKE2B b0f7a87e2c2fda05271f731d2c3a6d9a490cf94dd7a742ed60e21aa44964a50bad1218c6ebd9ad16d87a8814f34b70792f7d80bd1e03d80845bd9f1c9292a95c SHA512 50120cec8f5798f6b104c6e1fd05b831f2f280e2f3bab8aa66667a3da1bb351a955b671d16cf4e30b44b0738625424fe4a32bb8a677947d147031964e108dcb0
|
||||
EBUILD skrooge-2.17.0.ebuild 2498 BLAKE2B 52f7a523a29ad49b2568fa0bfca83e1c4636a9bc42faf658fc4f71a49f3ad85a98d806af7c47d2616c73402ccb34c904a71cf33a980137c355c50e313080f47a SHA512 84e36e0ed95ef81cfff139bb352434cc4e12b89c58ec586552a86c3ec677cc3458e4fcc7ba066f0088400e398d6cdf3de3319856e01373783c92b783aea7a922
|
||||
MISC metadata.xml 508 BLAKE2B b55c79406982c895e2c0a3f680944fb561823a3713408f67b4f8de74d03246cd9b52a654d4ec97935d4f7740b9d9f4ebf27d81a9c226dc67d9922500c6e6bde0 SHA512 0b38f9d35783e7fbf2b86b9ead3772416b7080d3df07b801ecd9ef4e5329f7690e6e1b9f817d2fd8947d6735f89cfa57fb516fbcc2b383d5278f27fd89390e97
|
||||
|
@ -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,6 +1,8 @@
|
||||
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.3.1.tar.bz2 1330322 BLAKE2B 5b350ddce726d8ea15c4a1a64a28b9e4307647378c52989231daa7b4a0e53730dc754c239660d0f5ec33189ece6629448b37f61ca7578c21c3aa4147d4565a26 SHA512 673ee76e9f4f9c9adb25a2523bad5b70a079d821391cb8fc9f9e651ad6c195356ac9a8ba18a65df365dc66990406de287099fb249ca23eefc111ebba884f7289
|
||||
EBUILD simgear-2018.1.1.ebuild 1289 BLAKE2B 6b645fd5621acc09b4a0a9862e5e5238334c8d5b6cc1a9f6b8c7d1c08154e84b04a9be2e827cf12383a805027858d7ef9bc2ca9841251b01ab28da4ad39ede61 SHA512 4deaa97b485983475f5c9a72dbe7e3b1ac4c5a0166d3c5a541ac38cc0504211289dbfa8721139fbc8da01cd6171ed99414aec13d924a5ff0c37f379c6a1cf7ed
|
||||
EBUILD simgear-2018.2.1.ebuild 1289 BLAKE2B 7765dabb2e05d3c4f948ddb60b877c3bfee627c7c72f59df5c5020a5eb4b3022b53cf098d4a57b197b4e1a5384954fc734859c2b9998ed2c81d47dc1f45be57c SHA512 d6ba94beeea257a0e19435c1d9fdc0aaa31ee4e1d7dd14c0f40e61ce07fd16ff7b37d9e957478afb1b5c88df176b437cd407a272ed69626add981924d0b85432
|
||||
EBUILD simgear-2018.3.1.ebuild 1286 BLAKE2B 5b2d53e3bc343c85432a3d630483f46ff73ff44ec453e08e7f9c26ca9bad34830e723e70a7776b068d6d185286ae8b4f4c1d7e6a87763dfe2ef5995725f6038d SHA512 acffeba8cb2e16581656ab6dcdc951bc8bf84672d602c2ce3570b0c5ba264677430915d79853bfa081f9cd38a23b1a7e60bcd1f078cb8dc6601ec138e64daa1a
|
||||
EBUILD simgear-9999.ebuild 1351 BLAKE2B 69fd6d6034053e9d026e9f91376bbb716be4c687007a031ca580f844a7ae0c3d035abbfb01d3e39eb3ed5fbc9502d0f3ef123e7c7f4566a52eb88eb23077bce4 SHA512 3735c556acf625e06391dd2c51b329cc8367449ed67d72dd0e4345a102b98b334595634ac1de1e61c05094075616a48887785f3b3f368d06181413add49a2f91
|
||||
MISC metadata.xml 911 BLAKE2B 978dd6e83dce780a6b6250e86def3f5f3052d7c09cda9d4974ec9f63d151cb0040c9434cde00007a8821b28854d2c49c5a040e29f176d1ebb91600e97ba09f17 SHA512 59839dd8b60cbf26b548157edf6f30255c2ca81545df77d39d47cebbf2eec561014c698ac15028765921fb9a7a570f5032f699f71fc135c5bbad211ce6b0a5a8
|
||||
|
@ -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,9 +1,5 @@
|
||||
DIST yaml-1.3.0.tgz 37075 BLAKE2B 90fc101dc5b1d040efbbda481d28a862dd4021d09cf1853644db8769b04ca7c986a38758247b6e61dd38bdae31f995fef04f7b381d303b3914b8126806e99ce8 SHA512 60f54db7cd22ef1dc31cb5b31950a138e0bd2cc436f9e667aaa69ddceb4dcd7aeea9ecca9d424cb6822c2300b382de8f10c07403f80df749192820b27881d96a
|
||||
DIST yaml-1.3.1.tgz 37263 BLAKE2B 4be9dad710a4b7b2ea3ed8222500bbf2c94807b1bed627c1460beb31b5745c1dd5484fed11d23bb7deec454fcbb5d88a93034c82f7fe978e6cbb26944c9f7c4f SHA512 67359e6b8d5b19ad594acd741dfb53006079fbdbdb7c3402be57c006f45c992158c505ad2bf0c52a1b997c9b9fac48724b1a44fc5744689b0f02b308324a4a4f
|
||||
DIST yaml-2.0.0.tgz 37960 BLAKE2B df325cb73c4788a3022661e841c9ab479a103bcee76d4f911d2ba673d7fa7344006d8ba9a22aed3a701accee49593d524ee506052ac30231f02463c34d7b51e9 SHA512 760c9f9f5738594e3ad55c030fa619bc891e1d5a8feb85bec2389e2fd4d6d4933fd13abf68c85eb1bb4cc3b6f4a66079ea75a2046c47fe4095b01a50c8e65eab
|
||||
DIST yaml-2.0.2.tgz 38495 BLAKE2B c992c72b7ba84ca3d953109a9d274c7c3b203f3ce75630860f40a43a565e9ffd92f1d831e386624351879598ee305a64cb3b4228eccfa58b4bf1db76f994cab9 SHA512 b3dd2098826cd7cdcfd1e5d97b9015de66812dc90e506e74a4a50a56afed5f9de0449465bb807a36a13170f479897cc62a9b108653aa7eb81895abd5966bde1a
|
||||
EBUILD pecl-yaml-1.3.0.ebuild 843 BLAKE2B 481ca5f3e246f42f6b3beb3bdac479c86ebc13309f82914eb374d50fd51f5b45327efd71cbd053a7e0f79d6714537fc31bca39231d9e5f223e964ac17a6b61de SHA512 90520c8e294d98b0f5081b5b13b12d16e96920f5726d39a0da703b5c50d725be1a8cca7e138f998aaaf58950f5c53dc32fd79b5c80f95773716021cad2a26700
|
||||
EBUILD pecl-yaml-1.3.1.ebuild 1010 BLAKE2B 7a0510d95b887c6fb53f0d7c8e48775671c15380bdb8835e36f6dba68fed82e1fc1e1e4a5d2bc10968f89bdbc72678f0d8113c9ded4313b02ae211c99eae48ff SHA512 ddd9a554be36a50ad40197b15b3851505311a5d7946936dda2dc427f79d2e7dcc5dfbbc15e55301676c00c5fb21ab2d71ee56bed63d03a8e57695e7b3ece5ee7
|
||||
EBUILD pecl-yaml-2.0.0.ebuild 851 BLAKE2B 7985abf810e41d6724e694c079410bea56f60dd68a655d76e9aa31fb7ca8ff07380984a2ce928b3e24d68304560bf7721a759d03bd0ee4ad0d3242be53eb75e3 SHA512 094aace10ba13de4dfdb15872ae454797fe582a32074f4f2612a3cbf5d8e7b3129b615560c5a0eb4d9970a9012003a19fd2f6b8bcf989cb85659744b2af634ee
|
||||
EBUILD pecl-yaml-2.0.2.ebuild 983 BLAKE2B e9ec310ecf527f7e962c8773fc1e759aea2f65f53c4eed0ec147e6b92d8a58b3761bfeb8800cb0602487ae40e2d42c61fc10eac8655dcaa6a0fed93fc41309a1 SHA512 16d5d58753e7a6ff02fc561ee45f90deeaed89c88f2d3b6ad2971e96c0c1066f3bed30c8fa0bab6c5de2ea4b590234f2fc54427addb0555f41edeb25778753f7
|
||||
DIST yaml-1.3.2.tgz 37354 BLAKE2B a8124b0b24ba0686e028b27d9659f7c273435861cba23da321a650813aca28394659fe3083ae08f992f9813912352d0f198d3348dded58a465275b7de4c227d6 SHA512 d1761ebda34b48894a50b831969c928d8a1d3a8577c5213bea92a3de97ec4cf908ffabcc269b2cafae29e49143b8403c3b370c3bfc6d20548c4093a3cb132263
|
||||
DIST yaml-2.0.4.tgz 39071 BLAKE2B 3a5dba0f6a16087909f4673543d64946e5929a5ef4cc616df6a4225aa2d274b2b5492b00ab0e95ed93f808bc2a4dd0a2f6d60c8c2ded078af35c4499042488d6 SHA512 138e5b4566800fc7d624baf71bc585d6d432755046e598ae9f4099fa565727e04d79bb171289a53eb9e5daa416ffee1b0fb4967c84976ac6cd6fc01b0a05fbae
|
||||
EBUILD pecl-yaml-1.3.2.ebuild 1079 BLAKE2B bfa33f6a71df2226587f23f74d43fd0ad2e2c79acc027642638ef317fc692ad890d1cd3524b60010f45b0d754652d7f7a4481dc877d249d689905193faf45866 SHA512 0893605cbe310d653076b0139daafeff061324e0cffbd5c2761bdf0456254b4a3f45dab90a3a04bc7ac8ff29724ab57f50e52fc9d811354f7cbcd29cd5589223
|
||||
EBUILD pecl-yaml-2.0.4.ebuild 1046 BLAKE2B fef163f4d8f00a5eac23cdc2ff4221f6160d5cf090a96fbba66d6c8c9a5b752c8d2c12d1bc30949aa5ef8154920ee66dc6af1341f4fa5b86ed6b2c8619f89aff SHA512 078605cbf1f3f602c18b498a9a09e9f4b915a83ab2c0f2c9c1bd0acffe76a2d6c0b4c5cd209ce42e8570886d760085ab2d020edefc42fa3ba091e0472eec4e95
|
||||
MISC metadata.xml 238 BLAKE2B 1bb4abee8d968b36a69efa8f634c2d2e4422f5ac0611f123cf9794f1784e155a16cfd98ee209c16a745a58ddfa85d134c68a22bb5bde264c35ea285caa2d4d9a SHA512 560ff28e3776267c429b8d553d2dfc8991fa8d5845af5937c46ec68674d2b3c5cb922e557f43fcba113a70d4b3b5a32f39fc1fbed38de5781c7504fd526430cc
|
||||
|
@ -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,5 +1,3 @@
|
||||
DIST shc-3.8.9.tgz 20536 BLAKE2B 68f2c18f79e28bcbf5116428ec16a4b6eceffba686aaf3e9075f14a77793831bbb9c80c7f44a849f152eb164000956a383343d4dc8b49fc8cf68758aa9a4d27e SHA512 e8a4f9b0ef6e90fc99ebeeb0af36b89d1020209429c9651a036ab1f51a293d9faa3b775b7f040e91997b6ff5a487cb45943fc3548fa6fa3e7282e0d6f74d2cd4
|
||||
DIST shc-3.9.6.tar.gz 122644 BLAKE2B bef9993f49ffc7a1119862c8bd4b520a6122505493a59269218c6d46a0780e0788d3c9acc3975e642f9ea0bfd5a3907f0c1ff54bbc20c01fc630b2da096fc479 SHA512 dbda4af6740a8a719976d7260133ab3d92552ea08416e2b1ec4815e83349507ed68eb1e52a78b34e2c129dd40eafcce84ef7bf0d97d28073ee3af4598f804ed2
|
||||
EBUILD shc-3.8.9.ebuild 825 BLAKE2B 035a2082aed05a8a71d901f914b6aa84ec4d0cfa93659a51c0b85f6e52e60ae6323a469b2b53ebb73ec322dffc041fccd5e00f80e9de772d99fdb481f0ca7f68 SHA512 048acb29321004230fb3da0713b4879d1c672633fe45212cef21ab72e3a9d9b55e2444449e1a25a333134f185b05641ea2393a475cef3b403666b7086c83168f
|
||||
EBUILD shc-3.9.6.ebuild 450 BLAKE2B b58546d213ce700e392edcb408e6763040be965224db85db66ac5cb06a63176120383ce7271efa17163bc41f7dc1ec31efa0033a0caf2b48d980e5ffbfa92d6c SHA512 96a715b5623ec9fb7236ec6c473d6bb72abbd5d42b253ed421037ea34194e30112cc0ad68ff9f47c47bd59419099fea68456d3e8eea54646a250cc597d9f3623
|
||||
EBUILD shc-3.9.6.ebuild 447 BLAKE2B 88a8ae951eef23d2fb06af65f11cd910e8d5f8dd568229406685a92a26efeb29ee702088fdde80857fb26dcf6ef0033e195b5fb45da4cbe935277b9e52f76b60 SHA512 ee96f953217b9511da6932c964ff72e2f1a3282ec5d2453dd427fbd849f03cd2191be68d5049ba66cfe91ec0b1888b3c91a7bbcc40551a9f66d11f6474c33fab
|
||||
MISC metadata.xml 341 BLAKE2B 9e21bf4fde239181d0dca080e08667fcf098398ea5f89b5e3b2fb27d3797eea6ef792f81b159a25c891c831dda165858172b11f1932469262117c12c155731eb SHA512 f5b2c355996851ad7c34e40f762e636295581148806b5a6129e79d39c564dcd16a8281b289598204048ca53c30b3f5efdea7f393e6ac47008d9a8af9bb54fe2b
|
||||
|
@ -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,6 +1,8 @@
|
||||
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.3.1-data.tar.bz2 1735407015 BLAKE2B e076e0096656c607cd32c7f86999685bc65bc1d8a28a260e0e7d760a5d4ea645f3a84f8410f9091e9767fcc143d0910f3e2ac2546e9408a49032b864bdd3c742 SHA512 495ef2dc87244c10cbca6deed7731e84f07c4a495e6d70ea7a88581e655b366c17900603f2388d2d21c4fe5cc4279820ae2a112376deeba4d37a53cd3495c102
|
||||
EBUILD flightgear-data-2018.1.1.ebuild 518 BLAKE2B afd977b91675529215c7c72fb939a8a2c1be99b5af682a86cfd06175b9a9386c6fe665b31fe8e2e5102fba0f33f0d28bed2c150e614758f6b758738b9c53c86d SHA512 02ea5407ec76fadeb0230b3567e9c83445d562a49853681c1b5418dc4ccd7e97e582e4776bef02347fed25270ab2637fb8b530beca6ebfa1d19b805209d4192f
|
||||
EBUILD flightgear-data-2018.2.1.ebuild 518 BLAKE2B b28ff44f4d60306ee8edd3d1cc1af8659891ec4d358aa677112d3489584f3d79abc4d093b84795750894ce8f6bbffefaaa219df6b6467189aa445dfe7d05fde0 SHA512 6c2c9171b3d91fd9eeb5c3b2f6cfbdd5cc5a6fe6ab3ec5cb8fbc9bbf6b311f69e43d269fdff725a4eb1e081e72aab191ab544f890954fdec4fd99088be881ddc
|
||||
EBUILD flightgear-data-2018.3.1.ebuild 515 BLAKE2B a360626ccf5d47b379f96d0eb69813697eb6428a4933c8243298855ec90094252aa0ac2047467245be2edf0242238f65a0f6f004adccbfef353a5d1e4f040a76 SHA512 adea1e43c16a43b4c16ddaa43af7c55c6390f82c78dbdd42fe6ce77a317a324cbe5fd22137e251b50dd2fdea317680d69cb802192386e26e05b840c2699addcd
|
||||
EBUILD flightgear-data-9999.ebuild 546 BLAKE2B ea1647fcbee2eee6a213ad67e6fa6ca22ee66d8a7ed4cc6928a75a9e2852b9befbba63aa5032921da37aa83cbb22d3d6433d459faa5787d80cdd33678215125c SHA512 92dae00bd54b164590c4c9cd66f3797a8f39211a66773c6cb710ecfff4d47f1d65d03861ec9648a8165a823f038f3d19b54dbd2b9b145147d29696569b4ae508
|
||||
MISC metadata.xml 445 BLAKE2B a66be5a62283a2a7c8c086ad4d0cfbce8e1c7bdcd890e39fef504821b8eb01facc32f36afcdc4c62544bbc1b5c5b49e8a752f8b42dcbcf7adeb50b0cb5fd7afc SHA512 d68eedacc672f04b42ec6d6a9e0e8302dbe09283f73484945b9c8c277a1c65c02c19c1187dc18d4c9e68d56a26cd989d04df83e74ff44d48977fe3c24fb81466
|
||||
|
@ -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 *
|
||||
}
|
@ -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.
@ -1,5 +1,5 @@
|
||||
DIST kcalc-18.08.3.tar.xz 362192 BLAKE2B 8fa45fe7ab30b164c773752ccaa375d1f082b272a13eaa10183d2ccdf228bfe53a913b8b375bdaaa5a0023f2636c5000f33845f8dc087c2da2b3fdd13a4783e3 SHA512 55c58bebd13f73e9b9a4f6ffb06c43700493f268eef9ad7357ef7a7e6857ffa134fe396ef3ab1fa3bd4544f01ac35bbb1d2b729acf93c271f9dbfc694b18b144
|
||||
DIST kcalc-18.12.0.tar.xz 362668 BLAKE2B fb60ac093fef13661832a551446967ccdca7d262d97d40c4fa7b95f80af653d6375c661da30fbb447fb3e6a05178379c7fab57a500859949cc8e04eef2119816 SHA512 3bc8075210f62e69434e721a5be93d0c091377ad7b72ca256fffbe0f4658c4d47646930760557f66f290d03bc851fe3fcb7d8b24a966efe4ba415d490cab618e
|
||||
EBUILD kcalc-18.08.3.ebuild 768 BLAKE2B 1038f425ed9ac45b0e8241b4727b3f53e4d6e24615165d4d45c7b5272557d273684bee827d5b27fac7d80135b4979b22d521ee06fc4a7cf84a1da924e88e57b6 SHA512 cf2162eda7b62f7827a90875f221830ab740250f725f009c404b562bfa5075f39c6fb2981070259d9033dda6404fc55813d2cac45e604db56ba80f00e73add8a
|
||||
EBUILD kcalc-18.12.0.ebuild 770 BLAKE2B 2845f7f41c61e2f6e18f2d59d70eeb3a2dc28a03204bb2d0f1a34805f6c85a87916ac47dd42e2a3890402516ba78e2806c2f879b4397a0a5ccd7509d02d4bbfd SHA512 0d34ab65b533999a21f39dbf690bfed4ddfce5d891e340fcf6b9c7a6c4f158cdb93bb0a762083b9a785b737264dbef406ebc14c50184d60be3192c4aa2e4d234
|
||||
EBUILD kcalc-18.12.0.ebuild 803 BLAKE2B 93988210c1d253c29c3df4d032ede4a850abe91eb486e8cb7c18c659f4e95ed278ab27405f13db03c0593ab0f6338f08a11fcaee724dbf2df2d00865e4cb06c7 SHA512 376798fe35eb391b92e513f8758b0487e8bfce6bdd66a6e52282002e5adbd843fe2b216d1b83d50c77d5ab95d6372605943dd28e87dae342b62bc71483724f41
|
||||
MISC metadata.xml 249 BLAKE2B ad415db89e5dee1627aa77f44ded9d4e1e5b8217d06c7ca25bbaa3fe92ce67c2b1090957c45a821b407d7927e5af798498aa6a5b903895ee1af8ee20a446c7f7 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3
|
||||
|
Binary file not shown.
@ -1,5 +1,5 @@
|
||||
DIST gnome-screenshot-3.22.0.tar.xz 258888 BLAKE2B 48f997832a8e0f937283a2cfba8880dc9032ea7a3254b0f45dd1ffd3951d096f03899199497ca78fc9be22f83ae8c60bb4f72662a323dad3afc05d2229fd914c SHA512 a532e9cc8615ce22db5805c1857a3bad5bf69a3436a45574384c6c8f848ae67d6991dbfc5556e7cf08f630915c0666bba0c4bee9e4190340bbad57faa9af2ff9
|
||||
DIST gnome-screenshot-3.30.0.tar.xz 225244 BLAKE2B 69c75bb8e3d18578317343b549d4ad837b6e58420c6b49efbc01338697bc2251032d9158e658c9f4ae4e086a1c117eac818c18b6ed95d031c2b60c2ba62a56b6 SHA512 a42ff4f14bbb3a3feb438ee64f1dff3d3a792a6585fef92fde8546b9c3fc07013e8bd2ef42ddc880f2529cbc4241a50d441d4de2a4b26923036f1724aabafdba
|
||||
EBUILD gnome-screenshot-3.22.0.ebuild 1203 BLAKE2B 9f74f14b77d22c51394d9d131a5e03779594f405e2f95c3398b50df057fb7c854979e17ab02aaba1f73ef76dd61262a9d9e57795cac15f2c0946312316be6a6c SHA512 fed2aaf00f661cf23e83f0c86b610e94ed3100d62e8d18bb1fded4b8e72fd98e030e048a8c3aff442eaf990f6a9050431a8448ade68de2c54ce0f8af53b2bce4
|
||||
EBUILD gnome-screenshot-3.30.0.ebuild 1213 BLAKE2B e2f3932f92ceab6b0d04a346faee0da53b2952b1e32d1ddbbe8b58f10f97b680bae993b7340f4092034b8aba9adf61d931643c1f8a42156082286275270c5c31 SHA512 6407adf3a3b168ac7cb6a4f7312a51086bc943b59fe0b4d663652bd79a990a5a929b6085dd4423db5d310f92d25448c192cda9ad868822d854ed5d0e872b0ddc
|
||||
EBUILD gnome-screenshot-3.30.0.ebuild 1238 BLAKE2B 18dcfe3b8f6ef9c4ab2b2277acd8a6feb51eb722385258488dea827f86e1c02a63872bf8e76250ed6a03790cc293be78824c4f4895fe81a0f56f4fabd14acd98 SHA512 8ef1d69d80aa01cf9e5edcb1011af8bca83a5624e2f400dea162d06b366e26b1cd0d2582bfda9a9dd19e2687459710d59fd1421245ba222420845ee9a56bf35a
|
||||
MISC metadata.xml 249 BLAKE2B e71e1b95fee768c696704acbf7e3cf0e599ed2bc8de92bae0141d1194ef9e842bdc292798904487a9b90ddfda9b0e84abd3b76b1518576c1d288240e4e46f110 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506
|
||||
|
Binary file not shown.
@ -1,5 +1,8 @@
|
||||
AUX shaderc-2017.2-fix-glslang-link-order.patch 1803 BLAKE2B b5c880d6869a3a6d70405e12290bbb7f22d83c9903fdec62d0672f4e475bbb92ff377ed71121f7d8f935c1043d9c15949158aef616d45452dc3024ca24d8e4d5 SHA512 f8204ed66381864ee2f682f4e948d3e426fa4031b702e31ee5be7e1d963d7d64aea72b5e9234d621e0708c35f4009d788235b6d8c4bd45b91fa1957c1f641c0d
|
||||
AUX shaderc-2018.0-fix-glslang-link-order.patch 1059 BLAKE2B e8985d1de7f6e425eabbd05201aeff854304fe227f2a83878ed41e5494e71742d46c49b86aa97c3a9b364909f5d6adcc2a3aed21128935febbc7765b90b2f2b3 SHA512 09a61e04dd68674d159c69a497ce412b924967d595526a54693e1999345fd45c88999b5e793b5bfd21a0a555b535d89d1611c44a76f81e1ce308bff821c86f87
|
||||
DIST shaderc-2018.0.tar.gz 206013 BLAKE2B b45fb6e959f621566817f8e31b1947e479b6ea392eb64f334dca9ad24cc4e8b736dd236e634de3f96342f48d8138722a2b769efb9db65025def5ed59bf5b911b SHA512 7a420fde73c9f2aae3f13558d538a1f4ae43bba19e2b4d2da8fbbd017e9e4f328ece5f330f1bbcb9fe84c91b7eb84b9158dc2e3d144c82939090a0fa6f5b4ef0
|
||||
DIST shaderc-7a23a01742b88329fb2260eda007172135ba25d4.tar.gz 186291 BLAKE2B e91f57ba5c9339fed17d409b82df284a7897ed8bcabb203a0b8aab439df1d460ff5efdaa49e9140801b1430e831bbdca6920181fd1ddd07d8d35eb17b519246b SHA512 558447bc29b0c7610fda0f6c2a6b66f3c8fc7f2f5e336ad190ae959caa8c7aa1e09d3c2efe0e197cb2cbe1fa97e0c68623ce423c658b29fcbd1f1e1ea4c85f18
|
||||
EBUILD shaderc-2017.2.ebuild 2104 BLAKE2B fbf8550151920a89a8522e131d9a499425de667c0168af5968965e5a715d12bd7cc81cf1e4e92484d77c2bc5ebc277e4d1502040049a0c63f198a613d0d0d3a1 SHA512 b01c956fb8e727222ee4badbbcf4de68d9993c3d09a6211156405a2f15ddfe991a6acc5ab80262b6573ffdff4b00d774950ecb46e32b41eb29fab5f985715fa0
|
||||
EBUILD shaderc-2017.2-r1.ebuild 2107 BLAKE2B efc8b90f83e81191da600e9904d96f2107486b82e9b79dcd889bdd24f4408b3eed407bc7a7396cede96e169610ec91e710700113296a339eedf7992e64bc2cc2 SHA512 4667b524cc19b3a06d0549e0ca122dd2dacb921ce00a1a9bbcfd5c68bba9dfd21c987ce64cfef0c664d6482b3f093378facb6c87c5161aecbc5699a6dda973e6
|
||||
EBUILD shaderc-2018.0.ebuild 1988 BLAKE2B 610b98c1d6687e865909c5cc810b41cf12868872e9e379ec9b1a2bbb5551a2fbfe46823e4a91b417250aef8813d96ccb97d6d3535b3f829bd9e099753c70c6d4 SHA512 b268a3685a3bebf20091cc5fbd48b3fe2a3da24a100d5ff8d05b11a349c211dabe432dad8d54915e4724751a2335897973909e712a220c6381cb54afc5db84dc
|
||||
EBUILD shaderc-9999.ebuild 1981 BLAKE2B ce4353c33b52a4f95f6ea65882afd5a3114e7ba6d5bb2b9dea6e2103778a809fd418fad27d4bf927e7cba7c3ee8e2b253327f3398c8ea40e414bcb0b92e3add4 SHA512 9ac2e97a909e8a00fcf540bf1695bd4937a095b758ebc116a5dfe35fc7076f223f6f1fd24a211ea31ac4cd5da3ed65ecea2c4c497cf54fda5b6870d1e05967e7
|
||||
MISC metadata.xml 445 BLAKE2B 6e35c47106d6253c5895ee5e641d1481d20df16f2f2d54f0404a84b9a4a8c5d0b55b51dbe465630bfc7983e9c82b7610000cb44fe30a9d8a4b42539f19e2cea6 SHA512 adabb9a986ad200680297819c3933d22a921bf77d6c2991f360c19d8fe4131d7e78422570c4928055b6aaab69242698b8edf757c5b4d7c2876a2ef6f3a110bd5
|
||||
|
@ -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.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue