summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-01-08 19:39:42 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-01-08 19:39:42 +0000
commit9d1a65860dbb3bb326297a10b39b8ef69e8c7cb5 (patch)
tree3d12bdaf3628c97911d8e85b7a5f181af9fd65fc /audio
parent845fcf62ffb1e07f067e78dfc96304bc11a19828 (diff)
downloadpkgsrc-9d1a65860dbb3bb326297a10b39b8ef69e8c7cb5.tar.gz
Initial import of icecast2-2.0.0, packaged by pancake in pkgsrc-wip,
adapted to use the bsd.pkg.install.mk framework by me. Icecast is a streaming media server which currently supports Ogg Vorbis and MP3 audio streams. It can be used to create an Internet radio station or a privately running jukebox and many things in between. It is very versatile in that new formats can be added relatively easily and supports open standards for commuincation and interaction. -- The package has been prepared to be launched in chroot mode by default, enjoy!
Diffstat (limited to 'audio')
-rw-r--r--audio/icecast2/DESCR6
-rw-r--r--audio/icecast2/Makefile68
-rw-r--r--audio/icecast2/PLIST33
-rw-r--r--audio/icecast2/distinfo6
-rwxr-xr-xaudio/icecast2/files/icecast.sh18
-rw-r--r--audio/icecast2/patches/patch-aa13
-rw-r--r--audio/icecast2/patches/patch-ab46
7 files changed, 190 insertions, 0 deletions
diff --git a/audio/icecast2/DESCR b/audio/icecast2/DESCR
new file mode 100644
index 00000000000..9ee4f0f623d
--- /dev/null
+++ b/audio/icecast2/DESCR
@@ -0,0 +1,6 @@
+Icecast is a streaming media server which currently supports Ogg
+Vorbis and MP3 audio streams. It can be used to create an Internet
+radio station or a privately running jukebox and many things in
+between. It is very versatile in that new formats can be added
+relatively easily and supports open standards for commuincation and
+interaction.
diff --git a/audio/icecast2/Makefile b/audio/icecast2/Makefile
new file mode 100644
index 00000000000..ce7e656ba1e
--- /dev/null
+++ b/audio/icecast2/Makefile
@@ -0,0 +1,68 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/08 19:39:42 xtraeme Exp $
+#
+
+DISTNAME= icecast-2.0.0
+PKGNAME= ${DISTNAME:S/-/2-/}
+CATEGORIES= audio
+MASTER_SITES= http://www.icecast.org/files/
+
+MAINTAINER= pancake@phreaker.net
+HOMEPAGE= http://www.icecast.org/
+COMMENT= Live streaming audio server
+
+CONFLICTS+= icecast-[0-9]*:../../audio/icecast
+
+USE_BUILDLINK2= yes
+USE_PKGLOCALEDIR= yes
+USE_LIBTOOL= yes
+USE_PKGINSTALL= yes
+GNU_CONFIGURE= yes
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+BUILD_DEFS+= ICECAST_CHROOTDIR
+
+PKG_SYSCONFSUBDIR= icecast
+RCD_SCRIPTS= icecast
+
+ICECAST_LOGDIR?= ${ICECAST_CHROOTDIR}/log
+
+ICECAST_USER?= icecast
+ICECAST_GROUP?= icecast
+
+PKG_GROUPS= ${ICECAST_GROUP}
+PKG_USERS= ${ICECAST_USER}:${ICECAST_GROUP}::Icecast2\\ user
+
+EGDIR= ${PREFIX}/share/examples/icecast
+CONF_FILES= ${EGDIR}/icecast.xml ${PKG_SYSCONFDIR}/icecast.xml
+
+.for D in ${ICECAST_CHROOTDIR} ${ICECAST_LOGDIR}
+OWN_DIRS_PERMS+= ${D} ${ICECAST_USER} ${ICECAST_GROUP} 770
+.endfor
+.undef D
+
+post-extract:
+ @${MV} ${WRKSRC}/conf/icecast.xml.in ${WRKSRC}/conf/icecast.fixme
+
+post-install:
+ @( \
+ ${SED} \
+ -e "s,@BASEDIR@,${ICECAST_CHROOTDIR},g" \
+ -e "s,@LOGDIR@,log/,g" \
+ -e "s,@WEBROOT@,${PREFIX}/share/icecast/web,g" \
+ -e "s,@ADMINROOT@,${PREFIX}/share/icecast/admin,g" \
+ -e "s,@PIDDIR@,${ICECAST_CHROOTDIR},g" \
+ -e "s,@ICECAST_USER@,${ICECAST_USER},g" \
+ -e "s,@ICECAST_GROUP@,${ICECAST_GROUP},g" \
+ ${WRKSRC}/conf/icecast.fixme > ${WRKSRC}/conf/icecast.xml; \
+ ${INSTALL_DATA_DIR} ${EGDIR}; \
+ ${INSTALL_DATA} ${WRKSRC}/conf/icecast.xml ${EGDIR} \
+ )
+
+.include "../../audio/libvorbis/buildlink2.mk"
+.include "../../converters/libiconv/buildlink2.mk"
+.include "../../textproc/libxslt/buildlink2.mk"
+.include "../../www/curl/buildlink2.mk"
+
+.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/icecast2/PLIST b/audio/icecast2/PLIST
new file mode 100644
index 00000000000..987165924b7
--- /dev/null
+++ b/audio/icecast2/PLIST
@@ -0,0 +1,33 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/08 19:39:42 xtraeme Exp $
+bin/icecast
+etc/rc.d/icecast
+share/doc/icecast/AUTHORS
+share/doc/icecast/COPYING
+share/doc/icecast/NEWS
+share/doc/icecast/README
+share/doc/icecast/TODO
+share/doc/icecast/icecast2_admin.html
+share/doc/icecast/icecast2_basicsetup.html
+share/doc/icecast/icecast2_config_file.html
+share/doc/icecast/icecast2_faq.html
+share/doc/icecast/icecast2_glossary.html
+share/doc/icecast/icecast2_introduction.html
+share/doc/icecast/icecast2_relay.html
+share/doc/icecast/icecast2_stats.html
+share/doc/icecast/icecast2_win32.html
+share/doc/icecast/icecast2_yp.html
+share/doc/icecast/index.html
+share/examples/icecast/icecast.xml
+share/icecast/admin/listclients.xsl
+share/icecast/admin/listmounts.xsl
+share/icecast/admin/moveclients.xsl
+share/icecast/admin/response.xsl
+share/icecast/admin/stats.xsl
+share/icecast/web/status.xsl
+share/icecast/web/status2.xsl
+@dirrm share/icecast/web
+@dirrm share/icecast/doc
+@dirrm share/icecast/admin
+@dirrm share/icecast
+@dirrm share/doc/icecast
+@dirrm share/examples/icecast
diff --git a/audio/icecast2/distinfo b/audio/icecast2/distinfo
new file mode 100644
index 00000000000..0f52c7d9b9c
--- /dev/null
+++ b/audio/icecast2/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/08 19:39:42 xtraeme Exp $
+
+SHA1 (icecast-2.0.0.tar.gz) = 76f41f807bdff5dfb50d5b67075fc401de7e270a
+Size (icecast-2.0.0.tar.gz) = 684624 bytes
+SHA1 (patch-aa) = fa92a4a704a3f471a0669c9933b36a3586425dc5
+SHA1 (patch-ab) = 39cf0ed1e9da8c7d90fa192731307817e91496c9
diff --git a/audio/icecast2/files/icecast.sh b/audio/icecast2/files/icecast.sh
new file mode 100755
index 00000000000..450320a5336
--- /dev/null
+++ b/audio/icecast2/files/icecast.sh
@@ -0,0 +1,18 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: icecast.sh,v 1.1.1.1 2004/01/08 19:39:42 xtraeme Exp $
+#
+
+# PROVIDE: icecast
+# REQUIRE: DAEMON LOGIN
+
+. /etc/rc.subr
+
+name="icecast"
+rcvar=$name
+command="@PREFIX@/bin/${name}"
+command_args="-b -c @PKG_SYSCONFDIR@/$name.xml 1>2& >/dev/null"
+required_files="@PKG_SYSCONFDIR@/$name.xml"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/audio/icecast2/patches/patch-aa b/audio/icecast2/patches/patch-aa
new file mode 100644
index 00000000000..8ff14fb1453
--- /dev/null
+++ b/audio/icecast2/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/08 19:39:42 xtraeme Exp $
+
+--- Makefile.in.orig 2004-01-08 18:59:21.000000000 +0100
++++ Makefile.in 2004-01-08 18:59:45.000000000 +0100
+@@ -112,7 +112,7 @@
+ AUTOMAKE_OPTIONS = 1.6 foreign dist-zip
+ ACLOCAL_AMFLAGS = -I m4
+
+-SUBDIRS = src conf debian doc web admin win32
++SUBDIRS = src doc web admin
+
+ EXTRA_DIST = HACKING m4/acx_pthread.m4 m4/ogg.m4 m4/vorbis.m4 \
+ m4/xiph_compiler.m4 m4/xiph_curl.m4 m4/xiph_net.m4 \
diff --git a/audio/icecast2/patches/patch-ab b/audio/icecast2/patches/patch-ab
new file mode 100644
index 00000000000..f3985b729c4
--- /dev/null
+++ b/audio/icecast2/patches/patch-ab
@@ -0,0 +1,46 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/01/08 19:39:42 xtraeme Exp $
+
+--- conf/icecast.fixme.orig 2004-01-08 19:10:14.000000000 +0100
++++ conf/icecast.fixme 2004-01-08 19:14:15.000000000 +0100
+@@ -82,14 +82,15 @@
+
+ <paths>
+ <!-- basedir is only used if chroot is enabled -->
+- <basedir>@pkgdatadir@</basedir>
++ <basedir>@BASEDIR@</basedir>
+
+ <!-- Note that if <chroot> is turned on below, these paths must both
+ be relative to the new root, not the original root -->
+- <logdir>@localstatedir@/log/@PACKAGE@</logdir>
+- <webroot>@pkgdatadir@/web</webroot>
+- <adminroot>@pkgdatadir@/admin</adminroot>
+- <!-- <pidfile>@pkgdatadir@/icecast.pid</pidfile> -->
++
++ <logdir>@LOGDIR@/</logdir>
++ <webroot>@WEBROOT@</webroot>
++ <adminroot>@ADMINROOT@</adminroot>
++ <pidfile>@PIDDIR@/icecast.pid</pidfile>
+
+ <!-- Aliases: treat requests for 'source' path as being for 'dest' path
+ May be made specific to a port or bound address using the "port"
+@@ -103,16 +104,14 @@
+ <logging>
+ <accesslog>access.log</accesslog>
+ <errorlog>error.log</errorlog>
+- <loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
++ <loglevel>2</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
+ </logging>
+
+ <security>
+- <chroot>0</chroot>
+- <!--
++ <chroot>1</chroot>
+ <changeowner>
+- <user>nobody</user>
+- <group>nogroup</group>
++ <user>@ICECAST_USER@</user>
++ <group>@ICECAST_GROUP@</group>
+ </changeowner>
+- -->
+ </security>
+ </icecast>