diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-05-17 14:32:10 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-05-17 14:32:10 +0100 |
commit | 51c50bd4c895ebf56d81fecae8e45ec3b5fc3efa (patch) | |
tree | 753b6b08624c34d1ed8414bbe22c45409f7741b9 /media-sound/subsonic-bin/subsonic-bin-5.2.1-r2.ebuild | |
parent | be9d77d3ac6af8f4ead98d89706f356b65578c93 (diff) | |
parent | deba8115d2c2af26df42966b91ef04ff4dd79cde (diff) |
Merge branch 'edge' into next
Diffstat (limited to 'media-sound/subsonic-bin/subsonic-bin-5.2.1-r2.ebuild')
-rw-r--r-- | media-sound/subsonic-bin/subsonic-bin-5.2.1-r2.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/media-sound/subsonic-bin/subsonic-bin-5.2.1-r2.ebuild b/media-sound/subsonic-bin/subsonic-bin-5.2.1-r2.ebuild new file mode 100644 index 000000000000..1fe06db06e55 --- /dev/null +++ b/media-sound/subsonic-bin/subsonic-bin-5.2.1-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils user + +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" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="ffmpeg lame selinux" + +DEPEND="" +RDEPEND="virtual/jre + lame? ( media-sound/lame ) + ffmpeg? ( media-video/ffmpeg ) + selinux? ( sec-policy/selinux-subsonic )" + +S="${WORKDIR}/" +SUBSONIC_HOME="/var/lib/${MY_PN}" +USER_GROUP="subsonic" + +pkg_setup() { + enewgroup "${USER_GROUP}" + enewuser "${USER_GROUP}" -1 -1 ${SUBSONIC_HOME} "${USER_GROUP}" +} + +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 + + keepdir ${SUBSONIC_HOME} + fowners ${USER_GROUP}:${USER_GROUP} ${SUBSONIC_HOME} + + newinitd "${FILESDIR}/subsonic.initd" subsonic + newconfd "${FILESDIR}/subsonic.confd" subsonic + + make_wrapper ${MY_PN} "${dir}/subsonic.sh" + + if use ffmpeg; then + dodir ${SUBSONIC_HOME}/transcode + dosym /usr/bin/ffmpeg ${SUBSONIC_HOME}/transcode/ffmpeg + fi + + if use lame; then + dodir ${SUBSONIC_HOME}/transcode + dosym /usr/bin/lame ${SUBSONIC_HOME}/transcode/lame + fi +} |