diff --git a/README.md b/README.md index 1186a61..4a20d39 100644 --- a/README.md +++ b/README.md @@ -367,16 +367,25 @@ Bees is available in Arch Linux AUR. Install with: `$ pacaur -S bees-git` -Gentoo ebuild -------------- +Gentoo package +-------------- -Bees is available as a Gentoo ebuild. Just copy `bees-9999.ebuild` from -`contrib/gentoo` including the `files` subdirectory to your local -overlay category `sys-fs`. +Bees is officially available in Gentoo Portage. Just emerge a stable +version: -You can copy the ebuild to match a Bees version number, and it will -build that tagged version. It is partly supported since v0.5, -previous versions won't work. +`$ emerge --ask bees` + +or build a live version from git master: + +`$ emerge --ask =bees-9999` + +You can opt-out of building the support tools with + +`USE="-tools" emerge ...` + +If you want to start hacking on bees and contribute changes, just emerge +the live version which automatically pulls in all required development +packages. Build from source ----------------- @@ -400,7 +409,10 @@ Packaging --------- See 'Dependencies' below. Package maintainers can pick ideas for building and -configuring the source package from the Gentoo ebuild in `contrib/gentoo`. +configuring the source package from the Gentoo ebuild: + +https://github.com/gentoo/gentoo/tree/master/sys-fs/bees + You can configure some build options by creating a file `localconf` and adjust settings for your distribution environment there. diff --git a/contrib/gentoo-bees/metadata/layout.conf b/contrib/gentoo-bees/metadata/layout.conf deleted file mode 100644 index f42dbbf..0000000 --- a/contrib/gentoo-bees/metadata/layout.conf +++ /dev/null @@ -1,18 +0,0 @@ -# manifest-hashes specify hashes used for new/updated entries -# the current set went live on 2017-11-21, per 2017-11-12 Council meeting -# https://archives.gentoo.org/gentoo-dev/message/ba2e5d9666ebd7e1bff1143485a37856 -manifest-hashes = BLAKE2B SHA512 - -# The following hashes are required on all Manifest entries. If any -# of them are missing, repoman will refetch and rehash old distfiles. -# Otherwise, old distfiles will keep using their current hash set. -manifest-required-hashes = BLAKE2B - -# No more old ChangeLogs in Git -update-changelog = false - -# Sign Git commits, and NOT Manifests -sign-commits = true -sign-manifests = false - -masters = gentoo diff --git a/contrib/gentoo-bees/profiles/repo_name b/contrib/gentoo-bees/profiles/repo_name deleted file mode 100644 index 5e77210..0000000 --- a/contrib/gentoo-bees/profiles/repo_name +++ /dev/null @@ -1 +0,0 @@ -bees diff --git a/contrib/gentoo-bees/sys-fs/bees/Manifest b/contrib/gentoo-bees/sys-fs/bees/Manifest deleted file mode 100644 index dda78a0..0000000 --- a/contrib/gentoo-bees/sys-fs/bees/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -EBUILD bees-9999.ebuild 2001 BLAKE2B 7fa1c9d043a4334579dfad3560d1593717e548c0d31695cf8ccf8ffe45f2347584c7da43b47cad873745f3c843207433c6b892a0469c5618f107c68f78fd5fe2 SHA512 d49266e007895c049e1c9f7e28ec2f649b386a6441eccba02ee411f14ad395925eecdaa8a747962ccc526f9e1d3aba9fd68f4452a1d276d4e5b7d48c80102cd8 -MISC metadata.xml 479 BLAKE2B ef5e110ba8d88f0188dbc0d12bec2ad45c51abf707656f6fe4e0fa498d933fe9c32c5dc4c9b446402ec686084459f9f075e52f33402810962c1ac6b149fb70c8 SHA512 3fcc136ed4c55323cac4f8cf542210eb77f73e2a80f95fcce2d688bc645f6e5126404776536dedc938b18287b54abbc264610cc2f587a42a3a8e6d7bf8415aaa diff --git a/contrib/gentoo-bees/sys-fs/bees/bees-9999.ebuild b/contrib/gentoo-bees/sys-fs/bees/bees-9999.ebuild deleted file mode 100644 index 72fef10..0000000 --- a/contrib/gentoo-bees/sys-fs/bees/bees-9999.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2018 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit linux-info - -DESCRIPTION="Best-Effort Extent-Same, a btrfs dedup agent" -HOMEPAGE="https://github.com/Zygo/bees" - -if [[ ${PV} == "9999" ]] ; then - EGIT_REPO_URI="https://github.com/Zygo/bees.git" - inherit git-r3 -else - SRC_URI="https://github.com/Zygo/bees/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64" -fi - -LICENSE="GPL-3" -SLOT="0" -IUSE="tools" - -DEPEND=" - >=sys-apps/util-linux-2.30.2 - >=sys-fs/btrfs-progs-4.1 -" -RDEPEND="${DEPEND}" - -CONFIG_CHECK="~BTRFS_FS" -ERROR_BTRFS_FS="CONFIG_BTRFS_FS: bees does currently only work with btrfs" - -pkg_pretend() { - if [[ ${MERGE_TYPE} != buildonly ]]; then - if kernel_is -lt 4 4 3; then - ewarn "Kernel versions below 4.4.3 lack critical features needed for bees to" - ewarn "properly operate, so it won't work. It's recommended to run at least" - ewarn "kernel version 4.11 for best performance and reliability." - ewarn - elif kernel_is -lt 4 11; then - ewarn "With kernel versions below 4.11, bees may severely degrade system performance" - ewarn "and responsiveness. Especially, the kernel may deadlock while bees is" - ewarn "running, it's recommended to run at least kernel 4.11." - ewarn - elif kernel_is -lt 4 14 29; then - ewarn "With kernel versions below 4.14.29, bees may generate a lot of bogus WARN_ON()" - ewarn "messages in the kernel log. These messages can be ignored and this is fixed" - ewarn "with more recent kernels:" - ewarn "# WARNING: CPU: 3 PID: 18172 at fs/btrfs/backref.c:1391 find_parent_nodes+0xc41/0x14e0" - ewarn - fi - elog "Bees recommends to run the latest current kernel for performance and" - elog "reliability reasons, see README.md." - fi -} - -src_configure() { - cat >localconf <<-EOF || die - LIBEXEC_PREFIX=/usr/libexec - PREFIX=/usr - LIBDIR=$(get_libdir) - DEFAULT_MAKE_TARGET=all - EOF - if use tools; then - echo OPTIONAL_INSTALL_TARGETS=install_tools >>localconf || die - fi -} diff --git a/contrib/gentoo-bees/sys-fs/bees/metadata.xml b/contrib/gentoo-bees/sys-fs/bees/metadata.xml deleted file mode 100644 index 7283b45..0000000 --- a/contrib/gentoo-bees/sys-fs/bees/metadata.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - - hurikhan77+bgo@gmail.com - Kai Krakow - - - Build extra tools useful for debugging (fiemap, feiwalk, beestop) - - - https://github.com/Zygo/bees/issues - Zygo/bees - -