media-sound/owntone - 29.2 (gentoo)

Search

Install

Install this version:

emerge -a =media-sound/owntone-29.2

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

autounmask =media-sound/owntone-29.2

Or alternatively:

emerge --autounmask-write -a =media-sound/owntone-29.2

Package Information

Description:
DAAP (iTunes) and MPD media server
Homepage:
https://owntone.github.io/owntone-server/
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
29.2 8 ~amd64 0
View Raw Ebuild
# Copyright 2024-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="DAAP (iTunes) and MPD media server"
HOMEPAGE="https://owntone.github.io/owntone-server/"
SRC_URI="https://github.com/owntone/owntone-server/releases/download/${PV}/${P}.tar.xz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="+alsa +chromecast"

RDEPEND="
	acct-group/audio
	acct-user/owntone
	app-pda/libplist:=
	dev-db/sqlite:3
	dev-libs/confuse:=
	dev-libs/json-c:=
	dev-libs/libevent:=
	dev-libs/libgcrypt:=
	dev-libs/libgpg-error
	dev-libs/libsodium:=
	dev-libs/libunistring:=
	dev-libs/libxml2:=
	dev-libs/protobuf-c:=
	media-video/ffmpeg:=
	net-dns/avahi
	net-libs/libwebsockets:=
	net-misc/curl
	sys-apps/util-linux
	virtual/zlib:=
	alsa? ( media-libs/alsa-lib )
	chromecast? (
		net-libs/gnutls:=
		media-video/ffmpeg:=[opus]
	)
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"

src_prepare() {
	default

	# fix log path, and enable songs/cache databases
	sed -i \
		-e "/logfile = /s:= .*$:= ${EPREFIX}/var/log/owntone/owntone.log:" \
		-e "/\(db_path\|db_backup_path\|cache_dir\) =/s:/cache/:/:" \
		-e "/\(db_path\|db_backup_path\|cache_dir\) =/s:^#::" \
		owntone.conf.in || die
}

src_configure() {
	local myeconfargs=(
		--without-pulseaudio
		--with-libwebsockets
		--with-avahi
		--with-user=owntone
		--with-group=audio
		$(use_with alsa)
		$(use_enable chromecast)
	)
	econf "${myeconfargs[@]}"
}

src_install() {
	default

	rm -Rf "${ED}"/var/lib  # all empty dirs
	find "${ED}" -name "*.la" -delete

	keepdir /var/lib/owntone
	keepdir /var/log/owntone
	fowners owntone /var/log/owntone

	newinitd "${FILESDIR}"/${PN}.initd-r2 ${PN}
	newconfd "${FILESDIR}"/${PN}.confd ${PN}
}

USE Flags

Manage flags for this package: euse -i <flag> -p media-sound/owntone | euse -E <flag> -p media-sound/owntone | euse -D <flag> -p media-sound/owntone

Global/Standard Flags

alsa
Default: Enabled (+)
chromecast
Default: Enabled (+)

Dependencies

DEPEND

	acct-group/audio
	acct-user/owntone
	app-pda/libplist:=
	dev-db/sqlite:3
	dev-libs/confuse:=
	dev-libs/json-c:=
	dev-libs/libevent:=
	dev-libs/libgcrypt:=
	dev-libs/libgpg-error
	dev-libs/libsodium:=
	dev-libs/libunistring:=
	dev-libs/libxml2:=
	dev-libs/protobuf-c:=
	media-video/ffmpeg:=
	net-dns/avahi
	net-libs/libwebsockets:=
	net-misc/curl
	sys-apps/util-linux
	virtual/zlib:=
	alsa? ( media-libs/alsa-lib )
	chromecast? (
		net-libs/gnutls:=
		media-video/ffmpeg:=[opus]
	)

RDEPEND

	acct-group/audio
	acct-user/owntone
	app-pda/libplist:=
	dev-db/sqlite:3
	dev-libs/confuse:=
	dev-libs/json-c:=
	dev-libs/libevent:=
	dev-libs/libgcrypt:=
	dev-libs/libgpg-error
	dev-libs/libsodium:=
	dev-libs/libunistring:=
	dev-libs/libxml2:=
	dev-libs/protobuf-c:=
	media-video/ffmpeg:=
	net-dns/avahi
	net-libs/libwebsockets:=
	net-misc/curl
	sys-apps/util-linux
	virtual/zlib:=
	alsa? ( media-libs/alsa-lib )
	chromecast? (
		net-libs/gnutls:=
		media-video/ffmpeg:=[opus]
	)

BDEPEND

virtual/pkgconfig

Manifest for 29.2

Type File Size Source URLs
DIST owntone-29.2.tar.xz 1215836 bytes https://github.com/owntone/owntone-server/releases/download/29.2/owntone-29.2.tar.xz