summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Scardovi <mscardovi@icloud.com>2022-12-31 00:00:43 +0100
committerJoonas Niilola <juippis@gentoo.org>2023-01-30 08:45:39 +0200
commite3323ba94da9af1cf07d7a9d24f7ab11091aaebb (patch)
tree4a49ceadd601d30a7fa76a15ca67cb4375d29edc /media-sound/subsonic-bin
parentsci-chemistry/gromacs: drop versions (diff)
downloadgentoo-e3323ba94da9af1cf07d7a9d24f7ab11091aaebb.tar.gz
gentoo-e3323ba94da9af1cf07d7a9d24f7ab11091aaebb.tar.bz2
gentoo-e3323ba94da9af1cf07d7a9d24f7ab11091aaebb.zip
media-sound/subsonic-bin: add 6.1.6
Closes: https://github.com/gentoo/gentoo/pull/15641 Bug: https://bugs.gentoo.org/867736 Closes: https://bugs.gentoo.org/604872 Signed-off-by: Marco Scardovi <scardracs-gentoo@proton.me> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'media-sound/subsonic-bin')
-rw-r--r--media-sound/subsonic-bin/Manifest1
-rw-r--r--media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/media-sound/subsonic-bin/Manifest b/media-sound/subsonic-bin/Manifest
index 073eb1fc5539..77a087499423 100644
--- a/media-sound/subsonic-bin/Manifest
+++ b/media-sound/subsonic-bin/Manifest
@@ -1 +1,2 @@
DIST subsonic-5.2.1-standalone.tar.gz 43671795 BLAKE2B 2cf2ff67aaac7dd2ce405d832bfbd1f7dd0a87f4e5698092048891778ebbcac35e70c535a1e2af012655bc49e555ffdcbcfaffea62ad16cd987458e0d30a0135 SHA512 1251b77cfbee80224d3e332945fecec981c79b27c129cb47f5880a82344db15d1f8d17b11dd272a4ad3d9794f4e3055d4a59826623d543b676de73fe1c83b936
+DIST subsonic-6.1.6-standalone.tar.gz 51987601 BLAKE2B 35f124e1c7ef920524f7b1c37389c681c8849facc8331b3db08ada9635e781ddb7c74f5ab808fa0e83e45559f1ac347e9ba52cce75161a802d1b41f9e261a49c SHA512 d339b5ba893efb23479f1dc919ad540d3ea23d9fd0288a982ab4290aadd103db57ec4c5b922b39f64e09adec3af32b9cf20d7cb4aad62c65e48448eca2e456de
diff --git a/media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild b/media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild
new file mode 100644
index 000000000000..0017b651832f
--- /dev/null
+++ b/media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit wrapper
+
+MY_PN="${PN//-bin}"
+MY_P="subsonic-${PV}-standalone"
+
+DESCRIPTION="Subsonic is a complete, personal media streaming solution"
+HOMEPAGE="http://www.subsonic.org/"
+SRC_URI="https://downloads.sourceforge.net/project/subsonic/subsonic/${PV}/${MY_P}.tar.gz"
+
+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 )
+"
+
+S="${WORKDIR}"
+
+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
+}