diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /media-sound/gnump3d |
reinit the tree, so we can have metadata
Diffstat (limited to 'media-sound/gnump3d')
-rw-r--r-- | media-sound/gnump3d/Manifest | 8 | ||||
-rw-r--r-- | media-sound/gnump3d/files/gnump3d.conf.d | 5 | ||||
-rw-r--r-- | media-sound/gnump3d/files/gnump3d.init.d | 36 | ||||
-rw-r--r-- | media-sound/gnump3d/gnump3d-3.0-r1.ebuild | 72 | ||||
-rw-r--r-- | media-sound/gnump3d/gnump3d-3.0-r2.ebuild | 73 | ||||
-rw-r--r-- | media-sound/gnump3d/metadata.xml | 8 |
6 files changed, 202 insertions, 0 deletions
diff --git a/media-sound/gnump3d/Manifest b/media-sound/gnump3d/Manifest new file mode 100644 index 000000000000..f2774dee6517 --- /dev/null +++ b/media-sound/gnump3d/Manifest @@ -0,0 +1,8 @@ +AUX gnump3d.conf.d 159 SHA256 f78bbe10fd4b7e1fdb860a3fa99490cdb98e827ff35c1e8077da77f5bf0340f2 SHA512 33c87ac067be3ae4f3dac690e38eecf8400ac393e47cea8f6b5b1238cc41b08dfe684ee33a7bf3bcb24cd6f9a8ff3861caed12c0d9d7f0df61a757cee5910e33 WHIRLPOOL ff125b485bce96f002ba3e1e7945ccc809760abd30b5b372f4722dfef6b1b76caba80bd38802ef876eae5c4d3372ddc0335dd0f6b7ac7d043c29936d6fc802ad +AUX gnump3d.init.d 724 SHA256 02d34af5044012f716326d5dd586c0022b433403a352aedfa5d79215b5d819e1 SHA512 86f43db016e4dd1d2cb75b68ed1a11ea7b7f9ab1d78d18d0e6cf47c3380c466251f733d7aa73ef0354c3f63b78f18b966f583ea0aa328773442270c2aa0867d0 WHIRLPOOL 11c6c205ae74f68b0e97084ba78b632d010f52d7a6b151d6d2e1ae3d562858830d85e160fca0ec585b082ced78b2c6f67773864bd3a00f1fb8308a29b7a5166b +DIST gnump3d-3.0.tar.bz2 633215 SHA256 1ac5bd0e850b0e18ccd9d19219f5108fa84b50d8ae3825a361e8b907eab7f19c SHA512 23778604b557346e42f5cd2045cc394c7d6f7044479c74cd635dfdbbfd6835c8e3ad761d54c5cba239cc5e020b049ac11d64eb463272fc4134b7645226e2524b WHIRLPOOL ea5be9683cadb4e7b40e237b043e9c93174ae999a3d776ed96e6c039db320faa131f95aae7bcc518cd8fa5275528f9b12252c030d2847079dee2fc18c58c1827 +EBUILD gnump3d-3.0-r1.ebuild 1936 SHA256 cfbc7684476d9c1abcf1c53afd9a381a21975e0a3afc0240b821ccb73fb0ad66 SHA512 57c404546e12a11b5f4b6a378f6411d334088304122a464c9acb380a4f9022abc6cdb6764463f4511ef1008c156a2605a6d7fd3a5cd9586cd455ebfce8eab0c1 WHIRLPOOL 522e8ec8524f1f53b87e7cbe91d246c7974a3d452ef0d188588ca09c005aa61f0e0ec7e371cb2ef2a6da56a317933838a8ffce20d23eb82cdacd62c120fa77c6 +EBUILD gnump3d-3.0-r2.ebuild 2002 SHA256 5e8b02afc726fd68b334a52c6916df6eb034a7f4ed77abb4ca803d81fb96c2cf SHA512 ebf20edc87815a3e3a1209f23111b32ebab374ea36ec0d6fbd51e094dfecf8d72c70f71a1cc368ae72f602cc717c56341640a100fe32de1a80ee34606b2231ad WHIRLPOOL a59af20857395eb807bf77d47396db8cacda36a4b95003faa89d4dc09701a77736f0d8b98c79e9c6b56cb339832c159f69d5e3af50bb23d9c13b6481be93978b +MISC ChangeLog 2977 SHA256 114a1bb35b2fa97a5875c7abe7795e1b3db3c2d89d697c81a119c813005cd816 SHA512 f6dfbfba22eae0ad73e15d626d060c96b1e534f3820af1b0c4eed29d01ab39f6641d8f7223db9f649f1211f022a4aac58ade4b36a469084264ef011659763c95 WHIRLPOOL 4a6a35be671d07c4f7ae47acb0ce4b5c46a9290936f6ca80112e6849aac65bb4417dbb87fb267df8e6ae2dc5b0e02686b66be1885fefe1dd01348461af8abb60 +MISC ChangeLog-2015 10018 SHA256 bba37eb6793b1b2c85191339f0a31a6a98c73007f9f8c59f68dd88de0cd2f864 SHA512 9aadac965f38aa03c2524b9ee636ba3f658916f281ff79f0d6c4904254513c0001ec7b067b47a982711bb100e62fcabbb1614c8c48aa73808d84091562d4988d WHIRLPOOL c048f161b8fc7d05550066a3a22131b421953048631b900ba7c592c3f342c7844d1a773fa077e6ec9754123c4751c84d45eedce358614390e80e5b23e215e398 +MISC metadata.xml 249 SHA256 a591aa91a9c413e7f7e24fd25b924ce2dfef686da8b4ce38bebb088ebfdba9db SHA512 9a100fb26586365eda99724330a03a512f4d0be18d39c3a195ba02c2fc841edeee99d22512acf5a058a3b978d3a74f4d963a5aff9aa343b6cb4086cdfefe6343 WHIRLPOOL ae5b0c583f3a07ed1ccf651b5b9c8d6c8c637fba2d505fc4b028ea60239fc0a84e37a169b5114f879712ae74f7f41960a2cc6b59e67cacc7f964b105b5fb8723 diff --git a/media-sound/gnump3d/files/gnump3d.conf.d b/media-sound/gnump3d/files/gnump3d.conf.d new file mode 100644 index 000000000000..9fe7523c1200 --- /dev/null +++ b/media-sound/gnump3d/files/gnump3d.conf.d @@ -0,0 +1,5 @@ +# Set this to 0 to stop the init script from indexing your mp3s. +# It takes the longest on the first time, but after that, it only does +# updates. + +DO_INDEX=1 diff --git a/media-sound/gnump3d/files/gnump3d.init.d b/media-sound/gnump3d/files/gnump3d.init.d new file mode 100644 index 000000000000..730fc0cdb2db --- /dev/null +++ b/media-sound/gnump3d/files/gnump3d.init.d @@ -0,0 +1,36 @@ +#!/sbin/openrc-run +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +extra_commands="index" + +depend() { + need net + after netmount nfsmount +} + +start() { + ebegin "Starting gnump3d" + + if [ ${DO_INDEX} -eq 1 ]; then + ebegin "Updating index of music files (may take a while for the first time)" + /usr/bin/gnump3d-index + eend $? + fi + + start-stop-daemon --start --quiet --exec /usr/bin/gnump3d2 --make-pidfile \ + --pidfile /var/run/gnump3d.pid --background -- --quiet + eend $? +} + +stop() { + ebegin "Stopping gnump3d" + start-stop-daemon --stop --quiet --pidfile /var/run/gnump3d.pid + eend $? +} + +index() { + ebegin "Indexing music files" + /usr/bin/gnump3d-index + eend $? +} diff --git a/media-sound/gnump3d/gnump3d-3.0-r1.ebuild b/media-sound/gnump3d/gnump3d-3.0-r1.ebuild new file mode 100644 index 000000000000..f3791f1141e3 --- /dev/null +++ b/media-sound/gnump3d/gnump3d-3.0-r1.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit eutils multilib user + +DESCRIPTION="A streaming server for MP3, OGG vorbis and other streamable files" +HOMEPAGE="https://www.gnu.org/software/gnump3d/" +SRC_URI="https://savannah.gnu.org/download/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~ppc ppc64 sparc x86" +IUSE="sox" + +RDEPEND="dev-lang/perl + sox? ( media-sound/sox )" +DEPEND="dev-lang/perl + sys-apps/sed" + +RESTRICT="test" + +pkg_setup() { + enewuser gnump3d '' '' '' nogroup + LIBDIR=/usr/$(get_libdir) +} + +src_compile() { :; } + +src_install() { + PERLDIR="`perl bin/getlibdir`" + + insinto ${PERLDIR}/gnump3d + doins lib/gnump3d/*.pm + insinto ${PERLDIR}/gnump3d/plugins + doins lib/gnump3d/plugins/*.pm + insinto ${PERLDIR}/gnump3d/lang + doins lib/gnump3d/lang/*.pm + + dobin bin/gnump3d2 bin/gnump3d-top bin/gnump3d-index + dosym /usr/bin/gnump3d2 /usr/bin/gnump3d + doman man/*.1 + + insinto /usr/share/gnump3d + doins -r templates/* + + insinto /etc/gnump3d + doins etc/gnump3d.conf etc/mime.types etc/file.types + dosed "s,PLUGINDIR,${PERLDIR},g" /etc/gnump3d/gnump3d.conf + dosed 's,^user *= *\(.*\)$,user = gnump3d,g' /etc/gnump3d/gnump3d.conf + + dodoc AUTHORS ChangeLog DOWNSAMPLING PLUGINS README SUPPORT TODO + + newinitd "${FILESDIR}"/${PN}.init.d gnump3d + newconfd "${FILESDIR}"/${PN}.conf.d gnump3d + + keepdir /var/log/gnump3d + keepdir /var/cache/gnump3d/serving + + fowners gnump3d:nogroup /var/log/gnump3d /var/cache/gnump3d +} + +pkg_postinst() { + elog "Please edit your /etc/gnump3d/gnump3d.conf before running" + elog "/etc/init.d/gnump3d start" + elog "" + elog "At the very least, you will need to change the root directory" + elog "where music is found. By default, gnump3d will also listen" + elog "to any address on port 8888" + elog "" + elog "You can optionally use sox to downmix the quality of streamed" + elog "music in realtime for slow connections." +} diff --git a/media-sound/gnump3d/gnump3d-3.0-r2.ebuild b/media-sound/gnump3d/gnump3d-3.0-r2.ebuild new file mode 100644 index 000000000000..c0562eceec27 --- /dev/null +++ b/media-sound/gnump3d/gnump3d-3.0-r2.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PERL_EXPORT_PHASE_FUNCTIONS=no +inherit eutils multilib user perl-module + +DESCRIPTION="A streaming server for MP3, OGG vorbis and other streamable files" +HOMEPAGE="https://www.gnu.org/software/gnump3d/" +SRC_URI="https://savannah.gnu.org/download/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="sox" + +RDEPEND="sox? ( media-sound/sox )" +DEPEND="sys-apps/sed" + +RESTRICT="test" + +pkg_setup() { + enewuser gnump3d '' '' '' nogroup + LIBDIR=/usr/$(get_libdir) +} + +src_compile() { :; } + +src_install() { + perl_set_version + + insinto "${VENDOR_LIB}"/gnump3d + doins lib/gnump3d/*.pm + insinto "${VENDOR_LIB}"/gnump3d/plugins + doins lib/gnump3d/plugins/*.pm + insinto "${VENDOR_LIB}"/gnump3d/lang + doins lib/gnump3d/lang/*.pm + + dobin bin/gnump3d2 bin/gnump3d-top bin/gnump3d-index + dosym /usr/bin/gnump3d2 /usr/bin/gnump3d + doman man/*.1 + + insinto /usr/share/gnump3d + doins -r templates/* + + insinto /etc/gnump3d + doins etc/gnump3d.conf etc/mime.types etc/file.types + sed -e "s,PLUGINDIR,${VENDOR_LIB},g" -i "${ED}/etc/gnump3d/gnump3d.conf" || die + sed -e 's,^user *= *\(.*\)$,user = gnump3d,g' -i "${ED}/etc/gnump3d/gnump3d.conf" || die + + dodoc AUTHORS ChangeLog DOWNSAMPLING PLUGINS README SUPPORT TODO + + newinitd "${FILESDIR}"/${PN}.init.d gnump3d + newconfd "${FILESDIR}"/${PN}.conf.d gnump3d + + keepdir /var/log/gnump3d + keepdir /var/cache/gnump3d/serving + + fowners gnump3d:nogroup /var/log/gnump3d /var/cache/gnump3d +} + +pkg_postinst() { + elog "Please edit your /etc/gnump3d/gnump3d.conf before running" + elog "/etc/init.d/gnump3d start" + elog "" + elog "At the very least, you will need to change the root directory" + elog "where music is found. By default, gnump3d will also listen" + elog "to any address on port 8888" + elog "" + elog "You can optionally use sox to downmix the quality of streamed" + elog "music in realtime for slow connections." +} diff --git a/media-sound/gnump3d/metadata.xml b/media-sound/gnump3d/metadata.xml new file mode 100644 index 000000000000..c870d0eef0ab --- /dev/null +++ b/media-sound/gnump3d/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>sound@gentoo.org</email> + <name>Gentoo Sound project</name> +</maintainer> +</pkgmetadata> |