summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSantiago M. Mola <coldwind@gentoo.org>2006-09-20 17:33:54 +0000
committerSantiago M. Mola <coldwind@gentoo.org>2006-09-20 17:33:54 +0000
commitbe75a6b8152d62e7162235d9f201fee23177a6c5 (patch)
tree00da31c895d819bf04794d54b8d5e5f171a643f9 /net-p2p
parentprofiles/use.local.desc: QSA added for net-p2p/museek+. (diff)
downloadsunrise-be75a6b8152d62e7162235d9f201fee23177a6c5.tar.gz
sunrise-be75a6b8152d62e7162235d9f201fee23177a6c5.tar.bz2
sunrise-be75a6b8152d62e7162235d9f201fee23177a6c5.zip
net-p2p/museek+: Initial ebuild for bug #140047 Thanks to SeeSchloss <seeschloss@seeschloss.org> for the init scripts.
svn path=/sunrise/; revision=1291
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/museek+/ChangeLog12
-rw-r--r--net-p2p/museek+/Manifest40
-rw-r--r--net-p2p/museek+/files/conf.d-mulog9
-rw-r--r--net-p2p/museek+/files/conf.d-museekd16
-rw-r--r--net-p2p/museek+/files/digest-museek+-0.1.113
-rw-r--r--net-p2p/museek+/files/init.d-mulog21
-rw-r--r--net-p2p/museek+/files/init.d-museekd35
-rw-r--r--net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch53
-rw-r--r--net-p2p/museek+/files/museek+-0.1.11-defaults.py.patch11
-rw-r--r--net-p2p/museek+/metadata.xml5
-rw-r--r--net-p2p/museek+/museek+-0.1.11.ebuild112
11 files changed, 317 insertions, 0 deletions
diff --git a/net-p2p/museek+/ChangeLog b/net-p2p/museek+/ChangeLog
new file mode 100644
index 000000000..b7cd9a566
--- /dev/null
+++ b/net-p2p/museek+/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-p2p/museek+
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 20 Sep 2006; Santiago M. Mola <cooldwind@gmail.com>
+ +museek+-0.1.11.ebuild, +files/museek+-0.1.11-SConstruct.patch,
+ +files/museek+-0.1.11-defaults.py.patch, +files/conf.d-mulog,
+ +files/conf.d-museekd, +files/init.d-mulog, +files/init.d-museekd,
+ +metadata.xml:
+ Initial ebuild for bug #140047 Thanks to SeeSchloss
+ <seeschloss@seeschloss.org> for the init scripts.
+
diff --git a/net-p2p/museek+/Manifest b/net-p2p/museek+/Manifest
new file mode 100644
index 000000000..dadfd1e9e
--- /dev/null
+++ b/net-p2p/museek+/Manifest
@@ -0,0 +1,40 @@
+AUX conf.d-mulog 153 RMD160 9fa9a04cc98ca62fc9ce5304a49f2d4b8610e261 SHA1 9e2ce1f93d394701bd495aa6e598a598249695aa SHA256 fa599e424b7a962e8dda24ddda9bfedb05eeb5747c0165b4a041235a19b9ef31
+MD5 5add123fac3f9882b61e023c0871aae0 files/conf.d-mulog 153
+RMD160 9fa9a04cc98ca62fc9ce5304a49f2d4b8610e261 files/conf.d-mulog 153
+SHA256 fa599e424b7a962e8dda24ddda9bfedb05eeb5747c0165b4a041235a19b9ef31 files/conf.d-mulog 153
+AUX conf.d-museekd 408 RMD160 1fd26b8e21a980ff6d4eeac56df636f66279e406 SHA1 948ece35a62264d864e71173a8a238883b45e2d2 SHA256 a5b0088974b5dc5bab3268df3e5ad3a6c9321d06f957dd631f21e8b69cf3980d
+MD5 fd49a0921bd808879e9a15b948145783 files/conf.d-museekd 408
+RMD160 1fd26b8e21a980ff6d4eeac56df636f66279e406 files/conf.d-museekd 408
+SHA256 a5b0088974b5dc5bab3268df3e5ad3a6c9321d06f957dd631f21e8b69cf3980d files/conf.d-museekd 408
+AUX init.d-mulog 590 RMD160 df2873a814a2ef796a9dc52be60e592e656e40fe SHA1 1698b356ac01cf04299407483cf0d55ec14178d0 SHA256 2abd48f394cc1fea901094267f82f0a8d528beb6011f80b639d5ea6cdfd4c0f3
+MD5 4e63c426dfb5ac9346d98f8da43d722b files/init.d-mulog 590
+RMD160 df2873a814a2ef796a9dc52be60e592e656e40fe files/init.d-mulog 590
+SHA256 2abd48f394cc1fea901094267f82f0a8d528beb6011f80b639d5ea6cdfd4c0f3 files/init.d-mulog 590
+AUX init.d-museekd 855 RMD160 21bfefb6620d780f5be42b9939e99ae118760a84 SHA1 9e29814a21cf64a6fa501504f1fc453945b2edc7 SHA256 095a498d51f8fa031073485bce0c9201afb1b1cb7cb9a895d8c77740fd18b02e
+MD5 e566a90cdb6e3d8085842aa9cf8e57e9 files/init.d-museekd 855
+RMD160 21bfefb6620d780f5be42b9939e99ae118760a84 files/init.d-museekd 855
+SHA256 095a498d51f8fa031073485bce0c9201afb1b1cb7cb9a895d8c77740fd18b02e files/init.d-museekd 855
+AUX museek+-0.1.11-SConstruct.patch 2414 RMD160 9d3b1fb345a31d30cb3e0803cfa860d7126e2bc9 SHA1 07b870a9e47be69732250533d227d3b09eecfe09 SHA256 a67714eebb1d7cce0a2851fd2115770d14a15531769a1ff102d8c3d7057f1863
+MD5 64053e44a78902004df8be451d8fc7a4 files/museek+-0.1.11-SConstruct.patch 2414
+RMD160 9d3b1fb345a31d30cb3e0803cfa860d7126e2bc9 files/museek+-0.1.11-SConstruct.patch 2414
+SHA256 a67714eebb1d7cce0a2851fd2115770d14a15531769a1ff102d8c3d7057f1863 files/museek+-0.1.11-SConstruct.patch 2414
+AUX museek+-0.1.11-defaults.py.patch 338 RMD160 bb3823246e7b7c462af8b31a7c2a82d775e8b8a3 SHA1 14447f37661141b8d8316e2528aa4e9ccf2494a9 SHA256 2ee545e645cb8c87333bdbdd15dbf228e34427ad13fd3be8131e87114da795cc
+MD5 7d34938a84056d9eebcdf2b92e537d84 files/museek+-0.1.11-defaults.py.patch 338
+RMD160 bb3823246e7b7c462af8b31a7c2a82d775e8b8a3 files/museek+-0.1.11-defaults.py.patch 338
+SHA256 2ee545e645cb8c87333bdbdd15dbf228e34427ad13fd3be8131e87114da795cc files/museek+-0.1.11-defaults.py.patch 338
+DIST museek+-0.1.11.tar.bz2 787571 RMD160 bff4a40be36303cb746b9071b9426d3c2c9c6af2 SHA1 4e3ad47b9f6ac41980c57042362fb08f6a57656e SHA256 6f4640855aae927028f8961e9a78454c0b4abd5244eb821c0b25f60150639ccf
+EBUILD museek+-0.1.11.ebuild 2614 RMD160 96c789441446f096589b614f7abffefbd5123043 SHA1 8c114698495e37fae62dbf67d7c9ed62c5516f2b SHA256 12a9c3d256fe98149c0ad54b5a3268b32b58adce86f2794f312d60f3ed9cee17
+MD5 91a48ff18c27f02eb5aa8086a6e6cbd6 museek+-0.1.11.ebuild 2614
+RMD160 96c789441446f096589b614f7abffefbd5123043 museek+-0.1.11.ebuild 2614
+SHA256 12a9c3d256fe98149c0ad54b5a3268b32b58adce86f2794f312d60f3ed9cee17 museek+-0.1.11.ebuild 2614
+MISC ChangeLog 493 RMD160 8bae5b5cab272ae4f70f965229c6e99e5ff7d6c3 SHA1 47f8182f0d4ac802daf199c172a5ce29dab6f9bd SHA256 e16a16da8196a5d27b522820e51bb4d951dfbc28cdb4f84ba8e8fee548bd6de4
+MD5 14fdd5eb7597f6627b12ad0f974856ed ChangeLog 493
+RMD160 8bae5b5cab272ae4f70f965229c6e99e5ff7d6c3 ChangeLog 493
+SHA256 e16a16da8196a5d27b522820e51bb4d951dfbc28cdb4f84ba8e8fee548bd6de4 ChangeLog 493
+MISC metadata.xml 170 RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 SHA1 ac7f48a14fec325926f9ce1be8fbf1f311b4f2e4 SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42
+MD5 1e678929a9fec6632e227bdf2262e9a1 metadata.xml 170
+RMD160 645927a396fdc21cdeb089fe42c5397332420ea6 metadata.xml 170
+SHA256 d797a2ec6f9dc516c9f9c1a758ee87ad3e8c43101b5dc76c2f872d5bd4639b42 metadata.xml 170
+MD5 dee6500216ea82c558ac13b9e31c75d0 files/digest-museek+-0.1.11 247
+RMD160 f835d18d841d208cf66d4d4f12582e9eb43bd1dc files/digest-museek+-0.1.11 247
+SHA256 8fd2f1397745ce84a8844a5b8fc0324c116482ecb38e6002804d70cb8227a9da files/digest-museek+-0.1.11 247
diff --git a/net-p2p/museek+/files/conf.d-mulog b/net-p2p/museek+/files/conf.d-mulog
new file mode 100644
index 000000000..21acbd4e7
--- /dev/null
+++ b/net-p2p/museek+/files/conf.d-mulog
@@ -0,0 +1,9 @@
+#MULOG_USER=<user>
+#MULOG_PASS=<pass>
+MULOG_HOST=localhost
+MULOG_PORT=2240
+
+# MULOG_PATH
+#
+# MULOG_PATH=/home/jimmy/.mulog/
+# MULOG_PATH=/var/log/mulog/
diff --git a/net-p2p/museek+/files/conf.d-museekd b/net-p2p/museek+/files/conf.d-museekd
new file mode 100644
index 000000000..d7d67a48b
--- /dev/null
+++ b/net-p2p/museek+/files/conf.d-museekd
@@ -0,0 +1,16 @@
+####
+# * MUSEEKD_USER
+# Set here your main user.
+# MUSEEKD_USER=jimmy:users
+# Or an users created ad-hoc for this like p2p.
+# MUSEEKD_USER=p2p:users
+#
+#
+# * MUSEEKD_CONFIG
+# Here goes the config file.
+#
+# The standard setting should be set it in your home:
+# MUSEEKD_CONFIG=/home/jimmy/.museekd/config.xml
+#
+# But you can set it system wide with somethine like this:
+# MUSEEKD_CONFIG=/etc/museekd/config.xml
diff --git a/net-p2p/museek+/files/digest-museek+-0.1.11 b/net-p2p/museek+/files/digest-museek+-0.1.11
new file mode 100644
index 000000000..821edce0b
--- /dev/null
+++ b/net-p2p/museek+/files/digest-museek+-0.1.11
@@ -0,0 +1,3 @@
+MD5 935f1dedbe8a800cd4649b6867e98f01 museek+-0.1.11.tar.bz2 787571
+RMD160 bff4a40be36303cb746b9071b9426d3c2c9c6af2 museek+-0.1.11.tar.bz2 787571
+SHA256 6f4640855aae927028f8961e9a78454c0b4abd5244eb821c0b25f60150639ccf museek+-0.1.11.tar.bz2 787571
diff --git a/net-p2p/museek+/files/init.d-mulog b/net-p2p/museek+/files/init.d-mulog
new file mode 100644
index 000000000..fe7aebad7
--- /dev/null
+++ b/net-p2p/museek+/files/init.d-mulog
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 2004 SeeSchloss
+# Distributed under the terms of the GNU General Public License v2
+
+# NB: Config is in /etc/conf.d/mulog
+
+depend() {
+ need museekd
+}
+
+start() {
+ ebegin "Starting mulog as user $MULOG_USER"
+ start-stop-daemon --start --quiet --exec /usr/bin/mulog.py --chuid $MULOG_USER --background --pidfile /var/run/mulog.pid --make-pidfile -- $MULOG_HOST:$MULOG_PORT $MULOG_PASS $MULOG_PATH
+ eend $? "Failed to start mulog"
+}
+
+stop() {
+ ebegin "Stopping mulog"
+ start-stop-daemon --stop --quiet --pidfile /var/run/mulog.pid
+ eend $? "Failed to stop mulog"
+}
diff --git a/net-p2p/museek+/files/init.d-museekd b/net-p2p/museek+/files/init.d-museekd
new file mode 100644
index 000000000..542701025
--- /dev/null
+++ b/net-p2p/museek+/files/init.d-museekd
@@ -0,0 +1,35 @@
+#!/sbin/runscript
+# Copyright 2004-2005 SeeSchloss
+# Distributed under the terms of the GNU General Public License v2
+
+# NB: Config is in /etc/conf.d/museek
+
+opts="start stop restart reload rescan"
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting museekd as user $MUSEEKD_USER"
+ start-stop-daemon --start --quiet --exec /usr/bin/museekd --chuid $MUSEEKD_USER --background --pidfile /var/run/museekd.pid --make-pidfile -- -c $MUSEEKD_CONFIG
+ eend $? "Failed to start museekd"
+}
+
+stop() {
+ ebegin "Stopping museekd"
+ start-stop-daemon --stop --quiet --pidfile /var/run/museekd.pid
+ eend $? "Failed to stop museekd"
+}
+
+rescan() {
+ ebegin "Scanning museek shares"
+ muscan -c $MUSEEKD_CONFIG
+ eend $? "Failed to rescan shares"
+}
+
+reload() {
+ ebegin "Reloading museek shares"
+ kill -HUP `cat /var/run/museekd.pid`
+ eend $? "Impossible to reload shares ?"
+}
diff --git a/net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch b/net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch
new file mode 100644
index 000000000..717087505
--- /dev/null
+++ b/net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch
@@ -0,0 +1,53 @@
+--- SConstruct.bkp 2006-09-17 22:41:56.000000000 +0200
++++ SConstruct 2006-09-17 23:36:47.000000000 +0200
+@@ -34,8 +34,7 @@
+ opts.Add(ListOption('MULOG', 'Set debug output', '', ['debug', 'cycle', 'calltrace', 'traffictime']))
+ opts.Add(ListOption('MUSEEQTRANSLATIONS', 'Build translations for', '', ['fr','de','es','it','pl','ru','pt_BR','ja','zh','sk','he', 'ar', 'cs' ]))
+ print "Reading CFLAGS from defaults.py and Command Line arguments"
+-opts.Add(ListOption('CFLAGS', 'Set your CCFLAGS here', '', ['fPIC', 'Wall', 'pipe', "g", "O0", "O1", "O2", "O3", "funrollloop", "Os", "fomit-frame-pointer"]))
+-# New CCFLAGS must be added to the above option, or you'll just get error messages
++opts.Add('CFLAGS', 'Set your CCFLAGS here', '')
+ opts.Add(BoolOption('EPOLL', 'Use epoll when available', ''))
+ opts.Add(BoolOption('MUCOUS', 'Install Mucous (when SWIG can be found', ''))
+ opts.Add(BoolOption('MUSETUPGTK', 'Install Musetup-GTK', ''))
+@@ -103,20 +102,9 @@
+ # env['CFLAGS'] = ['-fPIC', '-Wall', '-pipe'] # allows x86_64 to compile
+ # ['-Wall', '-pipe']) # original
+ flags = []
+- for flag in str(env['CFLAGS']).split(','):
+- flags.append("-"+flag)
+- env.Append(CCFLAGS = flags)
++ env.Append(CCFLAGS = env['CFLAGS'].split(' '))
+
+- if env['RELEASE'] and "-fomit-frame-pointer" not in env["CCFLAGS"]:
+- env.Append(CCFLAGS = ['-fomit-frame-pointer'])
+- if env['PROFILE'] and "-pg" not in env["CCFLAGS"]:
+- env.Append(CCFLAGS = ['-pg'])
+- if not env['RELEASE'] and not env['PROFILE'] and "-g" not in env["CCFLAGS"]:
+- env.Append(CCFLAGS = ['-g'])
+- flagstring =""
+- for i in env["CCFLAGS"]:
+- flagstring += i + " "
+- print "BUILDING with CCFLAGS: "+ flagstring
++ print "BUILDING with CFLAGS: "+ env['CFLAGS']
+
+
+ # Set up additional include and library paths
+@@ -185,7 +173,7 @@
+ print "Couldn't figure out how to use the dynamic run-time linker"
+ Exit(1)
+ env.Replace(LIBS = libs)
+- env.Append(CCFLAGS = ['-fPIC'])
++ env.Append(CCFLAGS = ' -fPIC')
+
+
+ if check_deps == 1:
+@@ -390,7 +378,7 @@
+ f.write('BUILDDIR = %s\n' % (`env['BUILDDIR']`))
+ f.write('RELEASE = %s\n' % (`env['RELEASE']`))
+ f.write('MULOG = %s\n' % (`string.join(env['MULOG'], ',')`))
+-f.write('CFLAGS = %s\n' % (`string.join(env['CFLAGS'], ',')`))
++f.write('CFLAGS = %s\n' % (`env['CFLAGS']`))
+ f.write('EPOLL = %s\n' % (`env['EPOLL']`))
+ f.write('RELAY = %s\n' % (`env['RELAY']`))
+ f.write('BINRELOC = %s\n' % (`env['BINRELOC']`))
diff --git a/net-p2p/museek+/files/museek+-0.1.11-defaults.py.patch b/net-p2p/museek+/files/museek+-0.1.11-defaults.py.patch
new file mode 100644
index 000000000..6d5f18fbb
--- /dev/null
+++ b/net-p2p/museek+/files/museek+-0.1.11-defaults.py.patch
@@ -0,0 +1,11 @@
+--- defaults.py.bkp 2006-09-17 23:26:43.000000000 +0200
++++ defaults.py 2006-09-17 23:28:08.000000000 +0200
+@@ -26,7 +26,7 @@
+ MULOG='debug'
+
+ # CCFLAGS (fPIC, Wall, pipe) Do not include the prefix "-"
+-CFLAGS='fPIC,Wall,pipe'
++#CFLAGS='-fPIC -Wall -pipe'
+
+ # Enable OGG Vorbis support (if available) in file scanner (muscan)
+ VORBIS=1
diff --git a/net-p2p/museek+/metadata.xml b/net-p2p/museek+/metadata.xml
new file mode 100644
index 000000000..7e3286984
--- /dev/null
+++ b/net-p2p/museek+/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>maintainer-wanted</herd>
+</pkgmetadata>
diff --git a/net-p2p/museek+/museek+-0.1.11.ebuild b/net-p2p/museek+/museek+-0.1.11.ebuild
new file mode 100644
index 000000000..a7f589985
--- /dev/null
+++ b/net-p2p/museek+/museek+-0.1.11.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit qt3 eutils flag-o-matic
+
+DESCRIPTION="a SoulSeek client which uses a daemon and multiple gui clients."
+HOMEPAGE="http://museek-plus.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN/+/-plus}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="debug gtk ncurses qsa qt3 vorbis"
+
+LANGS="fr de es it pl ru pt_BR ja zh sk he ar cs"
+
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+RDEPEND="dev-lang/python
+ >=dev-cpp/libxmlpp-1.0.2
+ gtk? ( >=dev-python/pygtk-2.6.1 )
+ qsa? ( >=dev-libs/qsa-1.1.1 )
+ qt3? ( $(qt_min_version 3.2) )
+ vorbis? ( media-libs/libvorbis
+ media-libs/libogg )"
+DEPEND="${RDEPEND}
+ =dev-util/scons-0.96*
+ dev-lang/swig"
+
+pkg_setup() {
+ if use ncurses && ! built_with_use dev-lang/python ncurses ; then
+ eerror "In order to build Mucose (museek ncurses client)"
+ eerror "you need dev-lang/python built with ncurses USE flag enabled."
+ die "no ncurses support in Python"
+ fi
+
+ if use qsa && ! use qt3 ; then
+ eerror "In order to use QSA you need to build Museek+"
+ eerror "with QT3 support too."
+ die "using qsa without qt3"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}/${P}-defaults.py.patch"
+ epatch "${FILESDIR}/${P}-SConstruct.patch"
+}
+
+src_compile() {
+ local myconf=""
+ if ! use qt3 ; then
+ myconf="${myconf} MUSEEQ=no"
+ fi
+ if ! use qsa ; then
+ myconf="${myconf} QSA=no"
+ fi
+ if ! use gtk ; then
+ myconf="${myconf} MUSETUPGTK=no"
+ fi
+ if ! use ncurses ; then
+ myconf="${myconf} MUCOUS=no"
+ fi
+ if ! use vorbis ; then
+ myconf="${myconf} VORBIS=no"
+ fi
+
+ if use debug ; then
+ myconf="${myconf} MULOG=cycle,debug"
+ fi
+
+ local mylinguas=""
+ for X in ${LANGS} ; do
+ if use linguas_${X} ; then
+ mylinguas="${mylinguas}${X},"
+ fi
+ done
+
+ myconf="${myconf} MUSEEQTRANSLATIONS=${mylinguas/,$/}"
+
+ scons ${myconf} CFLAGS="${CFLAGS}" PREFIX=/usr
+}
+
+src_install() {
+ scons DESTDIR="${D}" install
+ dodoc README
+
+ if use qt3 ; then
+ doicon "icons/museeq-circle2.png"
+ make_desktop_entry ${PN/k+/q} "Museeq" museeq-circle2.png \
+ "Qt;Network;P2P"
+ fi
+
+ # conf.d and init.d scripts by SeeSchloss
+ exeinto /etc/init.d
+ #newexe ${FILESDIR}/conf.d-mulog mulog
+ newexe ${FILESDIR}/init.d-museekd museekd
+
+ insinto /etc/conf.d
+ #newins "${FILESDIR}"/conf.d-mulog mulog
+ newins ${FILESDIR}/conf.d-museekd museekd
+}
+
+pkg_postinst() {
+ einfo "Look at /etc/conf.d/museekd and configure all options"
+ einfo "before starting it. When you are done,"
+ einfo "configure the all settings with musetup or musetup-gtk."
+}