diff options
author | Guilherme Amadio <amadio@gentoo.org> | 2024-12-06 09:37:35 +0100 |
---|---|---|
committer | Guilherme Amadio <amadio@gentoo.org> | 2024-12-06 10:26:42 +0100 |
commit | d7c5f4474c6f1b0a65677dcbadd7deb450fe6de2 (patch) | |
tree | eb7e267f98953c869271ccc927ccd28c11a1b45b /net-fs | |
parent | media-sound/yoshimi: bump to 2.3.3.2 (diff) | |
download | gentoo-d7c5f4474c6f1b0a65677dcbadd7deb450fe6de2.tar.gz gentoo-d7c5f4474c6f1b0a65677dcbadd7deb450fe6de2.tar.bz2 gentoo-d7c5f4474c6f1b0a65677dcbadd7deb450fe6de2.zip |
net-fs/cvmfs: add 2.12.0
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
Diffstat (limited to 'net-fs')
-rw-r--r-- | net-fs/cvmfs/Manifest | 1 | ||||
-rw-r--r-- | net-fs/cvmfs/cvmfs-2.12.0.ebuild | 104 |
2 files changed, 105 insertions, 0 deletions
diff --git a/net-fs/cvmfs/Manifest b/net-fs/cvmfs/Manifest index 5133294a7673..042f97875477 100644 --- a/net-fs/cvmfs/Manifest +++ b/net-fs/cvmfs/Manifest @@ -1,2 +1,3 @@ DIST cvmfs-2.11.3.tar.gz 76021990 BLAKE2B 97b47b848159ef097f318152445278d0c6039719f0b25dbbe13c0a50ad98399b6ec432392e257be8731071c1645d3e698410435eed541bb9dafd133327b1e8d1 SHA512 51140b81fbad9f4cc1bd6206fc76b0d9585e81d884c7de44dc4819c388c8b71c4f50d1061b47bf8cd910aabd9f4e8bb1aaa127d34ccb4958ff2ba81894aae626 DIST cvmfs-2.11.5.tar.gz 76761232 BLAKE2B ca665e0cdeab589d8cfcb4879b6e03a09330f9fa559aaa179cf7df10e9e92aa0a8ee215c3dc80eec6e2cc0912d7de80c759c2717303b94da8b2295fb3496d6b5 SHA512 fac61c59c9758d50f3ff1d90fbd60ea078c62f32aaba56ea02d1da11bfc2d304c340cc7ec539965bef3f0b7d6076502fdc5de8d8ed0f955289b77dcaa9d4de08 +DIST cvmfs-2.12.0.tar.gz 76790865 BLAKE2B 95e4cf176e37bbaa5bd8c05f0e19bfda068a2c01276f748a76267c31df4ff66fa6a1779d2190c81d21c8d770601232335f3f8464dfd971615ddb119734a522f8 SHA512 e2159304366a82fb5e2693ddf700c9c29abb9f4948768a84245f1aa0919e03f1d340644b0a05566ce7969e324c70011bea84132681f26146bff763ad24847c4a diff --git a/net-fs/cvmfs/cvmfs-2.12.0.ebuild b/net-fs/cvmfs/cvmfs-2.12.0.ebuild new file mode 100644 index 000000000000..6859d25ce946 --- /dev/null +++ b/net-fs/cvmfs/cvmfs-2.12.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake linux-info bash-completion-r1 + +DESCRIPTION="HTTP read-only file system for distributing software" +HOMEPAGE="https://cernvm.cern.ch/fs/" +SRC_URI="https://ecsft.cern.ch/dist/cvmfs/${P}/source.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" + +KEYWORDS="~amd64 ~x86" +IUSE="server" + +CDEPEND=" + acct-group/cvmfs + acct-user/cvmfs + app-arch/libarchive + dev-cpp/gtest + dev-cpp/sparsehash + dev-db/sqlite:3= + dev-libs/leveldb:0= + dev-libs/openssl:0= + dev-libs/protobuf:0= + net-dns/c-ares:0= + net-libs/pacparser:0= + net-misc/curl:0[adns] + sys-apps/attr + sys-fs/fuse:0= + sys-fs/fuse:3= + sys-libs/libcap:0= + sys-libs/zlib:0= +" + +RDEPEND="${CDEPEND} + app-admin/sudo + net-fs/autofs +" + +DEPEND="${CDEPEND} + virtual/pkgconfig +" + +PATCHES=( + "${FILESDIR}"/${PN}-2.10.1-gentoo.patch +) + +pkg_setup() { + if use server; then + CONFIG_CHECK="~OVERLAY_FS" + ERROR_AUFS_FS="CONFIG_OVERLAY_FS: is required to be set" + linux-info_pkg_setup + fi +} + +src_prepare() { + cmake_src_prepare + # gentoo stuff + rm bootstrap.sh || die + sed -i -e "s:/usr/bin/systemctl:/bin/systemctl:g" \ + -e "/^INSTALL_BASE/s:=.*\$:=${EPREFIX}/usr:" \ + -e "s:/bin/pidof:/usr/bin/pidof:g" cvmfs/cvmfs_config || die + sed -i -e 's/COPYING//' -e "s:cvmfs-\${CernVM-FS_VERSION_STRING}:${PF}:" \ + CMakeLists.txt || die + eapply_user +} + +src_configure() { + local mycmakeargs=( + -DBUILTIN_EXTERNALS=OFF + -DBUILD_CVMFS=ON + -DBUILD_LIBCVMFS=OFF # static library used only for development + -DBUILD_DOCUMENTATION=OFF + -DBUILD_GEOAPI=OFF # only used for stratum 1 servers + -DBUILD_LIBCVMFS_CACHE=OFF # for exotic cache configs + -DBUILD_PRELOADER=OFF # special purpose utility for HPCs + -DBUILD_RECEIVER=OFF # for distributed publishers only + -DBUILD_SERVER=$(usex server) + -DINSTALL_BASH_COMPLETION=OFF + -DINSTALL_MOUNT_SCRIPTS=ON + -DINSTALL_PUBLIC_KEYS=ON + ) + + cmake_src_configure +} + +src_install() { + cmake_src_install + newbashcomp cvmfs/bash_completion/cvmfs.bash_completion cvmfs_config + bashcomp_alias cvmfs_config cvmfs_server + dodoc doc/*.md + keepdir /var/lib/cvmfs + use server && keepdir /var/lib/cvmfs-server +} + +pkg_config() { + einfo "Setting up CernVM-FS client" + cvmfs_config setup + einfo "Now edit ${EROOT}/etc/cvmfs/default.local" + einfo "and restart the autofs service" +} |