diff options
Diffstat (limited to 'sys-cluster')
17 files changed, 756 insertions, 206 deletions
diff --git a/sys-cluster/ceph/ceph-14.2.15.ebuild b/sys-cluster/ceph/ceph-14.2.15-r1.ebuild index 9f02aabe3683..14c39619d4e0 100644 --- a/sys-cluster/ceph/ceph-14.2.15.ebuild +++ b/sys-cluster/ceph/ceph-14.2.15-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -44,7 +44,7 @@ DEPEND=" app-shells/bash:0 app-misc/jq:= dev-libs/crypto++:= - dev-libs/rocksdb:= + <dev-libs/rocksdb-6.15:= dev-libs/leveldb:=[snappy,tcmalloc(-)?] dev-libs/libaio:= dev-libs/libnl:3= diff --git a/sys-cluster/ceph/ceph-14.2.16.ebuild b/sys-cluster/ceph/ceph-14.2.16-r1.ebuild index f51d774fe5f2..89887e139515 100644 --- a/sys-cluster/ceph/ceph-14.2.16.ebuild +++ b/sys-cluster/ceph/ceph-14.2.16-r1.ebuild @@ -44,7 +44,7 @@ DEPEND=" app-shells/bash:0 app-misc/jq:= dev-libs/crypto++:= - dev-libs/rocksdb:= + <dev-libs/rocksdb-6.15:= dev-libs/leveldb:=[snappy,tcmalloc(-)?] dev-libs/libaio:= dev-libs/libnl:3= @@ -92,7 +92,7 @@ DEPEND=" openssl? ( dev-libs/openssl:= ) libressl? ( dev-libs/libressl:= ) ) - system-boost? ( =dev-libs/boost-1.72*[threads,context,python,${PYTHON_USEDEP}] ) + system-boost? ( dev-libs/boost[threads,context,python,${PYTHON_USEDEP}] ) xfs? ( sys-fs/xfsprogs:= ) zfs? ( sys-fs/zfs:= ) ${PYTHON_DEPS} diff --git a/sys-cluster/ceph/ceph-15.2.8.ebuild b/sys-cluster/ceph/ceph-15.2.8-r1.ebuild index 4fa212f877bc..2a79980b6f05 100644 --- a/sys-cluster/ceph/ceph-15.2.8.ebuild +++ b/sys-cluster/ceph/ceph-15.2.8-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -50,7 +50,7 @@ DEPEND=" dev-libs/libfmt:= dev-libs/libnl:3= dev-libs/libxml2:= - dev-libs/rocksdb:= + <dev-libs/rocksdb-6.15:= dev-libs/xmlsec:=[!openssl?,!libressl?] dev-cpp/yaml-cpp:= dev-libs/nss:= diff --git a/sys-cluster/galera/Manifest b/sys-cluster/galera/Manifest index 3de726561622..b520f03e8230 100644 --- a/sys-cluster/galera/Manifest +++ b/sys-cluster/galera/Manifest @@ -1,6 +1,4 @@ DIST galera-25.3.28.tar.gz 3390722 BLAKE2B 4e399b0f00c7303c11622c3807bc8a7b9b3b5c7747175560905b68abb67d557dde752019c313ba1de961ac2970fbf89d277583ee9c55c142cb1822873d7ab611 SHA512 8ff135022e820fc6a1d33ea1fa6e8677702ed7a7fbf460d45c28cdfe287c666949027989c3152311641debf183f3e8062f561c9935e51d3355df8ba087c5d132 -DIST galera-26.4.2.tar.gz 3499538 BLAKE2B 4531b246da119528192ce85364a344f56aeb83b05b6de0a87fed5cb34f7e23497b9576e4014899c58af23d045501989ccdb51a25ee27b4e32aeb5d1be1054115 SHA512 6c500dbcdc9156421c628c842a00985b3e7c440ad2facbd893f98c846426bf0607ca28152fef99a587146cefb376883ef083d498562d96fcedecf4935a3d466f -DIST galera-26.4.3.tar.gz 3507925 BLAKE2B fb15724dd1477cbabffe6d76e6fee0425a86d335289a61e8b3fbb51b5dd84f8a6259d3ce1cf808fb5b2f2299c2b9f28988a87d0dc67667a02a53e12ba911d976 SHA512 857c6b1965871a5801d3cd7396fec8259e0b72a397b5fb92e63f374531fdb03dbecd5d5ebfdf2f0dc388d87c0ae25b357d02581c8d5889803d04c0a2f2583b52 -DIST galera-26.4.4.tar.gz 3472392 BLAKE2B 146355ad95058d08800870be1c7d1d0be84d2cc621cc7857754468256cfa7ff5c99b98dfab71ea8354f6fdd720ac3a0849f768cf9cc75a55a92e8cdc0a19a9d4 SHA512 4e85b7e5182a04983d1b6f2ea539bb2fc5e02b73502bcaa1c142e92cd3e43d283570301a433518206885b575932ad5d4d9f72243ed94f6c7245036f24c699d8f -DIST galera-4-26.4.5.tar.gz 3527293 BLAKE2B 2e46a1a76ea512cd644f9df6db380fcf232ef296b4178cb85782ece7e6ec70d281e89aea495167028c6e19d70455aecd272e18d8187123093e438715743a2ba6 SHA512 a8400a2a2d9b378e1e5ab9311b2d174355f9126b3bb81863de57db698bcea7571330e255b0f6d139abc4378c80db898739c856b639142864ce34cd147f255b0f +DIST galera-25.3.32.tar.gz 1277302 BLAKE2B 061e146054e530d8e95139749d345ddf5a94bfd5861fad7e7c3612400e766f80618f79e18434f93bd188ebfe46f103e805f2ba18eeca81dfee34eb4212a9b3d2 SHA512 e9aa97c0d0de61c25bc11181a99ee38e24a6ffe5ed71769b5034ea7f232502f082f2c88ccacbc832ab37c19b8f647b5e2c4f2e67efcd7c6d3e5880c6a95eaa53 +DIST galera-26.4.7.tar.gz 1339462 BLAKE2B 9d8ef6ba9e153de848005195edbd99234f282c4e7bda4ddf42f3d6c99088fc3e57536863eb244bfb90d37dbdb6d0cc71661ee5297e59f2faf666da84ee731975 SHA512 ae9c898756ed6cd180bb7bc6a25e7e6b533e4a15a88d3820a936ca203cb0215aca5840599214d2236013da6759981471b47e0e0759d1ccd24c05b8e3c59f3a8c DIST galera-4-26.4.6.tar.gz 3531340 BLAKE2B fd3d29aa1a07d4f4a23fd2d1725e52fe1cf2bb4aada58eb1fa40b2c1b2ea7e804153b3ec045ccbaad616223847d895f450f50e5abe5f8708970d25d7da1a45d6 SHA512 25bb2786d7afcc62fa64fd3172dd1480ece76f33df1cc0e3fba5fa19c67a08a39f4645566d020a0c447062c790854377dfe4fc46318346b2f42763a42edeab3a diff --git a/sys-cluster/galera/files/galera-25.3.32-respect-cflags.patch b/sys-cluster/galera/files/galera-25.3.32-respect-cflags.patch new file mode 100644 index 000000000000..94c1f829450a --- /dev/null +++ b/sys-cluster/galera/files/galera-25.3.32-respect-cflags.patch @@ -0,0 +1,38 @@ +--- a/SConstruct ++++ b/SConstruct +@@ -88,7 +88,7 @@ Commandline Options: + build_target = 'all' + + # Optimization level +-opt_flags = ' -g -O3 -DNDEBUG' ++opt_flags = ' -DNDEBUG' + + # Architecture (defaults to build host type) + compile_arch = '' +@@ -121,26 +121,6 @@ elif debug_lvl == 3: + if dbug: + opt_flags = opt_flags + ' -DGU_DBUG_ON' + +-if sysname == 'sunos': +- compile_arch = ' -mtune=native' +-elif x86: +- if bits == 32: +- if machine == 'x86_64': +- compile_arch = ' -mx32' +- else: +- compile_arch = ' -m32 -march=i686' +- if sysname == 'linux': +- link_arch = ' -Wl,-melf_i386' +- else: +- compile_arch = ' -m64' +- if sysname == 'linux': +- link_arch = ' -Wl,-melf_x86_64' +- link_arch = compile_arch + link_arch +-elif machine == 's390x': +- compile_arch = ' -mzarch' +- if bits == 32: +- compile_arch += ' -m32' +- + boost = int(ARGUMENTS.get('boost', 1)) + boost_pool = int(ARGUMENTS.get('boost_pool', 0)) + system_asio= int(ARGUMENTS.get('system_asio', 1)) diff --git a/sys-cluster/galera/galera-25.3.28-r1.ebuild b/sys-cluster/galera/galera-25.3.28-r1.ebuild index bc2ef0848e57..a0553432bd10 100644 --- a/sys-cluster/galera/galera-25.3.28-r1.ebuild +++ b/sys-cluster/galera/galera-25.3.28-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 diff --git a/sys-cluster/galera/galera-26.4.3.ebuild b/sys-cluster/galera/galera-25.3.32.ebuild index fcf66d78719a..a1fc332b0ff6 100644 --- a/sys-cluster/galera/galera-26.4.3.ebuild +++ b/sys-cluster/galera/galera-25.3.32.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -9,12 +9,12 @@ inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" HOMEPAGE="https://galeracluster.com" -SRC_URI="http://nyc2.mirrors.digitalocean.com/mariadb/mariadb-10.4.10/${P}/src/${P}.tar.gz" +SRC_URI="https://releases.galeracluster.com/galera-3/source/galera-3-${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2 BSD" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 x86" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" IUSE="cpu_flags_x86_sse4_2 garbd test" RESTRICT="!test? ( test )" @@ -22,18 +22,23 @@ CDEPEND=" dev-libs/openssl:0= >=dev-libs/boost-1.41:0= " + BDEPEND=">=sys-devel/gcc-4.4" + DEPEND="${BDEPEND} ${CDEPEND} dev-libs/check >=dev-cpp/asio-1.10.1[ssl] <dev-cpp/asio-1.12.0 " + #Run time only RDEPEND="${CDEPEND}" # Respect {C,LD}FLAGS. -PATCHES=( "${FILESDIR}/galera-4.1-strip-extra-cflags.patch" ) +PATCHES=( "${FILESDIR}"/${PN}-25.3.32-respect-cflags.patch ) + +S="${WORKDIR}/galera-3-${PV}" src_prepare() { default @@ -48,16 +53,12 @@ src_prepare() { } src_configure() { - tc-export CC CXX - # Uses hardware specific code that seems to depend on SSE4.2 - if use cpu_flags_x86_sse4_2 ; then - append-cflags -msse4.2 - else - append-cflags -DCRC32C_NO_HARDWARE - fi + tc-export AR CC CXX OBJDUMP + # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, # and -Wold-style-cast MYSCONS=( + crc32c_no_hardware=$(usex cpu_flags_x86_sse4_2 0 1) tests=$(usex test 1 0) strict_build_flags=0 system_asio=1 diff --git a/sys-cluster/galera/galera-26.4.2.ebuild b/sys-cluster/galera/galera-26.4.2.ebuild deleted file mode 100644 index ad33becdc9c4..000000000000 --- a/sys-cluster/galera/galera-26.4.2.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit python-any-r1 scons-utils toolchain-funcs user flag-o-matic - -DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" -HOMEPAGE="https://galeracluster.com" -SRC_URI="http://nyc2.mirrors.digitalocean.com/mariadb/mariadb-10.4.5/${P}/src/${P}.tar.gz" -LICENSE="GPL-2 BSD" - -SLOT="0" - -KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~x86" -IUSE="cpu_flags_x86_sse4_2 garbd test" -RESTRICT="!test? ( test )" - -CDEPEND=" - dev-libs/openssl:0= - >=dev-libs/boost-1.41:0= - " -BDEPEND=">=sys-devel/gcc-4.4" -DEPEND="${BDEPEND} - ${CDEPEND} - dev-libs/check - >=dev-cpp/asio-1.10.1[ssl] - <dev-cpp/asio-1.12.0 - " -#Run time only -RDEPEND="${CDEPEND}" - -# Respect {C,LD}FLAGS. -PATCHES=( "${FILESDIR}/galera-4.1-strip-extra-cflags.patch" ) - -pkg_preinst() { - if use garbd ; then - enewgroup garbd - enewuser garbd -1 -1 -1 garbd - fi -} - -src_prepare() { - default - - # Remove bundled dev-cpp/asio - rm -r "${S}/asio" || die - - #Remove optional garbd daemon - if ! use garbd ; then - rm -r "${S}/garb" || die - fi -} - -src_configure() { - tc-export CC CXX - # Uses hardware specific code that seems to depend on SSE4.2 - if use cpu_flags_x86_sse4_2 ; then - append-cflags -msse4.2 - else - append-cflags -DCRC32C_NO_HARDWARE - fi - # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, - # and -Wold-style-cast - MYSCONS=( - tests=$(usex test 1 0) - strict_build_flags=0 - system_asio=1 - ) -} - -src_compile() { - escons --warn=no-missing-sconscript "${MYSCONS[@]}" -} - -src_install() { - dodoc scripts/packages/README scripts/packages/README-MySQL - if use garbd ; then - dobin garb/garbd - newconfd "${FILESDIR}/garb.cnf" garbd - newinitd "${FILESDIR}/garb.sh" garbd - doman man/garbd.8 - fi - exeinto /usr/$(get_libdir)/${PN} - doexe libgalera_smm.so -} diff --git a/sys-cluster/galera/galera-26.4.4.ebuild b/sys-cluster/galera/galera-26.4.4.ebuild deleted file mode 100644 index bf514dadf6bf..000000000000 --- a/sys-cluster/galera/galera-26.4.4.ebuild +++ /dev/null @@ -1,84 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{6,7,8,9,10} ) - -inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic - -DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" -HOMEPAGE="https://galeracluster.com" -SRC_URI="http://nyc2.mirrors.digitalocean.com/mariadb/mariadb-10.4.13/${P}/src/${P}.tar.gz" -LICENSE="GPL-2 BSD" - -SLOT="0" - -KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc ppc64 x86" -IUSE="cpu_flags_x86_sse4_2 garbd test" -RESTRICT="!test? ( test )" - -CDEPEND=" - dev-libs/openssl:0= - >=dev-libs/boost-1.41:0= - " -BDEPEND=">=sys-devel/gcc-4.4" -DEPEND="${BDEPEND} - ${CDEPEND} - dev-libs/check - >=dev-cpp/asio-1.10.1[ssl] - <dev-cpp/asio-1.12.0 - " -#Run time only -RDEPEND="${CDEPEND}" - -# Respect {C,LD}FLAGS. -PATCHES=( - "${FILESDIR}"/${PN}-4.1-strip-extra-cflags.patch - "${FILESDIR}"/${PN}-26.4.4-respect-AR.patch -) - -src_prepare() { - default - - # Remove bundled dev-cpp/asio - rm -r "${S}/asio" || die - - #Remove optional garbd daemon - if ! use garbd ; then - rm -r "${S}/garb" || die - fi -} - -src_configure() { - tc-export AR CC CXX - # Uses hardware specific code that seems to depend on SSE4.2 - if use cpu_flags_x86_sse4_2 ; then - append-cflags -msse4.2 - else - append-cflags -DCRC32C_NO_HARDWARE - fi - # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, - # and -Wold-style-cast - MYSCONS=( - tests=$(usex test 1 0) - strict_build_flags=0 - system_asio=1 - ) -} - -src_compile() { - escons --warn=no-missing-sconscript "${MYSCONS[@]}" -} - -src_install() { - dodoc scripts/packages/README scripts/packages/README-MySQL - if use garbd ; then - dobin garb/garbd - newconfd "${FILESDIR}/garb.cnf" garbd - newinitd "${FILESDIR}/garb.init" garbd - doman man/garbd.8 - fi - exeinto /usr/$(get_libdir)/${PN} - doexe libgalera_smm.so -} diff --git a/sys-cluster/galera/galera-26.4.5.ebuild b/sys-cluster/galera/galera-26.4.7.ebuild index be4add7a42d7..3c604b317b46 100644 --- a/sys-cluster/galera/galera-26.4.5.ebuild +++ b/sys-cluster/galera/galera-26.4.7.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -7,11 +7,9 @@ PYTHON_COMPAT=( python3_{6,7,8,9,10} ) inherit python-any-r1 scons-utils toolchain-funcs flag-o-matic -MY_P="${PN}-4-${PV}" - DESCRIPTION="Synchronous multi-master replication engine that provides the wsrep API" HOMEPAGE="https://galeracluster.com" -SRC_URI="http://releases.galeracluster.com/galera-4/source/${MY_P}.tar.gz" +SRC_URI="https://releases.galeracluster.com/galera-4/source/galera-4-${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2 BSD" SLOT="0" @@ -24,23 +22,26 @@ CDEPEND=" dev-libs/openssl:0= >=dev-libs/boost-1.41:0= " + BDEPEND=">=sys-devel/gcc-4.4" + DEPEND="${BDEPEND} ${CDEPEND} dev-libs/check >=dev-cpp/asio-1.10.1[ssl] <dev-cpp/asio-1.12.0 " + #Run time only RDEPEND="${CDEPEND}" # Respect {C,LD}FLAGS. PATCHES=( - "${FILESDIR}"/${PN}-26.4.5-strip-extra-cflags.patch + "${FILESDIR}"/${PN}-26.4.6-strip-extra-cflags.patch "${FILESDIR}"/${PN}-26.4.5-respect-toolchain.patch ) -S="${WORKDIR}/${MY_P}" +S="${WORKDIR}/galera-4-${PV}" src_prepare() { default @@ -56,15 +57,11 @@ src_prepare() { src_configure() { tc-export AR CC CXX OBJDUMP - # Uses hardware specific code that seems to depend on SSE4.2 - if use cpu_flags_x86_sse4_2 ; then - append-cflags -msse4.2 - else - append-cflags -DCRC32C_NO_HARDWARE - fi + # strict_build_flags=0 disables -Werror, -pedantic, -Weffc++, # and -Wold-style-cast MYSCONS=( + crc32c_no_hardware=$(usex cpu_flags_x86_sse4_2 0 1) tests=$(usex test 1 0) strict_build_flags=0 system_asio=1 diff --git a/sys-cluster/glusterfs/Manifest b/sys-cluster/glusterfs/Manifest index d7ff5a5d691a..e9c7f8fc1508 100644 --- a/sys-cluster/glusterfs/Manifest +++ b/sys-cluster/glusterfs/Manifest @@ -1,2 +1,5 @@ DIST glusterfs-7.7.tar.gz 7675420 BLAKE2B cadd415053d791f5fe4fddbc45bf237275b29fb0340202eaf81bbd2e98c8e7a1b59fa276b8b47679224198675759287a2245095a751602a866d512155dfa73c8 SHA512 0a301802920e337a4931ed36133c76ef551e0c1794d324e5a0a120d289a53fb8a4a2fd8adaa7abe5a40b8b17cc2bb18d01426c9f18d91f68b1589429ddbaa125 DIST glusterfs-7.8.tar.gz 7703665 BLAKE2B 39a2b459fc021bf17c2ea12661d8c808a688c5934de087d23550409f6c68dff5ea94156dcba52f15d78db8b600ebf9418152a6d6bf10d1ac6291d43d14f3ceda SHA512 40f7df4bb80a372b370366e8f370f9efdf838122be84d5524b2353027b4eb6005a43b808911214c56411264764164d6480418329db94ed0fe284fdcbd9bccbea +DIST glusterfs-7.9.tar.gz 7702149 BLAKE2B e23b5a45a8c2c4f02f0992dfc78bea942a1dcc621082cb5c6aebf73e0cba17a7c0334700aec8c82dc7d093fbddcf9f579320561412b94ec010cf51c0210f2654 SHA512 5683bf2ff3550b8286e27b70981cb176c445e432624db79f065eb5928bc4afdf009f54f3b1d5abde1f6d2c532c9c4820860685aea0d0f709dc78fcf35bfea688 +DIST glusterfs-8.3.tar.gz 7829522 BLAKE2B 1ba60f7209db4f1ce21237c3adea94df1b9eae04d15f99eb414bf961ea67aa7e08d01ea47c8793a33afbc0ff6cf63ecb81f78fa1ba74d66e2d4358ef2bdadacc SHA512 7ca9d3d8938eb27a7347461a07457e90d1ee6e8d5417970e38245c819cf09bf2ecf9de3954b75edf5cf14816e1059fb381b95935ae1f973ebd14ee7531322aa9 +DIST glusterfs-9.0.tar.gz 8171193 BLAKE2B f9f9905515607b4877432bde264075f73c4c076ae435a67ab803affc468f5f88d02235419fea6e25db19adecff9b797a41eb5ac63772fe81251c064389f7aca6 SHA512 daa5a7342c067c75668910e8fed17145636e7a576830b4cd68e81d9fceedaab918228b8780ebd5014e2397e0606858af650cd2c52bec0883ccd2126955ad07e7 diff --git a/sys-cluster/glusterfs/glusterfs-7.9.ebuild b/sys-cluster/glusterfs/glusterfs-7.9.ebuild new file mode 100644 index 000000000000..5e1fdbf3bd69 --- /dev/null +++ b/sys-cluster/glusterfs/glusterfs-7.9.ebuild @@ -0,0 +1,211 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit autotools elisp-common python-single-r1 systemd + +if [[ ${PV#9999} != ${PV} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" +else + SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" +HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/" + +LICENSE="|| ( GPL-2 LGPL-3+ )" +SLOT="0/${PV%%.*}" +IUSE="debug emacs +fuse +georeplication infiniband ipv6 libressl +libtirpc rsyslog static-libs +syslog test +xml" + +REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} ) + ipv6? ( libtirpc )" + +# the tests must be run as root +RESTRICT="test" + +# sys-apps/util-linux is required for libuuid +RDEPEND=" + acct-group/gluster + acct-user/gluster + dev-libs/libaio + dev-libs/userspace-rcu:= + net-libs/rpcsvc-proto + sys-apps/util-linux + sys-libs/readline:= + emacs? ( >=app-editors/emacs-23.1:* ) + fuse? ( >=sys-fs/fuse-2.7.0:0 ) + georeplication? ( ${PYTHON_DEPS} ) + infiniband? ( sys-fabric/libibverbs:* sys-fabric/librdmacm:* ) + xml? ( dev-libs/libxml2 ) + !elibc_glibc? ( sys-libs/argp-standalone ) + libtirpc? ( net-libs/libtirpc:= ) + !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) + !libressl? ( dev-libs/openssl:=[-bindist] ) + libressl? ( dev-libs/libressl:= ) +" +DEPEND=" + ${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/acl + test? ( >=dev-util/cmocka-1.0.1 + app-benchmarks/dbench + dev-vcs/git + net-fs/nfs-utils + virtual/perl-Test-Harness + dev-libs/yajl + sys-fs/xfsprogs + sys-apps/attr ) +" +BDEPEND=" + virtual/pkgconfig +" + +SITEFILE="50${PN}-mode-gentoo.el" + +DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) + +PATCHES=( + "${FILESDIR}/${PN}-7.7-flock.patch" +) + +# Maintainer notes: +# * The build system will always configure & build argp-standalone but it'll never use it +# if the argp.h header is found in the system. Which should be the case with +# glibc or if argp-standalone is installed. + +pkg_setup() { + python_setup "python3*" + python-single-r1_pkg_setup +} + +src_prepare() { + default + + # build rpc-transport and xlators only once as shared libs + find rpc/rpc-transport xlators -name Makefile.am -exec \ + sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die + + # fix execution permissions + chmod +x libglusterfs/src/gen-defaults.py || die + + eautoreconf +} + +src_configure() { + econf \ + --disable-fusermount \ + $(use_enable debug) \ + $(use_enable fuse fuse-client) \ + $(use_enable georeplication) \ + $(use_enable infiniband ibverbs) \ + $(use_enable static-libs static) \ + $(use_enable syslog) \ + $(use_enable test cmocka) \ + $(use_enable xml xml-output) \ + $(use libtirpc || echo --without-libtirpc) \ + $(use ipv6 && echo --with-ipv6-default) \ + --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ + --localstatedir="${EPREFIX}"/var +} + +src_compile() { + default + use emacs && elisp-compile extras/glusterfs-mode.el +} + +src_install() { + default + + rm \ + "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ + "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ + "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" + + insinto /etc/logrotate.d + newins "${FILESDIR}"/glusterfs.logrotate glusterfs + + if use rsyslog ; then + insinto /etc/rsyslog.d + newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf + fi + + if use emacs ; then + elisp-install ${PN} extras/glusterfs-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim + insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim + + # insert some other tools which might be useful + insinto /usr/share/glusterfs/scripts + doins \ + extras/backend-{cleanup,xattr-sanitize}.sh \ + extras/clear_xattrs.sh \ + extras/migrate-unify-to-distribute.sh + + # correct permissions on installed scripts + # fperms 0755 /usr/share/glusterfs/scripts/*.sh + chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die + + if use georeplication ; then + # move the gsync-sync-gfid tool to a binary path + # and set a symlink to be compliant with all other distros + mv "${ED}"/usr/{share/glusterfs/scripts/gsync-sync-gfid,libexec/glusterfs/} || die + dosym ../../../libexec/glusterfs/gsync-sync-gfid /usr/share/glusterfs/scripts/gsync-sync-gfid + fi + + newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd + newinitd "${FILESDIR}/glusterd-r3.initd" glusterd + newconfd "${FILESDIR}/${PN}.confd" glusterfsd + + keepdir /var/log/${PN} + keepdir /var/lib/glusterd/{events,glusterfind/.keys} + + # QA + rm -r "${ED}/var/run/" || die + if ! use static-libs; then + find "${D}" -type f -name '*.la' -delete || die + fi + + python_optimize "${ED}" +} + +src_test() { + ./run-tests.sh || die +} + +pkg_postinst() { + elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" + elog "volumes dynamically. To do so, simply use the gluster CLI after running:" + elog " /etc/init.d/glusterd start" + echo + elog "For static configurations, the glusterfsd startup script can be multiplexed." + elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" + elog "separate service. To create additional instances of the glusterfsd service" + elog "simply create a symlink to the glusterfsd startup script." + echo + elog "Example:" + elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" + elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" + elog "You can now treat glusterfsd2 like any other service" + echo + ewarn "You need to use a ntp client to keep the clocks synchronized across all" + ewarn "of your servers. Setup a NTP synchronizing service before attempting to" + ewarn "run GlusterFS." + echo + elog "If you are upgrading from a previous version of ${PN}, please read:" + elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" + + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sys-cluster/glusterfs/glusterfs-8.3.ebuild b/sys-cluster/glusterfs/glusterfs-8.3.ebuild new file mode 100644 index 000000000000..4c85017015ce --- /dev/null +++ b/sys-cluster/glusterfs/glusterfs-8.3.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit autotools elisp-common python-single-r1 systemd + +if [[ ${PV#9999} != ${PV} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" +else + SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" +HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/" + +LICENSE="|| ( GPL-2 LGPL-3+ )" +SLOT="0/${PV%%.*}" +IUSE="debug emacs +fuse +georeplication ipv6 libressl +libtirpc rsyslog static-libs +syslog test +xml" + +REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} xml ) + ipv6? ( libtirpc )" + +# the tests must be run as root +RESTRICT="test" + +# sys-apps/util-linux is required for libuuid +RDEPEND=" + acct-group/gluster + acct-user/gluster + dev-libs/libaio + dev-libs/userspace-rcu:= + net-libs/rpcsvc-proto + sys-apps/util-linux + sys-libs/readline:= + emacs? ( >=app-editors/emacs-23.1:* ) + fuse? ( >=sys-fs/fuse-2.7.0:0 ) + georeplication? ( ${PYTHON_DEPS} ) + xml? ( dev-libs/libxml2 ) + !elibc_glibc? ( sys-libs/argp-standalone ) + libtirpc? ( net-libs/libtirpc:= ) + !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) + !libressl? ( dev-libs/openssl:=[-bindist] ) + libressl? ( dev-libs/libressl:= ) +" +DEPEND=" + ${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/acl + test? ( >=dev-util/cmocka-1.0.1 + app-benchmarks/dbench + dev-vcs/git + net-fs/nfs-utils + virtual/perl-Test-Harness + dev-libs/yajl + sys-fs/xfsprogs + sys-apps/attr ) +" +BDEPEND=" + virtual/pkgconfig +" + +SITEFILE="50${PN}-mode-gentoo.el" + +DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) + +# Maintainer notes: +# * The build system will always configure & build argp-standalone but it'll never use it +# if the argp.h header is found in the system. Which should be the case with +# glibc or if argp-standalone is installed. + +pkg_setup() { + python_setup "python3*" + python-single-r1_pkg_setup +} + +src_prepare() { + default + + # build rpc-transport and xlators only once as shared libs + find rpc/rpc-transport xlators -name Makefile.am -exec \ + sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die + + # fix execution permissions + chmod +x libglusterfs/src/gen-defaults.py || die + + eautoreconf +} + +src_configure() { + econf \ + --disable-fusermount \ + $(use_enable debug) \ + $(use_enable fuse fuse-client) \ + $(use_enable georeplication) \ + $(use_enable static-libs static) \ + $(use_enable syslog) \ + $(use_enable test cmocka) \ + $(use_enable xml xml-output) \ + $(use libtirpc || echo --without-libtirpc) \ + $(use ipv6 && echo --with-ipv6-default) \ + --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ + --localstatedir="${EPREFIX}"/var +} + +src_compile() { + default + use emacs && elisp-compile extras/glusterfs-mode.el +} + +src_install() { + default + + rm \ + "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ + "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ + "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" + + insinto /etc/logrotate.d + newins "${FILESDIR}"/glusterfs.logrotate glusterfs + + if use rsyslog ; then + insinto /etc/rsyslog.d + newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf + fi + + if use emacs ; then + elisp-install ${PN} extras/glusterfs-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim + insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim + + # insert some other tools which might be useful + insinto /usr/share/glusterfs/scripts + doins \ + extras/backend-{cleanup,xattr-sanitize}.sh \ + extras/clear_xattrs.sh \ + extras/migrate-unify-to-distribute.sh + + # correct permissions on installed scripts + # fperms 0755 /usr/share/glusterfs/scripts/*.sh + chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die + + newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd + newinitd "${FILESDIR}/glusterd-r3.initd" glusterd + newconfd "${FILESDIR}/${PN}.confd" glusterfsd + + keepdir /var/log/${PN} + keepdir /var/lib/glusterd/{events,glusterfind/.keys} + + # QA + rm -r "${ED}/var/run/" || die + if ! use static-libs; then + find "${D}" -type f -name '*.la' -delete || die + fi + + python_optimize "${ED}" +} + +src_test() { + ./run-tests.sh || die +} + +pkg_postinst() { + elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" + elog "volumes dynamically. To do so, simply use the gluster CLI after running:" + elog " /etc/init.d/glusterd start" + echo + elog "For static configurations, the glusterfsd startup script can be multiplexed." + elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" + elog "separate service. To create additional instances of the glusterfsd service" + elog "simply create a symlink to the glusterfsd startup script." + echo + elog "Example:" + elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" + elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" + elog "You can now treat glusterfsd2 like any other service" + echo + ewarn "You need to use a ntp client to keep the clocks synchronized across all" + ewarn "of your servers. Setup a NTP synchronizing service before attempting to" + ewarn "run GlusterFS." + echo + elog "If you are upgrading from a previous version of ${PN}, please read:" + elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" + + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sys-cluster/glusterfs/glusterfs-9.0.ebuild b/sys-cluster/glusterfs/glusterfs-9.0.ebuild new file mode 100644 index 000000000000..4c85017015ce --- /dev/null +++ b/sys-cluster/glusterfs/glusterfs-9.0.ebuild @@ -0,0 +1,198 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9,10} ) + +inherit autotools elisp-common python-single-r1 systemd + +if [[ ${PV#9999} != ${PV} ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/gluster/glusterfs.git" +else + SRC_URI="https://download.gluster.org/pub/gluster/${PN}/$(ver_cut 1)/${PV}/${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" +fi + +DESCRIPTION="GlusterFS is a powerful network/cluster filesystem" +HOMEPAGE="https://www.gluster.org/ https://github.com/gluster/glusterfs/" + +LICENSE="|| ( GPL-2 LGPL-3+ )" +SLOT="0/${PV%%.*}" +IUSE="debug emacs +fuse +georeplication ipv6 libressl +libtirpc rsyslog static-libs +syslog test +xml" + +REQUIRED_USE="georeplication? ( ${PYTHON_REQUIRED_USE} xml ) + ipv6? ( libtirpc )" + +# the tests must be run as root +RESTRICT="test" + +# sys-apps/util-linux is required for libuuid +RDEPEND=" + acct-group/gluster + acct-user/gluster + dev-libs/libaio + dev-libs/userspace-rcu:= + net-libs/rpcsvc-proto + sys-apps/util-linux + sys-libs/readline:= + emacs? ( >=app-editors/emacs-23.1:* ) + fuse? ( >=sys-fs/fuse-2.7.0:0 ) + georeplication? ( ${PYTHON_DEPS} ) + xml? ( dev-libs/libxml2 ) + !elibc_glibc? ( sys-libs/argp-standalone ) + libtirpc? ( net-libs/libtirpc:= ) + !libtirpc? ( elibc_glibc? ( sys-libs/glibc[rpc(-)] ) ) + !libressl? ( dev-libs/openssl:=[-bindist] ) + libressl? ( dev-libs/libressl:= ) +" +DEPEND=" + ${RDEPEND} + sys-devel/bison + sys-devel/flex + virtual/acl + test? ( >=dev-util/cmocka-1.0.1 + app-benchmarks/dbench + dev-vcs/git + net-fs/nfs-utils + virtual/perl-Test-Harness + dev-libs/yajl + sys-fs/xfsprogs + sys-apps/attr ) +" +BDEPEND=" + virtual/pkgconfig +" + +SITEFILE="50${PN}-mode-gentoo.el" + +DOCS=( AUTHORS ChangeLog NEWS README.md THANKS ) + +# Maintainer notes: +# * The build system will always configure & build argp-standalone but it'll never use it +# if the argp.h header is found in the system. Which should be the case with +# glibc or if argp-standalone is installed. + +pkg_setup() { + python_setup "python3*" + python-single-r1_pkg_setup +} + +src_prepare() { + default + + # build rpc-transport and xlators only once as shared libs + find rpc/rpc-transport xlators -name Makefile.am -exec \ + sed -i 's|.*$(top_srcdir).*\.sym|\0 -shared|' {} + || die + + # fix execution permissions + chmod +x libglusterfs/src/gen-defaults.py || die + + eautoreconf +} + +src_configure() { + econf \ + --disable-fusermount \ + $(use_enable debug) \ + $(use_enable fuse fuse-client) \ + $(use_enable georeplication) \ + $(use_enable static-libs static) \ + $(use_enable syslog) \ + $(use_enable test cmocka) \ + $(use_enable xml xml-output) \ + $(use libtirpc || echo --without-libtirpc) \ + $(use ipv6 && echo --with-ipv6-default) \ + --with-tmpfilesdir="${EPREFIX}"/etc/tmpfiles.d \ + --localstatedir="${EPREFIX}"/var +} + +src_compile() { + default + use emacs && elisp-compile extras/glusterfs-mode.el +} + +src_install() { + default + + rm \ + "${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \ + "${ED}"/etc/glusterfs/gluster-rsyslog-*.conf \ + "${ED}"/usr/share/doc/${PF}/glusterfs{-mode.el,.vim} || die "removing false files failed" + + insinto /etc/logrotate.d + newins "${FILESDIR}"/glusterfs.logrotate glusterfs + + if use rsyslog ; then + insinto /etc/rsyslog.d + newins extras/gluster-rsyslog-7.2.conf 60-gluster.conf + fi + + if use emacs ; then + elisp-install ${PN} extras/glusterfs-mode.el* + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + fi + + insinto /usr/share/vim/vimfiles/ftdetect; doins "${FILESDIR}"/${PN}.vim + insinto /usr/share/vim/vimfiles/syntax; doins extras/${PN}.vim + + # insert some other tools which might be useful + insinto /usr/share/glusterfs/scripts + doins \ + extras/backend-{cleanup,xattr-sanitize}.sh \ + extras/clear_xattrs.sh \ + extras/migrate-unify-to-distribute.sh + + # correct permissions on installed scripts + # fperms 0755 /usr/share/glusterfs/scripts/*.sh + chmod 0755 "${ED}"/usr/share/glusterfs/scripts/*.sh || die + + newinitd "${FILESDIR}/${PN}-r1.initd" glusterfsd + newinitd "${FILESDIR}/glusterd-r3.initd" glusterd + newconfd "${FILESDIR}/${PN}.confd" glusterfsd + + keepdir /var/log/${PN} + keepdir /var/lib/glusterd/{events,glusterfind/.keys} + + # QA + rm -r "${ED}/var/run/" || die + if ! use static-libs; then + find "${D}" -type f -name '*.la' -delete || die + fi + + python_optimize "${ED}" +} + +src_test() { + ./run-tests.sh || die +} + +pkg_postinst() { + elog "Starting with ${PN}-3.1.0, you can use the glusterd daemon to configure your" + elog "volumes dynamically. To do so, simply use the gluster CLI after running:" + elog " /etc/init.d/glusterd start" + echo + elog "For static configurations, the glusterfsd startup script can be multiplexed." + elog "The default startup script uses /etc/conf.d/glusterfsd to configure the" + elog "separate service. To create additional instances of the glusterfsd service" + elog "simply create a symlink to the glusterfsd startup script." + echo + elog "Example:" + elog " # ln -s glusterfsd /etc/init.d/glusterfsd2" + elog " # ${EDITOR} /etc/glusterfs/glusterfsd2.vol" + elog "You can now treat glusterfsd2 like any other service" + echo + ewarn "You need to use a ntp client to keep the clocks synchronized across all" + ewarn "of your servers. Setup a NTP synchronizing service before attempting to" + ewarn "run GlusterFS." + echo + elog "If you are upgrading from a previous version of ${PN}, please read:" + elog " http://docs.gluster.org/en/latest/Upgrade-Guide/upgrade_to_$(ver_cut '1-2')/" + + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/sys-cluster/glusterfs/metadata.xml b/sys-cluster/glusterfs/metadata.xml index 7d83fc80f2fb..4913be6af641 100644 --- a/sys-cluster/glusterfs/metadata.xml +++ b/sys-cluster/glusterfs/metadata.xml @@ -5,6 +5,10 @@ <email>jaco@uls.co.za</email> <name>Jaco Kroon</name> </maintainer> + <maintainer type="person"> + <email>jpds@protonmail.com</email> + <name>Jonathan Davies</name> + </maintainer> <maintainer type="project"> <email>cluster@gentoo.org</email> <name>Gentoo Cluster Project</name> diff --git a/sys-cluster/singularity/Manifest b/sys-cluster/singularity/Manifest index 11ad8bcaf3ee..95ff7a825fbe 100644 --- a/sys-cluster/singularity/Manifest +++ b/sys-cluster/singularity/Manifest @@ -1,2 +1,3 @@ DIST singularity-3.6.4.tar.gz 6183277 BLAKE2B 9fe9b28828149268506e4db895767528a9397c347905c170e96d8e0d7b9d715e4c5f212bf04a2418689f448e8045e52a16c8cc4e93a8066d4d651f1eeb918e92 SHA512 c12cdc6baba6089576396c4391367451a264d6bfe7dd9a4b582d21ee5bd49aeea79372f3d008a4f2f535af307e0890a8d1a72773bb2c0898872eed8c82e48991 DIST singularity-3.7.0.tar.gz 6097313 BLAKE2B 2fa8472bea80fec2613d1598d89354c3655eadee2292f0a4921d680300bc5793c5721f9640aeb398eba6cc91540f132b9d9b2afa175e74ac9f53c8847ff21e13 SHA512 25faadd9b1ec4b9751534cf1176f294696c9afde50adbc42f67d86584a5122fc78500e4ac6c502e5d90a66a9b44b9097a4d0231afcc2615b25d95feab8a3c967 +DIST singularity-3.7.1.tar.gz 6121297 BLAKE2B 10399692559dbaf1a855229f4d3ff845af5b923d9a5b959638481ba58fd5bd04035fb751e5000aa44f816947d88ead85fbdceb8ad5cdb94aa54b0986cb922044 SHA512 ed87bd13bb4bbdcb49981cc02bf37e1db9a5d8fab3ef4314a15cfa391cb2210b55b2e54500fb03811eda8f31499ea7cead9a368a486da0cea0ac71037908c7cc diff --git a/sys-cluster/singularity/singularity-3.7.1.ebuild b/sys-cluster/singularity/singularity-3.7.1.ebuild new file mode 100644 index 000000000000..437a7301250b --- /dev/null +++ b/sys-cluster/singularity/singularity-3.7.1.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info toolchain-funcs + +DESCRIPTION="Application containers for Linux" +HOMEPAGE="https://sylabs.io" +SRC_URI="https://github.com/hpcng/${PN}/releases/download/v${PV}/${P}.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="examples +network +suid" + +# Do not complain about CFLAGS etc since go projects do not use them. +QA_FLAGS_IGNORED='.*' + +COMMON="sys-libs/libseccomp" +BDEPEND="virtual/pkgconfig" +DEPEND="${COMMON} + >=dev-lang/go-1.13.0 + app-crypt/gpgme + dev-libs/openssl + sys-apps/util-linux + sys-fs/cryptsetup" +RDEPEND="${COMMON} + sys-fs/squashfs-tools" + +CONFIG_CHECK="~SQUASHFS" + +S=${WORKDIR}/${PN} + +src_configure() { + local myconfargs=( + -c "$(tc-getBUILD_CC)" \ + -x "$(tc-getBUILD_CXX)" \ + -C "$(tc-getCC)" \ + -X "$(tc-getCXX)" \ + --prefix=/usr \ + --sysconfdir=/etc \ + --runstatedir=/run \ + --localstatedir=/var \ + $(usex network "" "--without-network") \ + $(usex suid "" "--without-suid") + ) + ./mconfig -v ${myconfargs[@]} || die "Error invoking mconfig" +} + +src_compile() { + emake -C builddir +} + +src_install() { + emake DESTDIR="${ED}" -C builddir install + keepdir /var/singularity/mnt/session + + # As of version 3.5.3 this seems to be very much broken, affecting + # commands which have got nothing to do with singularity (example: + # completion on 'udisks mount -b /dev/' rejects all files from that + # directory other than 'autofs'). Moreover, this should go into + # $(get_bashcompdir) (from bash-completion-r1.eclass) rather than /etc. + # Hopefully temporary, which is why we delete this at install time + # instead of patching build scripts not to generate bash-completion + # data in the first place. + rm -rf "${ED}"/etc/bash_completion.d || die + + dodoc README.md CONTRIBUTORS.md CONTRIBUTING.md + if use examples; then + dodoc -r examples + fi +} |
