[proaudio] [1930] New initscript

[ Thread Index | Date Index | More lists.tuxfamily.org/proaudio Archives ]


Revision: 1930
Author:   emery
Date:     2011-04-20 04:43:56 +0200 (Wed, 20 Apr 2011)
Log Message:
-----------
New initscript

Modified Paths:
--------------
    trunk/overlays/proaudio/media-radio/rivendell/ChangeLog
    trunk/overlays/proaudio/media-radio/rivendell/Manifest

Added Paths:
-----------
    trunk/overlays/proaudio/media-radio/rivendell/files/rivendell-initscript-r1.patch
    trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r1.ebuild

Modified: trunk/overlays/proaudio/media-radio/rivendell/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/ChangeLog	2011-04-18 20:36:57 UTC (rev 1929)
+++ trunk/overlays/proaudio/media-radio/rivendell/ChangeLog	2011-04-20 02:43:56 UTC (rev 1930)
@@ -2,6 +2,12 @@
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
 # $Header: $
 
+*rivendell-2.0.1-r1 (20 Apr 2011)
+
+  20 Apr 2011; Emery Hemingway <emery@xxxxxxxxx>
+  +files/rivendell-initscript-r1.patch, +rivendell-2.0.1-r1.ebuild:
+  New initscript, submitted to upstream.
+
   09 Apr 2011; Emery Hemingway <emery@xxxxxxxxx> rivendell-2.0.1.ebuild:
   Changed qt dependency to qt-meta, cleaned out some cruft.
 

Modified: trunk/overlays/proaudio/media-radio/rivendell/Manifest
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/Manifest	2011-04-18 20:36:57 UTC (rev 1929)
+++ trunk/overlays/proaudio/media-radio/rivendell/Manifest	2011-04-20 02:43:56 UTC (rev 1930)
@@ -1,6 +1,8 @@
 AUX initscript.patch 773 RMD160 dacb60a287448502de5b4854b8e60eadbbe36061 SHA1 e84b3b5f490176ed4c0af10318eae9db5ae5f4b0 SHA256 6a8b57a99eaf450aafa5a4c4943c6907bcde5144478d938f83b1c7ca83858179
+AUX rivendell-initscript-r1.patch 2172 RMD160 511c51c0a65c4286d8beae33d6e4bafa017c0ec1 SHA1 728ce444ffb0273c60b5c0a6c614c62d39754292 SHA256 2404c3111f104432ed85ee004af85e98ad89abc16f40594256e91ed0ce29f3f2
 AUX sandbox.patch 1730 RMD160 f53714899cfa2521713d7825e19fd8a3ef9aa04f SHA1 42c7b989f8435fa87038751fa1883c0357613b6e SHA256 9e2d0cd5184c8fac65fd24a1ffe2588d321fa1879d5f12516cf1237590f95032
 DIST rivendell-2.0.1.tar.gz 2510586 RMD160 e787b9f46ef26a45d8b2df65de92d8d4d7662a92 SHA1 82214fc029babd7ada9774e13937602c5b03edd2 SHA256 b3a91159d4f25b2c6ae0bdd45b526ac4f3987c2fbb8f442724742df00496085f
+EBUILD rivendell-2.0.1-r1.ebuild 2657 RMD160 820179510beaf9052b920aae343562a6cd6ef667 SHA1 e9eee7a81cd02d47924ac025a9ed1798a762cdbc SHA256 02cc431443ae92449209a0330ba7d18f152c5be226eafaf83a5986b5e0f70ecc
 EBUILD rivendell-2.0.1.ebuild 2648 RMD160 2c1d2cdbbf6b5c152cf31e18cc1486149dcbab08 SHA1 68d1c05ca4fc75c5b8547449bb26c454c01ae561 SHA256 dbdaf835aec4d4263a78f8b8093f02b63287a1f051e7b6f5a4ba9efa3923f1ff
-MISC ChangeLog 2845 RMD160 0a5f2d0ab9034a1234f4a3857902d320985e29d7 SHA1 bbb617d628198214413272d72f7276f16a501809 SHA256 6976311c9560e206e1f46433a68c2a9950967539e26c0be51ba1518cffd90745
+MISC ChangeLog 3039 RMD160 a05a491f35392e08e2faa02cae0656579bffab6c SHA1 bb00ee33e7bcc0128b14bd4702172a440fa86b45 SHA256 9fb167c226f6ac6c937dabeeea81e192f34de2c37cf8a8ed6460e02eeac6bd6f
 MISC metadata.xml 1114 RMD160 1258b026ab51d639fd876a72c03974550ccf20bc SHA1 01472a094a074df3c38e84eb17bbd3a3d04463bf SHA256 8cc0b302a7ecbcbff60b4dc939be681d1a00eccb4c1475b359e2bd0f1bdbd8b3

