[proaudio] rivendell-1.5.1.ebuild |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Rivendell just got bumped to 1.5.1. Rivendell's only real problem on gentoo
has been its dependency on sox-12. The functions sox performed are now built
in, so this version is a big improvement for us. The init script still fails
out of the box, so there is a patch to fix that and reduce unnecessary
permissions. The sandbox patch just keeps the build process in the sandbox.
Tested on i686.
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="1"
inherit base eutils autotools
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 jack pam"
RESTRICT="nomirror"
DEPEND="alsa? ( media-libs/alsa-lib )
alsa? ( media-libs/libsamplerate )
jack? ( media-sound/jack-audio-connection-kit )
jack? ( media-libs/libsamplerate )
media-libs/flac
media-libs/id3lib
media-libs/libogg
media-libs/libvorbis
virtual/mysql
x11-libs/qt:3"
RDEPEND="${DEPEND}
pam? ( sys-libs/pam )
app-cdr/cdrkit
media-sound/cdparanoia
media-sound/lame
media-sound/mpg321
media-sound/vorbis-tools
net-ftp/lftp
net-misc/wget"
pkg_setup() {
enewgroup ${PN}
enewuser ${PN} -1 -1 /var/lib/${PN} "${PN},audio"
}
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${PN}-init.patch"
epatch "${FILESDIR}/${PN}-sandbox.patch"
}
src_compile() {
local myconf=""
use alsa || myconf="${myconf} --disable-alsa"
use jack || myconf="${myconf} --disable-jack"
use pam || myconf="${myconf} --disable-pam"
econf ${myconf}
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "install failed"
insinto /etc
doins conf/rd.conf-sample || die "install /etc/rd.conf failed"
keepdir /var/snd || die "keepdir failed"
fowners ${PN}:${PN} /var/snd || die "fowners failed"
dodoc AUTHORS ChangeLog INSTALL NEWS README SupportedCards docs/*.txt || die "install doc failed"
prepalldocs || die "prepalldocs failed"
}
pkg_postinst() {
elog "If you would like ASI or GPIO hardware support,"
elog "install their drivers and re-emerge this package."
einfo
einfo "If this is a fresh install you will need to modify"
einfo "the /etc/rd.conf file and use rdadmin to initialize"
einfo "the Rivendell database before starting"
einfo "/etc/init.d/rivendell."
einfo "/var/snd is owned by ${PN}:${PN}."
einfo "Set AudioOwner and AudioGroup into /etc/rd.conf"
einfo "accordingly."
einfo
ewarn "If this is an upgrade, run rdadmin to ensure your"
ewarn "database schema is up to date"
}
--- rivendell-gentoo 2007-10-05 09:31:21.000000000 -0500
+++ rivendell-gentoo.new 2009-08-16 12:52:05.000000000 -0500
@@ -26,17 +26,16 @@
##
depend() {
- need jackd
use mysql
}
start() {
ebegin "Starting Rivendell"
ipcrm -M 0x5005 2> /dev/null
- start-stop-daemon --start --quiet --exec /usr/bin/caed
- start-stop-daemon --start --quiet --exec /usr/bin/ripcd
+ start-stop-daemon --start --quiet --chuid rivendell --exec /usr/bin/caed
+ start-stop-daemon --start --quiet --chuid rivendell --exec /usr/bin/ripcd
sleep 1
- start-stop-daemon --start --quiet --exec /usr/bin/rdcatchd
+ start-stop-daemon --start --quiet --chuid rivendell --exec /usr/bin/rdcatchd
eend $?
}
--- install-init.sh-orig 2007-10-03 13:24:06.000000000 +0200
+++ install-init.sh 2009-07-23 00:50:51.000000000 +0200
@@ -23,13 +23,12 @@
#
if test ! -f ./building-debian ; then
- mkdir -p /etc/init.d
- cp rivendell /etc/init.d/rivendell
- mkdir -p /etc/sysconfig
- cp rivendell.sys /etc/sysconfig/rivendell
- mkdir -p /var/run/rivendell
- chmod 777 /var/run/rivendell
- ldconfig
+ mkdir -p ${DESTDIR}/etc/init.d
+ cp rivendell ${DESTDIR}/etc/init.d/rivendell
+ mkdir -p ${DESTDIR}/etc/sysconfig
+ cp rivendell.sys ${DESTDIR}/etc/sysconfig/rivendell
+ mkdir -p ${DESTDIR}/var/run/rivendell
+ chmod 777 ${DESTDIR}/var/run/rivendell
fi
chmod 4755 $1/bin/caed