summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-08-10 06:48:21 +0000
committerminskim <minskim@pkgsrc.org>2004-08-10 06:48:21 +0000
commit55d8e165198ee0e491d488ef608f7fc42587755c (patch)
tree16bbcaf49cf383af078df341218b298931e2d59b /audio
parentb6fff849f9610901910554579f532257f57dfbab (diff)
downloadpkgsrc-55d8e165198ee0e491d488ef608f7fc42587755c.tar.gz
Initial import of moss-0.1.2. Packaged by Yongbin Yu.
MOSS (MP3/OGG Streaming Server) is an HTTP-based streaming server written in Python. It supports the web mode where you browse and select songs, and the live mode which supports real-time broadcast.
Diffstat (limited to 'audio')
-rw-r--r--audio/moss/DESCR3
-rw-r--r--audio/moss/Makefile35
-rw-r--r--audio/moss/PLIST34
-rw-r--r--audio/moss/distinfo5
-rw-r--r--audio/moss/files/moss.sh28
-rw-r--r--audio/moss/patches/patch-aa15
6 files changed, 120 insertions, 0 deletions
diff --git a/audio/moss/DESCR b/audio/moss/DESCR
new file mode 100644
index 00000000000..82187f86370
--- /dev/null
+++ b/audio/moss/DESCR
@@ -0,0 +1,3 @@
+MOSS (MP3/OGG Streaming Server) is an HTTP-based streaming server
+written in Python. It supports the web mode where you browse and
+select songs, and the live mode which supports real-time broadcast.
diff --git a/audio/moss/Makefile b/audio/moss/Makefile
new file mode 100644
index 00000000000..4f02a8b3d91
--- /dev/null
+++ b/audio/moss/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
+
+DISTNAME= moss-0.1.2
+CATEGORIES= audio
+MASTER_SITES= http://kldp.net/download.php/1377/
+
+MAINTAINER= yongbin@yongbin.com
+HOMEPAGE= http://moss.kldp.net/
+COMMENT= MP3/OGG Streaming Server
+
+DEPENDS+= ${PYPKGPREFIX}-ogg>=1.3:../../audio/py-ogg
+DEPENDS+= ${PYPKGPREFIX}-vorbis>=1.3:../../audio/py-vorbis
+
+USE_BUILDLINK3= yes
+USE_PKGINSTALL= yes
+
+PYTHON_PATCH_SCRIPTS= ${WRKSRC}/*.py
+
+RCD_SCRIPTS= moss
+CONF_FILES= ${PREFIX}/share/moss/moss.conf.sample \
+ ${PKG_SYSCONFDIR}/moss.conf
+
+SUBST_CLASSES+= path
+SUBST_MESSAGE.path= "Fixing hardcoded paths."
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= moss.conf.sample
+SUBST_SED.path= -e 's,/usr/local,${PREFIX},g' -e 's,/var,${VARBASE},g'
+
+FILES_SUBST+= INTERPRETER=${PYTHONBIN}
+
+PYDISTUTILSPKG= yes
+
+.include "../../lang/python/extension.mk"
+.include "../../lang/python/application.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/moss/PLIST b/audio/moss/PLIST
new file mode 100644
index 00000000000..f4330f29e9d
--- /dev/null
+++ b/audio/moss/PLIST
@@ -0,0 +1,34 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
+bin/moss
+${PYSITELIB}/moss/__init__.py
+${PYSITELIB}/moss/__init__.pyc
+${PYSITELIB}/moss/__init__.pyo
+${PYSITELIB}/moss/fileinfo.py
+${PYSITELIB}/moss/fileinfo.pyc
+${PYSITELIB}/moss/fileinfo.pyo
+${PYSITELIB}/moss/htmltmpl.py
+${PYSITELIB}/moss/htmltmpl.pyc
+${PYSITELIB}/moss/htmltmpl.pyo
+${PYSITELIB}/moss/live.py
+${PYSITELIB}/moss/live.pyc
+${PYSITELIB}/moss/live.pyo
+${PYSITELIB}/moss/moss.py
+${PYSITELIB}/moss/moss.pyc
+${PYSITELIB}/moss/moss.pyo
+${PYSITELIB}/moss/template.py
+${PYSITELIB}/moss/template.pyc
+${PYSITELIB}/moss/template.pyo
+${PYSITELIB}/moss/web.py
+${PYSITELIB}/moss/web.pyc
+${PYSITELIB}/moss/web.pyo
+share/moss/images/back.gif
+share/moss/images/dir.gif
+share/moss/images/file.gif
+share/moss/images/play.gif
+share/moss/images/root.gif
+share/moss/moss.conf.sample
+share/moss/templates/default.tmpl
+@dirrm share/moss/templates
+@dirrm share/moss/images
+@dirrm share/moss
+@dirrm ${PYSITELIB}/moss
diff --git a/audio/moss/distinfo b/audio/moss/distinfo
new file mode 100644
index 00000000000..addc4ee6b36
--- /dev/null
+++ b/audio/moss/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
+
+SHA1 (moss-0.1.2.tar.gz) = 1743987723035bbf150e5d1b59b81b5863ed1ab4
+Size (moss-0.1.2.tar.gz) = 40202 bytes
+SHA1 (patch-aa) = f343abfda298951268a0f834e55a26be1f2228fc
diff --git a/audio/moss/files/moss.sh b/audio/moss/files/moss.sh
new file mode 100644
index 00000000000..5198387b7a7
--- /dev/null
+++ b/audio/moss/files/moss.sh
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# $NetBSD: moss.sh,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
+#
+
+# PROVIDE: moss
+# REQUIRE: DAEMON LOGIN wscons
+# KEYWORD: shutdown
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="moss"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+command_interpreter="@INTERPRETER@"
+pidfile="/var/run/moss.pid"
+required_files="@PREFIX@/etc/moss.conf"
+command_args="-c ${required_files}"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n " ${name}"
+ ${command} ${command_args}
+fi
diff --git a/audio/moss/patches/patch-aa b/audio/moss/patches/patch-aa
new file mode 100644
index 00000000000..de6a409cf1a
--- /dev/null
+++ b/audio/moss/patches/patch-aa
@@ -0,0 +1,15 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/08/10 06:48:21 minskim Exp $
+
+--- setup.py.orig 2004-08-07 00:35:08.000000000 +0900
++++ setup.py
+@@ -47,8 +47,8 @@ class my_install_data(install_data):
+ print "creating %s" % os.path.join(self.install_dir, "etc")
+ os.mkdir(os.path.join(self.install_dir, "etc"))
+
+- print "copying moss.conf.sample -> %s" % os.path.join(self.install_dir, "etc/moss.conf")
+- shutil.copyfile("moss.conf.sample", os.path.join(self.install_dir, "etc/moss.conf"))
++ #print "copying moss.conf.sample -> %s" % os.path.join(self.install_dir, "etc/moss.conf")
++ #shutil.copyfile("moss.conf.sample", os.path.join(self.install_dir, "etc/moss.conf"))
+ print "changing permission %s to 0755" % (os.path.join(installed_lib_dir, "moss/moss.py"))
+ os.chmod(os.path.join(installed_lib_dir, "moss/moss.py"), 0755)
+