diff options
author | Brendan Fabeny <bf@FreeBSD.org> | 2011-03-09 02:25:09 +0000 |
---|---|---|
committer | Brendan Fabeny <bf@FreeBSD.org> | 2011-03-09 02:25:09 +0000 |
commit | 4d4288ba8c34ba0dc987e46f454dd51b253d5080 (patch) | |
tree | 2dc83aff71f7c1e39f3470dffc5d2003b6ace792 /net | |
parent | 045e10af2495fff8f129cbf4a6e542b78bab6b2b (diff) | |
download | ports-4d4288ba8c34ba0dc987e46f454dd51b253d5080.tar.gz ports-4d4288ba8c34ba0dc987e46f454dd51b253d5080.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/Makefile | 1 | ||||
-rw-r--r-- | net/get_iplayer/Makefile | 73 | ||||
-rw-r--r-- | net/get_iplayer/distinfo | 2 | ||||
-rw-r--r-- | net/get_iplayer/files/get_iplayer.in | 52 | ||||
-rw-r--r-- | net/get_iplayer/pkg-deinstall | 59 | ||||
-rw-r--r-- | net/get_iplayer/pkg-descr | 12 | ||||
-rw-r--r-- | net/get_iplayer/pkg-message | 4 |
7 files changed, 203 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile index ffe51b206767..2d766b11b7d3 100644 --- a/net/Makefile +++ b/net/Makefile @@ -178,6 +178,7 @@ SUBDIR += gatekeeper SUBDIR += gateway6 SUBDIR += generic-nqs + SUBDIR += get_iplayer SUBDIR += ggsd SUBDIR += gini SUBDIR += gkrellmmultiping2 diff --git a/net/get_iplayer/Makefile b/net/get_iplayer/Makefile new file mode 100644 index 000000000000..5862773ad56a --- /dev/null +++ b/net/get_iplayer/Makefile @@ -0,0 +1,73 @@ +# Ports collection Makefile for: get_iplayer +# Date created: 2nd March 2011 +# Whom: Chris Rees <utisoft@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= get_iplayer +PORTVERSION= 2.79 +CATEGORIES= net multimedia +MASTER_SITES= ftp://ftp.infradead.org/pub/${PORTNAME}/ \ + http://www.bayofrum.net/dist/${PORTNAME}/ +PKGNAMEPREFIX= uk- + +MAINTAINER= utisoft@gmail.com +COMMENT= Search, index, or stream archive video from BBC iPlayer + +RUN_DEPENDS= flvstreamer:${PORTSDIR}/multimedia/flvstreamer + +USE_PERL5_RUN= 5.8.0+ +NO_BUILD= yes + +USE_RC_SUBR= ${PORTNAME} + +USERS = get_iplayer +GROUPS = get_iplayer + +MAN1= get_iplayer.1 + +SCRIPTS= ${PORTNAME} ${PORTNAME}.cgi +PLIST_FILES= bin/${PORTNAME} ${SCRIPTS:C,^,${WWWDIR_REL}/,} + +.if !defined(NOPORTDATA) +DATADIR= ${WWWDIR} +PORTDATA= html plugins +.else +PLIST_DIRS= ${WWWDIR_REL} +.endif + +.if !defined(NOPORTDOCS) +PORTDOCS= CHANGELOG-get_iplayer.cgi.txt CHANGELOG.txt \ + README-get_iplayer.cgi.txt README.txt web.sh +.endif + +post-patch: + ${REINPLACE_CMD} -e "s|/usr/bin/get_iplayer|${PREFIX}/bin/${PORTNAME}|" \ + ${WRKSRC}/README-get_iplayer.cgi.txt ${WRKSRC}/get_iplayer.cgi + ${REINPLACE_CMD} -e "s|/usr/bin/|${LOCALBASE}/bin|" \ + ${WRKSRC}/README-get_iplayer.cgi.txt + ${REINPLACE_CMD} -e "s|/usr/share/get_iplayer|${WWWDIR}|" \ + ${WRKSRC}/get_iplayer + +do-install: + @${MKDIR} ${WWWDIR} + @(cd ${WRKSRC}; ${INSTALL_SCRIPT} ${SCRIPTS} ${WWWDIR}) + @${LN} -sf ${WWWDIR}/${PORTNAME} ${PREFIX}/bin/${PORTNAME} + @${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1 +.if !defined(NOPORTDATA) +.for DIR in html plugins + @(cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIR} ${WWWDIR}) +.endfor +.endif +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @(cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}) +.endif + +post-install: + @${ECHO_MSG} "" + @${CAT} ${PKGMESSAGE} + @${ECHO_MSG} "" + +.include <bsd.port.mk> diff --git a/net/get_iplayer/distinfo b/net/get_iplayer/distinfo new file mode 100644 index 000000000000..2d82aa9c1e7d --- /dev/null +++ b/net/get_iplayer/distinfo @@ -0,0 +1,2 @@ +SHA256 (get_iplayer-2.79.tar.gz) = 7abb73f8e6bfe9618eb0e3cf135f4ab0d6a2d17a52e7502800888c278b6a52c2 +SIZE (get_iplayer-2.79.tar.gz) = 226627 diff --git a/net/get_iplayer/files/get_iplayer.in b/net/get_iplayer/files/get_iplayer.in new file mode 100644 index 000000000000..e20aac1646c1 --- /dev/null +++ b/net/get_iplayer/files/get_iplayer.in @@ -0,0 +1,52 @@ +#!/bin/sh + +# $FreeBSD$ +# +# PROVIDE: get_iplayer +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to +# enable get_iplayer: +# get_iplayer_enable (bool): Set to "NO" by default. +# get_iplayer_chdir (string): Set to "/tmp" by default; this is where +# downloaded files are stored. Should be writable +# by get_iplayer user. +# get_iplayer_flags (string): Set to "" by default. +# get_iplayer_bind_port (number): Set to 9370 by default. +# get_iplayer_listen_address (IP address): Set to 127.0.0.1 by default. +# +########################################################## +## WARNING: +## For security reasons, do NOT set get_iplayer_bind_port +## unless your box is firewalled to allow only connections +## from your local subnet. It is safest to use SSH +## tunnelling if remote access is needed. +########################################################## + + +. /etc/rc.subr + +name="get_iplayer" +rcvar=`set_rcvar` + +load_rc_config $name + +: ${get_iplayer_enable="NO"} +: ${get_iplayer_bind_port="9370"} +: ${get_iplayer_listen_address="127.0.0.1"} +: ${get_iplayer_chdir="/tmp"} + +command="/usr/sbin/daemon" +command_args="-f -u ${name} -p /var/run/${name}/${name}.pid %%WWWDIR%%/${name}.cgi -p ${get_iplayer_bind_port} -l ${get_iplayer_listen_address} --getiplayer %%WWWDIR%%/${name}" +procname="/usr/bin/perl" +pidfile="/var/run/${name}/${name}.pid" + +start_precmd="${name}_prestart" + +get_iplayer_prestart() +{ + install -d -o ${name} -m755 /var/run/${name} +} + +run_rc_command "$1" diff --git a/net/get_iplayer/pkg-deinstall b/net/get_iplayer/pkg-deinstall new file mode 100644 index 000000000000..2d8fffc56f28 --- /dev/null +++ b/net/get_iplayer/pkg-deinstall @@ -0,0 +1,59 @@ +#! /bin/sh +# +# taken from net/cvsup-mirror + +PATH=/bin:/usr/sbin + +ask() { + local question default answer + + question=$1 + default=$2 + if [ -z "${PACKAGE_BUILDING}" -a -z "${BATCH}" ]; then + read -p "${question} [${default}]? " answer + fi + if [ x${answer} = x ]; then + answer=${default} + fi + echo ${answer} +} + +yesno() { + local dflt question answer + + question=$1 + dflt=$2 + while :; do + answer=$(ask "${question}" "${dflt}") + case "${answer}" in + [Yy]*) return 0;; + [Nn]*) return 1;; + esac + echo "Please answer yes or no." + done +} + +delete_account() { + local u g home + + u=$1 + g=$2 + if yesno "Do you want me to remove group \"${g}\"" y; then + pw groupdel -n ${g} + echo "Done." + fi + if yesno "Do you want me to remove user \"${u}\"" y; then + eval home=~${u} + pw userdel -n ${u} + echo "Done." + if [ -d "${home}" ]; then + echo "Please remember to remove the home directory \"${home}\"" + fi + fi +} + +if [ x$2 != xDEINSTALL ]; then + exit +fi + +delete_account get_iplayer get_iplayer diff --git a/net/get_iplayer/pkg-descr b/net/get_iplayer/pkg-descr new file mode 100644 index 000000000000..ca78e38bd480 --- /dev/null +++ b/net/get_iplayer/pkg-descr @@ -0,0 +1,12 @@ +This tool allows you to search, index, and record/stream: + +BBC iPlayer TV - up to 3200 kbps HD 720p H.264 / Quicktime / MP4 +BBC Live TV - 500 kbps H.264 / MP4 +BBC iPlayer Radio - up to 192 kbps MP3 / AAC and Realaudio +BBC Live Radio - up to 192 kbps MP3 / AAC, WMA and Realaudio +BBC Podcasts - up to 192 kbps MP3 / AAC +BBC iPlayer TV subtitles - SubRip / srt + +None of the above content is /protected/ by DRM. get_iplayer cannot remove DRM. + +WWW: http://www.infradead.org/get_iplayer/ diff --git a/net/get_iplayer/pkg-message b/net/get_iplayer/pkg-message new file mode 100644 index 000000000000..ef8934b014e7 --- /dev/null +++ b/net/get_iplayer/pkg-message @@ -0,0 +1,4 @@ +===================== NOTE ====================== +You must be in the UK, or use a UK proxy, to gain +access to most iPlayer content. +================================================= |