pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/audio/moss Initial import of moss-0.1.2. Packaged by ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a2c457d5598a
branches:  trunk
changeset: 479267:a2c457d5598a
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Aug 10 06:48:21 2004 +0000

description:
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:

 audio/moss/DESCR            |   3 +++
 audio/moss/Makefile         |  35 +++++++++++++++++++++++++++++++++++
 audio/moss/PLIST            |  34 ++++++++++++++++++++++++++++++++++
 audio/moss/distinfo         |   5 +++++
 audio/moss/files/moss.sh    |  28 ++++++++++++++++++++++++++++
 audio/moss/patches/patch-aa |  15 +++++++++++++++
 6 files changed, 120 insertions(+), 0 deletions(-)

diffs (144 lines):

diff -r 89fdc89cc237 -r a2c457d5598a audio/moss/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moss/DESCR  Tue Aug 10 06:48:21 2004 +0000
@@ -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 -r 89fdc89cc237 -r a2c457d5598a audio/moss/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moss/Makefile       Tue Aug 10 06:48:21 2004 +0000
@@ -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@localhost
+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 -r 89fdc89cc237 -r a2c457d5598a audio/moss/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moss/PLIST  Tue Aug 10 06:48:21 2004 +0000
@@ -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 -r 89fdc89cc237 -r a2c457d5598a audio/moss/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moss/distinfo       Tue Aug 10 06:48:21 2004 +0000
@@ -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 -r 89fdc89cc237 -r a2c457d5598a audio/moss/files/moss.sh
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moss/files/moss.sh  Tue Aug 10 06:48:21 2004 +0000
@@ -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 -r 89fdc89cc237 -r a2c457d5598a audio/moss/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/audio/moss/patches/patch-aa       Tue Aug 10 06:48:21 2004 +0000
@@ -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)
+               



Home | Main Index | Thread Index | Old Index