diff options
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/subsonic/Manifest | 1 | ||||
-rw-r--r-- | media-sound/subsonic/subsonic-5.2.1.ebuild | 63 |
2 files changed, 64 insertions, 0 deletions
diff --git a/media-sound/subsonic/Manifest b/media-sound/subsonic/Manifest index ff81fa2..fd925a2 100644 --- a/media-sound/subsonic/Manifest +++ b/media-sound/subsonic/Manifest @@ -7,3 +7,4 @@ AUX subsonic.initd 871 SHA256 3db5fe1b5349912bc6b5fb18311ccec894daa0dc409b912d49 EBUILD subsonic-4.8.ebuild 1584 SHA256 7dce6fb3941771639274ab4741e0d02c3d518df8e68b90983b91cf7783a88d6d SHA512 b3adb29cb9f2d997e7db7d474d386c2e3f40b766dfbb663a89e9d7083b18dad09b2848736cf9da101e412e4be41c1d6a261571a846a4992aca2d58ee9c8e0726 WHIRLPOOL 4ec26a176429bd8569faea193cad7fc0c08d5425f3693953dfbc6df61796757638181a4771ea765840ab3a9bfe38f3efaafad9491d26f3b131710ee4bfef0f26 EBUILD subsonic-4.9.ebuild 1585 SHA256 ecfaba54ac56b1ca5b2f83ea152e109c2ea885913029a66c936b77190d8fd707 SHA512 12c91580dc1327cf17595b6e4e1314ef1cd1d676d2d80f12d325ff4783acc0695b8a99f24f93a4bd622559cc206c79c4ece2f534a18e7f1fbf1ac4a17f5c668e WHIRLPOOL aa940e04bdc8f9a38e3e0698402cba57c8d49119c2857d5971fd18da05d8c1183f362846741efe73d0d56f068c30c11f3de2618d9dd28cfd8c2d5b101c970681 EBUILD subsonic-5.0.ebuild 1589 SHA256 ea2cae68a49a681b0704a86ff8e81ccb6eacb91287e8fb7631bf79128f22a337 SHA512 30d30ea82e1f1fd2c9e93ea4fbf8f3fb54cfca7aa2e6fc6bfcb80961432743294e19502fbe8979c70001d95bad33a1f3c82805f959334a5f6581e455be47936a WHIRLPOOL b5441db548c185970e920a433c8e4dad254c6f53fb16f33b804980972a51c0581434b3259f441bf6c57c90342d74aefc62b649fd78404bd388490384eb6c989d +EBUILD subsonic-5.2.1.ebuild 1610 SHA256 fe0e9a0bfd97f7ed75b656a4ff2bf025fb699d4e109e338ee6268b092e6ab54c SHA512 1a69b59c625dab95dee87a8a5ac6a50d1709433be7f41af4eb29bdd6e1fb31cef8b6d7550b2115c5ac9c7cb2ec03d37525b903efe46353a971366949780467b7 WHIRLPOOL ba6b07ab9431e5ec2a3735a3c0b27154602f70a42a88358a4fda5e2882d43c6516f9b4b646d6f931f01052774974b1a4f01397553cd6b1808c8fba00d9a05e18 diff --git a/media-sound/subsonic/subsonic-5.2.1.ebuild b/media-sound/subsonic/subsonic-5.2.1.ebuild new file mode 100644 index 0000000..725f523 --- /dev/null +++ b/media-sound/subsonic/subsonic-5.2.1.ebuild @@ -0,0 +1,63 @@ +EAPI=5 + +inherit eutils user subversion + +DESCRIPTION="A free, open source, web-based media server in Java." +HOMEPAGE="http://www.subsonic.org" +ESVN_REPO_URI="http://svn.code.sf.net/p/subsonic/code/tags/release-${PV}" +ESVN_PROJECT="${PN}" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="no-license" + +DEPEND="dev-java/maven-bin" +RDEPEND="virtual/jre + media-sound/lame + virtual/ffmpeg" + +INSTALL_BASE="/opt/${PN}" + +S="${WORKDIR}" +SUBSONIC_HOME="/var/${PN}" +SUBSONIC_USER="subsonic" + +pkg_preinst() { + ebegin "Creating ${UG} user" + enewuser "${SUBSONIC_USER}" -1 -1 "${SUBSONIC_HOME}" audio + fowners ${SUBSONIC_USER}:audio ${SUBSONIC_HOME} +} + +src_prepare() { + use no-license && epatch "${FILESDIR}"/no-license-5.patch + epatch "${FILESDIR}"/no-installers-5.patch +} + +src_compile() { + mkdir -p "${T}"/maven || die "Can't make tempdir" + cat /usr/share/$(readlink /usr/bin/mvn | sed 's:mvn:maven-bin:')/conf/settings.xml | \ + sed -e 's:/path/to/local/repo:'"${T}"/maven':g' \ + -e 's:<!-- localRepository::' >"${T}"/settings.xml + addpredict / # bad bad bad + mvn -s "${T}"/settings.xml -P full package || die "Maven failed" +} + +src_install() { + dodoc subsonic-main/README.TXT + dohtml subsonic-main/"Getting Started.html" + + insinto ${INSTALL_BASE} + doins subsonic-booter/target/subsonic-booter-jar-with-dependencies.jar + doins subsonic-main/target/subsonic.war + + exeinto ${INSTALL_BASE} + doexe subsonic-booter/src/main/script/subsonic.sh + + dodir ${SUBSONIC_HOME} + + newinitd "${FILESDIR}/subsonic.initd" subsonic + newconfd "${FILESDIR}/subsonic.confd" subsonic + + dosym ${INSTALL_BASE}/subsonic.sh /opt/bin/subsonic +} |