[proaudio] [1958] gentooified apache configuration |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/proaudio Archives
]
Revision: 1958
Author: emery
Date: 2011-05-03 01:23:13 +0200 (Tue, 03 May 2011)
Log Message:
-----------
gentooified apache configuration
(Portage version: 2.2.1.1/svn/Linux i686, RepoMan options: --force)
Modified Paths:
--------------
trunk/overlays/proaudio/media-radio/rivendell/ChangeLog
trunk/overlays/proaudio/media-radio/rivendell/Manifest
Added Paths:
-----------
trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r2.ebuild
Modified: trunk/overlays/proaudio/media-radio/rivendell/ChangeLog
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/ChangeLog 2011-05-02 07:02:03 UTC (rev 1957)
+++ trunk/overlays/proaudio/media-radio/rivendell/ChangeLog 2011-05-02 23:23:13 UTC (rev 1958)
@@ -2,6 +2,11 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*rivendell-2.0.1-r2 (02 May 2011)
+
+ 02 May 2011; Emery Hemingway <emery@xxxxxxxxx> +rivendell-2.0.1-r2.ebuild:
+ Apache configuration is now handled in the gentoo way.
+
*rivendell-2.0.1-r1 (20 Apr 2011)
20 Apr 2011; Emery Hemingway <emery@xxxxxxxxx>
Modified: trunk/overlays/proaudio/media-radio/rivendell/Manifest
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/Manifest 2011-05-02 07:02:03 UTC (rev 1957)
+++ trunk/overlays/proaudio/media-radio/rivendell/Manifest 2011-05-02 23:23:13 UTC (rev 1958)
@@ -1,8 +1 @@
-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 3039 RMD160 a05a491f35392e08e2faa02cae0656579bffab6c SHA1 bb00ee33e7bcc0128b14bd4702172a440fa86b45 SHA256 9fb167c226f6ac6c937dabeeea81e192f34de2c37cf8a8ed6460e02eeac6bd6f
-MISC metadata.xml 1114 RMD160 1258b026ab51d639fd876a72c03974550ccf20bc SHA1 01472a094a074df3c38e84eb17bbd3a3d04463bf SHA256 8cc0b302a7ecbcbff60b4dc939be681d1a00eccb4c1475b359e2bd0f1bdbd8b3
Added: trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r2.ebuild
===================================================================
--- trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r2.ebuild (rev 0)
+++ trunk/overlays/proaudio/media-radio/rivendell/rivendell-2.0.1-r2.ebuild 2011-05-02 23:23:13 UTC (rev 1958)
@@ -0,0 +1,99 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+inherit base eutils depend.apache
+
+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"
+need_apache2
+
+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
+
+ echo "<IfDefine RIVENDELL>" > 50_${PN}.conf
+ sed '/^\#/d' conf/rd-bin.conf >> 50_${PN}.conf
+ echo "</IfDefine>" >> 50_${PN}.conf
+
+ insinto ${APACHE_MODULES_CONFDIR}
+ doins 50_${PN}.conf
+
+ 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 "To enable web services, add '-D RIVENDELL'"
+ einfo "to APACHE2_OPTS in /etc/conf.d/apache"
+ einfo
+ ewarn "If this is an update, read /usr/share/doc/${P}/UPGRADING.bz2"
+}