diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-07-22 22:07:41 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-07-22 22:08:45 +0200 |
commit | f551694c214d4c02155f8c51cc720bb17ba9e7d5 (patch) | |
tree | 11705b6f4047143f389b83d71e5303599c23d66b /media-sound/subsonic-bin/subsonic-bin-5.2.1-r3.ebuild | |
parent | acct-user/subsonic: add user (136) subsonic (diff) | |
download | gentoo-f551694c214d4c02155f8c51cc720bb17ba9e7d5.tar.gz gentoo-f551694c214d4c02155f8c51cc720bb17ba9e7d5.tar.bz2 gentoo-f551694c214d4c02155f8c51cc720bb17ba9e7d5.zip |
media-sound/subsonic-bin: migrate to GLEP 81
Bug: https://bugs.gentoo.org/781338
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'media-sound/subsonic-bin/subsonic-bin-5.2.1-r3.ebuild')
-rw-r--r-- | media-sound/subsonic-bin/subsonic-bin-5.2.1-r3.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/media-sound/subsonic-bin/subsonic-bin-5.2.1-r3.ebuild b/media-sound/subsonic-bin/subsonic-bin-5.2.1-r3.ebuild new file mode 100644 index 000000000000..4aaf33bdd807 --- /dev/null +++ b/media-sound/subsonic-bin/subsonic-bin-5.2.1-r3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit wrapper + +MY_PN="${PN//-bin}" + +DESCRIPTION="Subsonic is a complete, personal media streaming solution" +HOMEPAGE="http://www.subsonic.org/" +SRC_URI="mirror://sourceforge/${MY_PN}/${PV}/${MY_PN}-${PV}-standalone.tar.gz" +S="${WORKDIR}/" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ffmpeg lame selinux" + +RDEPEND=" + acct-group/subsonic + acct-user/subsonic + virtual/jre + lame? ( media-sound/lame ) + ffmpeg? ( media-video/ffmpeg ) + selinux? ( sec-policy/selinux-subsonic ) +" + +src_install() { + local dir="/usr/libexec/${MY_PN}" + + dodoc README.TXT "Getting Started.html" + + insinto ${dir} + doins subsonic-booter-jar-with-dependencies.jar subsonic.war + + exeinto ${dir} + doexe subsonic.sh + + newinitd "${FILESDIR}/subsonic.initd" subsonic + newconfd "${FILESDIR}/subsonic.confd" subsonic + + make_wrapper ${MY_PN} "${dir}/subsonic.sh" + + if use ffmpeg; then + keepdir /var/lib/subsonic/transcode + dosym ../../../../../usr/bin/ffmpeg /var/lib/subsonic/transcode/transcode/ffmpeg + fi + + if use lame; then + keepdir /var/lib/subsonic/transcode/transcode + dosym ../../../../../usr/bin/lame /var/lib/subsonic/transcode/transcode/lame + fi +} |