summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom William Payne <twp@gentoo.org>2007-01-18 23:33:10 +0000
committerTom William Payne <twp@gentoo.org>2007-01-18 23:33:10 +0000
commit6f8b699c0c938dc1e2df2918e752e238f11b925b (patch)
treecc0aad7fc5330b201fd6f66e0ee73c1f3a655d73 /media-sound/slimserver
parentStable for HPPA (bug #147751). (diff)
downloadgentoo-2-6f8b699c0c938dc1e2df2918e752e238f11b925b.tar.gz
gentoo-2-6f8b699c0c938dc1e2df2918e752e238f11b925b.tar.bz2
gentoo-2-6f8b699c0c938dc1e2df2918e752e238f11b925b.zip
Version bump.
(Portage version: 2.1.2)
Diffstat (limited to 'media-sound/slimserver')
-rw-r--r--media-sound/slimserver/ChangeLog9
-rw-r--r--media-sound/slimserver/files/digest-slimserver-6.5.13
-rw-r--r--media-sound/slimserver/slimserver-6.5.1.ebuild121
3 files changed, 131 insertions, 2 deletions
diff --git a/media-sound/slimserver/ChangeLog b/media-sound/slimserver/ChangeLog
index 223097315788..ea4c34b708c6 100644
--- a/media-sound/slimserver/ChangeLog
+++ b/media-sound/slimserver/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-sound/slimserver
-# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/slimserver/ChangeLog,v 1.5 2006/12/26 23:13:44 twp Exp $
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/slimserver/ChangeLog,v 1.6 2007/01/18 23:33:10 twp Exp $
+
+*slimserver-6.5.1 (18 Jan 2007)
+
+ 18 Jan 2007; <twp@gentoo.org> +slimserver-6.5.1.ebuild:
+ Version bump.
26 Dec 2006; <twp@gentoo.org> slimserver-6.5.0.ebuild:
Update dev-perl/DBD-mysql dependency. Bug #158866.
diff --git a/media-sound/slimserver/files/digest-slimserver-6.5.1 b/media-sound/slimserver/files/digest-slimserver-6.5.1
new file mode 100644
index 000000000000..370b58b05f18
--- /dev/null
+++ b/media-sound/slimserver/files/digest-slimserver-6.5.1
@@ -0,0 +1,3 @@
+MD5 69298ca0a214224ac2a79a522e26dd3c SlimServer_v6.5.1.no-cpan-arch.tar.gz 15271878
+RMD160 dbff06e44282671d6c56c3d47a07e1be288dd44e SlimServer_v6.5.1.no-cpan-arch.tar.gz 15271878
+SHA256 8e3122472e94f491984351774925c943a257643044655c468fc11b6be18d6cb5 SlimServer_v6.5.1.no-cpan-arch.tar.gz 15271878
diff --git a/media-sound/slimserver/slimserver-6.5.1.ebuild b/media-sound/slimserver/slimserver-6.5.1.ebuild
new file mode 100644
index 000000000000..4708a35e9504
--- /dev/null
+++ b/media-sound/slimserver/slimserver-6.5.1.ebuild
@@ -0,0 +1,121 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/slimserver/slimserver-6.5.1.ebuild,v 1.1 2007/01/18 23:33:10 twp Exp $
+
+inherit eutils
+
+MY_P=SlimServer_v${PV}
+DESCRIPTION="Slim Devices' SlimServer"
+HOMEPAGE="http://www.slimdevices.com/slimserver/"
+SRC_URI="http://www.slimdevices.com/downloads/${MY_P}/${MY_P}.no-cpan-arch.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="aac alac encode ffmpeg flac musepack ogg shorten"
+DEPEND="sys-apps/findutils"
+RDEPEND="
+ >=dev-lang/perl-5.8.3
+ >=virtual/mysql-5.0
+ >=dev-perl/Compress-Zlib-1.41
+ >=dev-perl/DBD-mysql-3.0007
+ >=dev-perl/DBI-1.50
+ >=dev-perl/Digest-SHA1-2.11
+ dev-perl/GD
+ >=dev-perl/HTML-Parser-3.48
+ >=dev-perl/Template-Toolkit-2.14
+ >=dev-perl/XML-Parser-2.34
+ >=dev-perl/YAML-Syck-0.64
+ >=net-misc/mDNSResponder-107
+ >=virtual/perl-Time-HiRes-1.86
+ aac? ( media-libs/faad2 )
+ alac? ( media-sound/alac_decoder )
+ encode? ( media-sound/lame )
+ ffmpeg? ( media-video/ffmpeg )
+ flac? ( media-libs/flac )
+ musepack? ( media-sound/musepack-tools )
+ ogg? ( media-sound/sox )
+ shorten? ( media-sound/shorten )
+ "
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ if use ogg; then
+ if ! built_with_use media-sound/sox ogg; then
+ eerror "media-sound/sox not built with USE=ogg"
+ die "media-sound/sox not built with USE=ogg"
+ fi
+ fi
+ enewgroup slimserver || die
+ enewuser slimserver -1 -1 /opt/slimserver slimserver || die
+}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/slimserver-bootstrap-gentoo.patch || die
+ epatch ${FILESDIR}/slimserver-mDNSResponderPosix-107.patch || die
+ rm Bin/build-perl-modules.pl
+ rm CPAN/YAML/Syck.pm
+ rm MySQL/errmsg.{sys,txt}
+ #rm -rf MySQL
+}
+
+src_install() {
+ # copy all files
+ dodir /opt/slimserver
+ cp -r * ${D}/opt/slimserver
+ # initialize preferences file
+ dodir /etc
+ touch ${D}/etc/slimserver.prefs
+ #password=$(gawk '$1 == "dbpassword:" { print $2 }' ${R}/etc/slimserver.prefs)
+ #[[ -z "${password}" || "${password}" == "''" ]] \
+ # && password="${RANDOM}.${RANDOM}.${RANDOM}.${RANDOM}"
+ #cat <<EOF > ${D}/etc/slimserver.prefs
+ #---
+ #dbsource: dbi:mysql:database=slimserver
+ #dbusername: slimserver
+ #dbpassword: ${password}
+ #EOF
+ fowners slimserver:slimserver /etc/slimserver.prefs
+ # create symbolic links to local mysql files
+ dosym ../../../usr/sbin/mysqld /opt/slimserver/Bin/mysqld
+ dosym ../../../usr/share/mysql/english/errmsg.sys \
+ /opt/slimserver/MySQL/errmsg.sys
+ dosym ../../../usr/share/mysql/errmsg.txt \
+ /opt/slimserver/MySQL/errmsg.txt
+ # create symbolic link to local mDNSResponderPosix
+ dosym ../../../usr/sbin/mDNSResponderPosix \
+ /opt/slimserver/Bin/mDNSResponderPosix
+ # install init scripts
+ newconfd ${FILESDIR}/slimserver.conf.d slimserver
+ newinitd ${FILESDIR}/slimserver.init.d slimserver
+ # initialize /var/{cache,run}
+ keepdir /var/{cache,run}/slimserver
+ fowners slimserver:slimserver /var/{cache,run}/slimserver
+ # initialize /var/log
+ dodir /var/log
+ touch ${D}/var/log/slimserver
+ fowners slimserver:slimserver /var/log/slimserver
+}
+
+pkg_postinst() {
+ #einfo "To create the SlimServer database, run"
+ #einfo "\temerge --config =${CATEGORY}/${PF}"
+ einfo "To start SlimServer, run"
+ einfo "\t/etc/init.d/slimserver start"
+ einfo "To start SlimServer automatically on boot, run:"
+ einfo "\trc-update add slimserver default"
+ httpport=$(gawk '$1 == "httpport:" { print $2 }' ${R}/etc/slimserver.prefs)
+ einfo "To configure SlimServer, browse to:"
+ einfo "\thttp://localhost:${httpport:-9000}/"
+}
+
+#pkg_config() {
+# einfo "Enter your mysql root password:"
+# dbpassword=$(gawk '$1 == "dbpassword:" { print $2 }' ${R}/etc/slimserver.prefs)
+# [[ "$password" == "''" ]] && dbpassword=
+# mysql -u root -p <<EOF
+#create database slimserver;
+#grant all on slimserver.* to slimserver identified by '${dbpassword}';
+#EOF
+#}