diff options
Diffstat (limited to 'net-p2p/museek+/files')
-rw-r--r-- | net-p2p/museek+/files/conf.d-mulog | 9 | ||||
-rw-r--r-- | net-p2p/museek+/files/conf.d-museekd | 16 | ||||
-rw-r--r-- | net-p2p/museek+/files/digest-museek+-0.1.11 | 3 | ||||
-rw-r--r-- | net-p2p/museek+/files/init.d-mulog | 21 | ||||
-rw-r--r-- | net-p2p/museek+/files/init.d-museekd | 35 | ||||
-rw-r--r-- | net-p2p/museek+/files/museek+-0.1.11-SConstruct.patch | 53 | ||||
-rw-r--r-- | net-p2p/museek+/files/museek+-0.1.11-defaults.py.patch | 11 |
7 files changed, 148 insertions, 0 deletions
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 |