summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2004-12-22 01:53:10 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2004-12-22 01:53:10 +0000
commit9bff2a45d31f726f0721ab7f8d102a110d3ec0f0 (patch)
tree341151ccecf23844b73d12fbb964042b7cce7425 /net
parentNew Port x11-fonts/artwiz-aleczapka-de (diff)
New port: net/peercast (a peer-to-peer network for broadcasting and
listening to streams) PeerCast is a new, free way to listen to radio and watch video on the Internet. It uses P2P technology to let anyone become a broadcaster without the costs of traditional streaming. This means you get to hear and watch stations not normally found on commercially funded sites. PR: ports/75373 Submitted by: Jean-Yves Lefort <jylefort@brutele.be>
Notes
Notes: svn path=/head/; revision=124770
Diffstat (limited to 'net')
-rw-r--r--net/Makefile1
-rw-r--r--net/peercast/Makefile39
-rw-r--r--net/peercast/distinfo2
-rw-r--r--net/peercast/files/peercast.in9
-rw-r--r--net/peercast/pkg-descr9
-rw-r--r--net/peercast/pkg-plist64
6 files changed, 124 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 7ecad22a7113..95744126ffc0 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -540,6 +540,7 @@
SUBDIR += pear-SOAP
SUBDIR += pebrot
SUBDIR += pecl-yaz
+ SUBDIR += peercast
SUBDIR += pen
SUBDIR += perldap
SUBDIR += pfflowd
diff --git a/net/peercast/Makefile b/net/peercast/Makefile
new file mode 100644
index 000000000000..fbaca24ccbf2
--- /dev/null
+++ b/net/peercast/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: peercast
+# Date created: 21 Dec 2004
+# Whom: Jean-Yves Lefort <jylefort@brutele.be>
+#
+# $FreeBSD$
+#
+
+PORTNAME= peercast
+PORTVERSION= 0.1211
+CATEGORIES= net multimedia
+MASTER_SITES= http://www.peercast.org/
+DISTNAME= peercast-linux
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jylefort@brutele.be
+COMMENT= A peer-to-peer network for broadcasting and listening to streams
+
+USE_LINUX= yes
+NO_WRKSUBDIR= yes
+
+do-build:
+ ${SED} -e 's|@PREFIX@|${PREFIX}|g; s|@DATADIR@|${DATADIR}|g' \
+ ${FILESDIR}/peercast.in > ${WRKSRC}/peercast.sh
+
+do-install:
+ ${MKDIR} ${PREFIX}/libexec
+ ${INSTALL_PROGRAM} ${WRKSRC}/peercast ${PREFIX}/libexec
+ # rebrand binary (INSTALL_PROGRAM has stripped it)
+ ${BRANDELF} -t Linux ${PREFIX}/libexec/peercast
+.for lang in de en fr ja
+ ${MKDIR} ${DATADIR}/html/${lang}
+ ${INSTALL_DATA} ${WRKSRC}/html/${lang}/*.* ${DATADIR}/html/${lang}
+ ${MKDIR} ${DATADIR}/html/${lang}/images
+ ${INSTALL_DATA} ${WRKSRC}/html/${lang}/images/*.* ${DATADIR}/html/${lang}/images
+.endfor
+ ${MKDIR} ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/peercast.sh ${PREFIX}/bin/peercast
+
+.include <bsd.port.mk>
diff --git a/net/peercast/distinfo b/net/peercast/distinfo
new file mode 100644
index 000000000000..ce5fb9648917
--- /dev/null
+++ b/net/peercast/distinfo
@@ -0,0 +1,2 @@
+MD5 (peercast-linux.tgz) = 896a4201a2a2e90e06779654919e1cd4
+SIZE (peercast-linux.tgz) = 198726
diff --git a/net/peercast/files/peercast.in b/net/peercast/files/peercast.in
new file mode 100644
index 000000000000..b0ec0996b36b
--- /dev/null
+++ b/net/peercast/files/peercast.in
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if [ ! -d "$HOME/.peercast" ]; then
+ mkdir "$HOME/.peercast" || exit 1
+ ln -s "@DATADIR@/html" "@PREFIX@/libexec/peercast" "$HOME/.peercast" || exit 1
+fi
+
+cd "$HOME/.peercast" || exit 1
+exec ./peercast "$@"
diff --git a/net/peercast/pkg-descr b/net/peercast/pkg-descr
new file mode 100644
index 000000000000..a5f32665e331
--- /dev/null
+++ b/net/peercast/pkg-descr
@@ -0,0 +1,9 @@
+PeerCast is a new, free way to listen to radio and watch video on the
+Internet. It uses P2P technology to let anyone become a broadcaster
+without the costs of traditional streaming. This means you get to hear
+and watch stations not normally found on commercially funded sites.
+
+WWW: http://www.peercast.org/
+
+- Jean-Yves Lefort
+jylefort@brutele.be
diff --git a/net/peercast/pkg-plist b/net/peercast/pkg-plist
new file mode 100644
index 000000000000..d5181507bdfe
--- /dev/null
+++ b/net/peercast/pkg-plist
@@ -0,0 +1,64 @@
+bin/peercast
+libexec/peercast
+share/peercast/html/de/broadcast.html
+share/peercast/html/de/chaninfo.html
+share/peercast/html/de/connections.html
+share/peercast/html/de/images/play.png
+share/peercast/html/de/images/small-logo.png
+share/peercast/html/de/index.html
+share/peercast/html/de/login.html
+share/peercast/html/de/logout.html
+share/peercast/html/de/peercast.css
+share/peercast/html/de/relayinfo.html
+share/peercast/html/de/relays.html
+share/peercast/html/de/settings.html
+share/peercast/html/de/viewlog.html
+share/peercast/html/en/broadcast.html
+share/peercast/html/en/chaninfo.html
+share/peercast/html/en/connections.html
+share/peercast/html/en/images/play.png
+share/peercast/html/en/images/small-logo.png
+share/peercast/html/en/index.html
+share/peercast/html/en/login.html
+share/peercast/html/en/logout.html
+share/peercast/html/en/peercast.css
+share/peercast/html/en/relayinfo.html
+share/peercast/html/en/relays.html
+share/peercast/html/en/settings.html
+share/peercast/html/en/viewlog.html
+share/peercast/html/fr/broadcast.html
+share/peercast/html/fr/chaninfo.html
+share/peercast/html/fr/connections.html
+share/peercast/html/fr/images/play.png
+share/peercast/html/fr/images/small-logo.png
+share/peercast/html/fr/index.html
+share/peercast/html/fr/login.html
+share/peercast/html/fr/logout.html
+share/peercast/html/fr/peercast.css
+share/peercast/html/fr/relayinfo.html
+share/peercast/html/fr/relays.html
+share/peercast/html/fr/settings.html
+share/peercast/html/fr/viewlog.html
+share/peercast/html/ja/broadcast.html
+share/peercast/html/ja/chaninfo.html
+share/peercast/html/ja/connections.html
+share/peercast/html/ja/images/play.png
+share/peercast/html/ja/images/small-logo.png
+share/peercast/html/ja/index.html
+share/peercast/html/ja/login.html
+share/peercast/html/ja/logout.html
+share/peercast/html/ja/peercast.css
+share/peercast/html/ja/relayinfo.html
+share/peercast/html/ja/relays.html
+share/peercast/html/ja/settings.html
+share/peercast/html/ja/viewlog.html
+@dirrm share/peercast/html/de/images
+@dirrm share/peercast/html/de
+@dirrm share/peercast/html/en/images
+@dirrm share/peercast/html/en
+@dirrm share/peercast/html/fr/images
+@dirrm share/peercast/html/fr
+@dirrm share/peercast/html/ja/images
+@dirrm share/peercast/html/ja
+@dirrm share/peercast/html
+@dirrm share/peercast