mirror of
				https://github.com/Zygo/bees.git
				synced 2025-10-31 10:10:34 +01:00 
			
		
		
		
	Update references to Gentoo
Gentoo has officially merged the ebuild into portage as of: https://github.com/gentoo/gentoo/pull/9925 Let's update the readme and get rid of the `contrib/gentoo-bees` directory, so we have no potentially outdated information in the future. Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
		
							
								
								
									
										30
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										30
									
								
								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. | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
| @@ -1 +0,0 @@ | ||||
| bees | ||||
| @@ -1,2 +0,0 @@ | ||||
| EBUILD bees-9999.ebuild 2001 BLAKE2B 7fa1c9d043a4334579dfad3560d1593717e548c0d31695cf8ccf8ffe45f2347584c7da43b47cad873745f3c843207433c6b892a0469c5618f107c68f78fd5fe2 SHA512 d49266e007895c049e1c9f7e28ec2f649b386a6441eccba02ee411f14ad395925eecdaa8a747962ccc526f9e1d3aba9fd68f4452a1d276d4e5b7d48c80102cd8 | ||||
| MISC metadata.xml 479 BLAKE2B ef5e110ba8d88f0188dbc0d12bec2ad45c51abf707656f6fe4e0fa498d933fe9c32c5dc4c9b446402ec686084459f9f075e52f33402810962c1ac6b149fb70c8 SHA512 3fcc136ed4c55323cac4f8cf542210eb77f73e2a80f95fcce2d688bc645f6e5126404776536dedc938b18287b54abbc264610cc2f587a42a3a8e6d7bf8415aaa | ||||
| @@ -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 | ||||
| } | ||||
| @@ -1,15 +0,0 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||||
| <pkgmetadata> | ||||
| <maintainer type="person"> | ||||
| 	<email>hurikhan77+bgo@gmail.com</email> | ||||
| 	<name>Kai Krakow</name> | ||||
| </maintainer> | ||||
| <use> | ||||
| 	<flag name="tools">Build extra tools useful for debugging (fiemap, feiwalk, beestop)</flag> | ||||
| </use> | ||||
| <upstream> | ||||
| 	<bugs-to>https://github.com/Zygo/bees/issues</bugs-to> | ||||
| 	<remote-id type="github">Zygo/bees</remote-id> | ||||
| </upstream> | ||||
| </pkgmetadata> | ||||
		Reference in New Issue
	
	Block a user