dev-db/odyssey - 1.3 (ubuilds)

Search

Install

Install this version:

emerge -a =dev-db/odyssey-1.3

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-db/odyssey-1.3

Or alternatively:

emerge --autounmask-write -a =dev-db/odyssey-1.3

Package Information

Description:
Scalable PostgreSQL connection pooler
Homepage:
https://github.com/yandex/odyssey
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
1.3 7 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

CMAKE_MAKEFILE_GENERATOR=emake

inherit cmake systemd

DESCRIPTION="Scalable PostgreSQL connection pooler"
HOMEPAGE="https://github.com/yandex/odyssey"
SRC_URI="https://github.com/yandex/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="BSD-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="debug"

RDEPEND="acct-user/odyssey
	dev-db/postgresql:=
	dev-libs/openssl:0=
	sys-libs/pam"
DEPEND="${RDEPEND}"

src_prepare() {
	default

	# Remove git reference, don't build test (no tests)
	sed -i  -e "/execute_process/s/git describe --always/echo ${PV}/" \
		-e "/add_subdirectory(test)/d" \
		-e "/add_subdirectory(stress)/d" \
		CMakeLists.txt || die "sed for CMakeLists.txt failed"

	# Don't build valgrind
	sed -i '/option(BUILD_VALGRIND/s/ON/OFF/' \
		third_party/machinarium/CMakeLists.txt \
		|| die "sed failed for machinarium/CMakeLists.txt"

	# Fix build
	sed -i 's/IOV_MAX/INT_MAX/' third_party/machinarium/sources/write.c \
		|| die "sed failed for write.c"

	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		-DCMAKE_BUILD_TYPE="$(usex debug Debug Release)"
	)
	cmake_src_configure
}

src_install() {
	einstalldocs
	dobin "${S}"_build/sources/odyssey

	insinto /etc/odyssey
	doins odyssey.conf
	keepdir /var/log/odyssey
	insinto /etc/logrotate.d
	newins "${FILESDIR}"/odyssey.logrotate odyssey

	newinitd "${FILESDIR}"/odyssey.initd odyssey
	newconfd "${FILESDIR}"/odyssey.confd odyssey
	systemd_dounit scripts/systemd/odyssey.service
	systemd_dounit scripts/systemd/odyssey@.service
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-db/odyssey | euse -E <flag> -p dev-db/odyssey | euse -D <flag> -p dev-db/odyssey

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

acct-user/odyssey
	dev-db/postgresql:=
	dev-libs/openssl:0=
	sys-libs/pam

RDEPEND

acct-user/odyssey
	dev-db/postgresql:=
	dev-libs/openssl:0=
	sys-libs/pam

Manifest for 1.3

Type File Size Source URLs
DIST odyssey-1.3.tar.gz 274011 bytes https://github.com/yandex/odyssey/archive/1.3.tar.gz