summaryrefslogtreecommitdiff
path: root/audio/icecast1
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-01-08 20:48:45 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-01-08 20:48:45 +0000
commit576f38585f92de622c2b161ce3b5352051fbb746 (patch)
tree0d0531717b3bb4444e57a6345c96bf7392b29ae6 /audio/icecast1
parent56eb233c19809608c600cd3d7ee0c8bb43edb4d2 (diff)
downloadpkgsrc-576f38585f92de622c2b161ce3b5352051fbb746.tar.gz
Reimport icecast to icecast1.
Diffstat (limited to 'audio/icecast1')
-rw-r--r--audio/icecast1/DESCR4
-rw-r--r--audio/icecast1/Makefile49
-rw-r--r--audio/icecast1/PLIST32
-rw-r--r--audio/icecast1/distinfo6
-rw-r--r--audio/icecast1/files/icecast.sh29
-rw-r--r--audio/icecast1/patches/patch-aa20
-rw-r--r--audio/icecast1/patches/patch-ab36
7 files changed, 176 insertions, 0 deletions
diff --git a/audio/icecast1/DESCR b/audio/icecast1/DESCR
new file mode 100644
index 00000000000..78edcf9aa81
--- /dev/null
+++ b/audio/icecast1/DESCR
@@ -0,0 +1,4 @@
+Icecast is an Internet based broadcasting system based on the Mpeg
+Layer III streaming technology. It is, however, not limited to
+streaming mp3 files. It was originally inspired by Nullsoft's
+Shoutcast and also mp3serv by Scott Man ley.
diff --git a/audio/icecast1/Makefile b/audio/icecast1/Makefile
new file mode 100644
index 00000000000..1f391d89e45
--- /dev/null
+++ b/audio/icecast1/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/01/08 20:48:45 xtraeme Exp $
+#
+
+DISTNAME= icecast-1.3.12
+PKGREVISION= 1
+CATEGORIES= audio
+MASTER_SITES= http://www.icecast.org/releases/
+
+MAINTAINER= hubertf@NetBSD.org
+HOMEPAGE= http://www.icecast.org/
+COMMENT= Internet broadcasting system using Mpeg Layer III streaming
+
+USE_BUILDLINK2= # defined
+GNU_CONFIGURE= # defined
+USE_PKGINSTALL= yes
+
+RCD_SCRIPTS= icecast
+PKG_SYSCONFSUBDIR= icecast
+
+CONFIGURE_ARGS+= --with-readline \
+ --with-libwrap \
+ --with-python \
+ --sysconfdir=${PKG_SYSCONFDIR}
+CPPFLAGS+= -I${BUILDLINK_PREFIX.readline}/include/readline
+CPPFLAGS+= ${BUILDLINK_CPPFLAGS.${PYPACKAGE}}
+CFLAGS+= ${PTHREAD_CFLAGS}
+LDFLAGS+= ${PTHREAD_LDFLAGS}
+LDFLAGS+= ${BUILDLINK_LDFLAGS.${PYPACKAGE}}
+LIBS+= -lutil
+PTHREAD_OPTS+= native
+
+EGDIR= ${PREFIX}/share/examples/icecast
+EGFILES= groups.aut mounts.aut users.aut icecast.conf
+
+.for f in ${EGFILES}
+CONF_FILES+= ${EGDIR}/${f}.dist ${PKG_SYSCONFDIR}/${f}
+.endfor
+.undef f
+
+.include "../../devel/readline/buildlink2.mk"
+.include "../../lang/python/application.mk"
+.include "../../security/tcp_wrappers/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
+. include "../../devel/unproven-pthreads/buildlink2.mk"
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/audio/icecast1/PLIST b/audio/icecast1/PLIST
new file mode 100644
index 00000000000..0114007b742
--- /dev/null
+++ b/audio/icecast1/PLIST
@@ -0,0 +1,32 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/01/08 20:48:46 xtraeme Exp $
+bin/icecast
+etc/rc.d/icecast
+share/doc/icecast/manual.html
+share/examples/icecast/groups.aut.dist
+share/examples/icecast/icecast.conf.dist
+share/examples/icecast/mounts.aut.dist
+share/examples/icecast/users.aut.dist
+share/icecast/templates/306.html
+share/icecast/templates/400.html
+share/icecast/templates/403.html
+share/icecast/templates/404.html
+share/icecast/templates/504.html
+share/icecast/templates/admin.html
+share/icecast/templates/admin_change.html
+share/icecast/templates/admin_describe.html
+share/icecast/templates/alias_add.html
+share/icecast/templates/alias_del.html
+share/icecast/templates/bodytag.html
+share/icecast/templates/footer.html
+share/icecast/templates/header.html
+share/icecast/templates/info.html
+share/icecast/templates/list_directory.html
+share/icecast/templates/manual.html
+share/icecast/templates/mountlist.html
+share/icecast/templates/statistics.html
+@dirrm share/icecast/templates
+@exec ${MKDIR} %D/share/icecast/static
+@dirrm share/icecast/static
+@dirrm share/icecast
+@dirrm share/examples/icecast
+@dirrm share/doc/icecast
diff --git a/audio/icecast1/distinfo b/audio/icecast1/distinfo
new file mode 100644
index 00000000000..f6bdb9a8c22
--- /dev/null
+++ b/audio/icecast1/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/01/08 20:48:45 xtraeme Exp $
+
+SHA1 (icecast-1.3.12.tar.gz) = bacb760390453718de536b85979ff3a9a73c7710
+Size (icecast-1.3.12.tar.gz) = 269822 bytes
+SHA1 (patch-aa) = 169202f563e4e2812d8d532264dcdb4f9ffc8df2
+SHA1 (patch-ab) = de33a89e6078721a7e9c3a09515846752e76680e
diff --git a/audio/icecast1/files/icecast.sh b/audio/icecast1/files/icecast.sh
new file mode 100644
index 00000000000..bcc80dbeb9e
--- /dev/null
+++ b/audio/icecast1/files/icecast.sh
@@ -0,0 +1,29 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: icecast.sh,v 1.1.1.1 2004/01/08 20:48:46 xtraeme Exp $
+#
+# PROVIDE: icecast
+# REQUIRE: DAEMON LOGIN network
+
+
+name="icecast"
+command="@PREFIX@/bin/${name}"
+mainconfigfile="@PKG_SYSCONFDIR@/${name}.conf"
+icecast_flags="-c ${mainconfigfile} -d @PKG_SYSCONFDIR@ -b"
+sig_stop="KILL"
+
+
+. /etc/rc.subr
+
+
+pidfile="/var/run/${name}.pid"
+required_files="${mainconfigfile}"
+
+
+load_rc_config $name
+run_rc_command "$1"
+
+
+if [ "$1" != "stop" ]; then
+ echo $(check_process $command) > $pidfile
+fi
diff --git a/audio/icecast1/patches/patch-aa b/audio/icecast1/patches/patch-aa
new file mode 100644
index 00000000000..db172558f82
--- /dev/null
+++ b/audio/icecast1/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/01/08 20:48:46 xtraeme Exp $
+
+--- src/definitions.h.orig Tue Nov 21 02:26:07 2000
++++ src/definitions.h
+@@ -31,6 +31,7 @@
+ # define __USE_BSD
+ #endif
+
++#ifndef __NetBSD__
+ #ifndef __EXTENSIONS__
+ # define __EXTENSIONS__
+ #endif
+@@ -62,6 +63,7 @@
+ # endif
+ #endif
+
++#endif /* __NetBSD__ */
+
+
+
diff --git a/audio/icecast1/patches/patch-ab b/audio/icecast1/patches/patch-ab
new file mode 100644
index 00000000000..a07f4171005
--- /dev/null
+++ b/audio/icecast1/patches/patch-ab
@@ -0,0 +1,36 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/01/08 20:48:46 xtraeme Exp $
+
+--- configure.orig 2002-04-11 00:50:20.000000000 +0200
++++ configure
+@@ -876,16 +876,16 @@ if test "x$enable_fsstd" = "xyes"; then
+ else
+ ICECAST_BINDIR=${prefix}/bin
+ ICECAST_SBINDIR=${prefix}/bin
+- ICECAST_ETCDIR=conf
+- ICECAST_ETCDIR_INST=${prefix}/conf
++ ICECAST_ETCDIR=${sysconfdir}
++ ICECAST_ETCDIR_INST=${prefix}/share/examples/icecast
+ ICECAST_SHAREDIR=${prefix}
+ ICECAST_LOGDIR=logs
+- ICECAST_LOGDIR_INST=${prefix}/logs
++ ICECAST_LOGDIR_INST=/var/log/icecast
+ ICECAST_TEMPLATEDIR=templates
+- ICECAST_TEMPLATEDIR_INST=${prefix}/templates
++ ICECAST_TEMPLATEDIR_INST=${prefix}/share/icecast/templates
+ ICECAST_STATICDIR=static
+- ICECAST_STATICDIR_INST=${prefix}/static
+- ICECAST_DOCDIR=${prefix}/doc
++ ICECAST_STATICDIR_INST=${prefix}/share/icecast/static
++ ICECAST_DOCDIR=${prefix}/share/doc/icecast
+ USE_FSSTD=no
+ fi
+
+@@ -1540,7 +1540,7 @@ EOF
+
+ echo "$ac_t""BSD/OS" 1>&6
+ ;;
+- *BSD*)
++ unused)
+ __SOMEBSD__=yes
+ cat >> confdefs.h <<\EOF
+ #define __SOMEBSD__ 1