Added: trunk/overlays/proaudio/media-radio/rivendell/files/rivendell-initscript-r1.patch
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/files/rivendell-initscript-r1.patch	                        (rev 0)
+++ trunk/overlays/proaudio/media-radio/rivendell/files/rivendell-initscript-r1.patch	2011-04-20 02:43:56 UTC (rev 1930)
@@ -0,0 +1,66 @@
+## Submitted to upstream - http://mantis.rivendellaudio.org/view.php?id=10
+
+--- /usr/src/rivendell-2.0.1/rivendell-gentoo	2007-10-05 09:31:21.000000000 -0500
++++ /etc/init.d/rivendell	2011-04-19 19:48:44.734040835 -0500
+@@ -10,6 +10,8 @@
+ ##    Adapted from the Gentoo init script for Rivendell 
+ ##    by Andres Toomsalu <andres@xxxxxxxxx>
+ ##
++##    Modified 2011 by Emery Hemingway <emery@xxxxxxxxx>
++##
+ ##    This program is free software; you can redistribute it and/or modify
+ ##    it under the terms of version 2 of the GNU General Public License as
+ ##    published by the Free Software Foundation;
+@@ -25,26 +27,43 @@
+ ##    Boston, MA  02111-1307  USA
+ ##
+ 
++description="Rivendell system daemons"
++
++user="rivendell"
++group="rivendell"
++pid_dir="/var/run/rivendell"
++
++daemons="caed ripcd rdcatchd"
++
+ depend() {
+-        need jackd
+-        use mysql
++        use alsasound apache2 jackd mysql
+ }
+ 
+ start() {
+         ebegin "Starting Rivendell"
++
++        checkpath --directory --mode 0775 --owner $user:$group /var/snd
++        checkpath --file --mode 0664 --owner $user:$group /var/snd/*
++        
+         ipcrm -M 0x5005 2> /dev/null
+-        start-stop-daemon --start --quiet --exec /usr/bin/caed
+-        start-stop-daemon --start --quiet --exec /usr/bin/ripcd
+-        sleep 1
+-        start-stop-daemon --start --quiet --exec /usr/bin/rdcatchd
++
++        for daemon in $daemons
++            do 
++                veinfo "Starting $daemon"
++                start-stop-daemon --start --pidfile $pid_dir/$daemon.pid \
++			--user $user:$group --umask 0113 \
++                        	--exec /usr/bin/$daemon
++            done
+         eend $?
+ }
+ 
+ stop() {
+         ebegin "Stopping Rivendell"
+         killall rdimport > /dev/null 2> /dev/null
+-        start-stop-daemon --stop --quiet --pidfile /var/run/rivendell/caed.pid
+-        start-stop-daemon --stop --quiet --pidfile /var/run/rivendell/ripcd.pid
+-        start-stop-daemon --stop --quiet --pidfile /var/run/rivendell/rdcatchd.pid
++
++        for daemon in $daemons
++            do 
++                start-stop-daemon --stop --pidfile $pid_dir/$daemon.pid
++            done
+         eend $?
+ }

Added: trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r1.ebuild
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r1.ebuild	                        (rev 0)
+++ trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r1.ebuild	2011-04-20 02:43:56 UTC (rev 1930)
@@ -0,0 +1,96 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit base eutils
+
+DESCRIPTION="An automated system for acquisition, management, scheduling and playout of audio content."
+HOMEPAGE="http://rivendellaudio.org/";
+SRC_URI="http://rivendellaudio.org/ftpdocs/${PN}/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="alsa flac gpio hpi jack lame mad pam twolame"
+
+DEPEND="alsa? ( media-libs/alsa-lib )
+	flac? ( media-libs/flac )
+	jack? ( media-sound/jack-audio-connection-kit )
+	mad? ( media-libs/libmad )
+	media-libs/id3lib
+	media-libs/libogg
+	media-libs/libvorbis
+	media-libs/libsamplerate
+	media-libs/libsndfile
+	media-libs/libsoundtouch
+	virtual/mysql
+	x11-libs/qt-meta:3[mysql]"
+RDEPEND="${DEPEND}
+	lame? ( media-sound/lame )
+	twolame? ( media-sound/twolame )
+	pam? ( sys-libs/pam )
+	app-cdr/cdrkit
+	media-sound/cdparanoia
+	net-misc/curl"
+
+pkg_setup() {
+	enewgroup ${PN} 150
+	enewuser ${PN} 150 -1 /var/lib/${PN} "${PN},audio"
+}
+
+src_prepare() {
+	epatch "${FILESDIR}/${PN}-initscript-r1.patch"
+	epatch "${FILESDIR}/sandbox.patch"
+}
+
+src_configure() {
+	local myconf="--libexecdir=/usr/libexec/${PN}"
+
+	use alsa || myconf="${myconf} --disable-alsa"
+	use gpio || myconf="${myconf} --disable-gpio"
+	use hpi || myconf="${myconf} --disable-hpi"
+	use jack || myconf="${myconf} --disable-jack"
+	use mad || myconf="${myconf} --disable-mad"
+	use twolame || myconf="${myconf} --disable-twolame"
+	use lame || myconf="${myconf} --disable-lame"
+	use pam || myconf="${myconf} --disable-pam"
+
+	econf ${myconf}
+}
+
+src_compile () {
+	emake || die "make failed"
+}
+
+src_install() {
+	emake DESTDIR="${D}" install || die "install failed"
+
+	insinto /etc
+	doins conf/rd.conf-sample
+
+	keepdir /var/snd
+	fowners ${PN}:${PN} /var/snd
+
+	newicon icons/rivendell-48x48.xpm ${PN}.xpm
+	domenu xdg/${PN}-*.desktop
+
+	dodoc AUTHORS ChangeLog NEWS README UPGRADING docs/*.txt conf/*.conf
+}
+
+pkg_postinst() {
+
+	einfo
+	einfo "See http://rivendell.tryphon.org/wiki/index.php/Install_under_Gentoo";
+	einfo "for Gentoo specific instructions."
+	einfo
+	einfo "This version of Rivendell makes use of a web services protocol to"
+	einfo "accomplish many functions (audio import, export, ripping, etc)."
+	einfo "These services require that a CGI-compliant web server be installed"
+	einfo "and active on the system. Any server that complies with CGI-1.1"
+	einfo "should work, although as of this writing only Apache 2.2 has been"
+	einfo "well tested."
+	einfo "A configuration for apache is in /usr/share/doc/${P}/rd-bin.conf.bz2"
+	einfo
+	ewarn "If this is an update, read /usr/share/doc/${P}/UPGRADING.bz2"
+}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/