1 |
commit: e3323ba94da9af1cf07d7a9d24f7ab11091aaebb |
2 |
Author: Marco Scardovi <mscardovi <AT> icloud <DOT> com> |
3 |
AuthorDate: Fri Dec 30 23:00:43 2022 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 06:45:39 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3323ba9 |
7 |
|
8 |
media-sound/subsonic-bin: add 6.1.6 |
9 |
|
10 |
Closes: https://github.com/gentoo/gentoo/pull/15641 |
11 |
Bug: https://bugs.gentoo.org/867736 |
12 |
Closes: https://bugs.gentoo.org/604872 |
13 |
Signed-off-by: Marco Scardovi <scardracs-gentoo <AT> proton.me> |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
media-sound/subsonic-bin/Manifest | 1 + |
17 |
media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild | 56 ++++++++++++++++++++++ |
18 |
2 files changed, 57 insertions(+) |
19 |
|
20 |
diff --git a/media-sound/subsonic-bin/Manifest b/media-sound/subsonic-bin/Manifest |
21 |
index 073eb1fc5539..77a087499423 100644 |
22 |
--- a/media-sound/subsonic-bin/Manifest |
23 |
+++ b/media-sound/subsonic-bin/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST subsonic-5.2.1-standalone.tar.gz 43671795 BLAKE2B 2cf2ff67aaac7dd2ce405d832bfbd1f7dd0a87f4e5698092048891778ebbcac35e70c535a1e2af012655bc49e555ffdcbcfaffea62ad16cd987458e0d30a0135 SHA512 1251b77cfbee80224d3e332945fecec981c79b27c129cb47f5880a82344db15d1f8d17b11dd272a4ad3d9794f4e3055d4a59826623d543b676de73fe1c83b936 |
26 |
+DIST subsonic-6.1.6-standalone.tar.gz 51987601 BLAKE2B 35f124e1c7ef920524f7b1c37389c681c8849facc8331b3db08ada9635e781ddb7c74f5ab808fa0e83e45559f1ac347e9ba52cce75161a802d1b41f9e261a49c SHA512 d339b5ba893efb23479f1dc919ad540d3ea23d9fd0288a982ab4290aadd103db57ec4c5b922b39f64e09adec3af32b9cf20d7cb4aad62c65e48448eca2e456de |
27 |
|
28 |
diff --git a/media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild b/media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..0017b651832f |
31 |
--- /dev/null |
32 |
+++ b/media-sound/subsonic-bin/subsonic-bin-6.1.6.ebuild |
33 |
@@ -0,0 +1,56 @@ |
34 |
+# Copyright 1999-2023 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+inherit wrapper |
40 |
+ |
41 |
+MY_PN="${PN//-bin}" |
42 |
+MY_P="subsonic-${PV}-standalone" |
43 |
+ |
44 |
+DESCRIPTION="Subsonic is a complete, personal media streaming solution" |
45 |
+HOMEPAGE="http://www.subsonic.org/" |
46 |
+SRC_URI="https://downloads.sourceforge.net/project/subsonic/subsonic/${PV}/${MY_P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="GPL-3" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64 ~x86" |
51 |
+IUSE="ffmpeg lame selinux" |
52 |
+ |
53 |
+RDEPEND=" |
54 |
+ acct-group/subsonic |
55 |
+ acct-user/subsonic |
56 |
+ virtual/jre |
57 |
+ lame? ( media-sound/lame ) |
58 |
+ ffmpeg? ( media-video/ffmpeg ) |
59 |
+ selinux? ( sec-policy/selinux-subsonic ) |
60 |
+" |
61 |
+ |
62 |
+S="${WORKDIR}" |
63 |
+ |
64 |
+src_install() { |
65 |
+ local dir="/usr/libexec/${MY_PN}" |
66 |
+ |
67 |
+ dodoc README.TXT "Getting Started.html" |
68 |
+ |
69 |
+ insinto ${dir} |
70 |
+ doins subsonic-booter-jar-with-dependencies.jar subsonic.war |
71 |
+ |
72 |
+ exeinto ${dir} |
73 |
+ doexe subsonic.sh |
74 |
+ |
75 |
+ newinitd "${FILESDIR}/subsonic.initd" subsonic |
76 |
+ newconfd "${FILESDIR}/subsonic.confd" subsonic |
77 |
+ |
78 |
+ make_wrapper ${MY_PN} "${dir}/subsonic.sh" |
79 |
+ |
80 |
+ if use ffmpeg; then |
81 |
+ keepdir /var/lib/subsonic/transcode |
82 |
+ dosym ../../../../../usr/bin/ffmpeg /var/lib/subsonic/transcode/transcode/ffmpeg |
83 |
+ fi |
84 |
+ |
85 |
+ if use lame; then |
86 |
+ keepdir /var/lib/subsonic/transcode/transcode |
87 |
+ dosym ../../../../../usr/bin/lame /var/lib/subsonic/transcode/transcode/lame |
88 |
+ fi |
89 |
+} |