Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Mar 2011 21:13:32 GMT
From:      Chris Rees <utisoft@gmail.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/155277: New port: net/uk-get_iplayer Archives BBC iPlayer videos & has CGI interface
Message-ID:  <201103042113.p24LDWOq058978@zeus.bayofrum.net>
Resent-Message-ID: <201103042120.p24LKBdU065740@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         155277
>Category:       ports
>Synopsis:       New port: net/uk-get_iplayer Archives BBC iPlayer videos & has CGI interface
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 04 21:20:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Chris Rees
>Release:        FreeBSD 8.1-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD zeus.bayofrum.net 8.1-RELEASE-p2 FreeBSD 8.1-RELEASE-p2 #0: Wed Feb 23 16:10:57 UTC 2011 root@zeus.bayofrum.net:/usr/obj/usr/src/sys/ZEUS i386


	
>Description:
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/
>How-To-Repeat:
>Fix:

	The PKGNAMEPREFIX of uk- was discussed on IRC, and it was decided that this would be sensible since it's only useful if the BBC website believes you're based in the UK.

	This is also posted at http://www.bayofrum.net/~crees/patches/get_iplayer.diff as a diff to /nonexistant.

	A patch to UIDs and GIDs is necessary; http://www.bayofrum.net/~crees/patches/get_iplayer-UIDs-GIDs.diff

	Install/deinstall is tested here: http://www.bayofrum.net/tb/index.php?action=display_markup_log&build=9-FreeBSD&id=106

--- get_iplayer.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	uk-get_iplayer
#	uk-get_iplayer/pkg-descr
#	uk-get_iplayer/files
#	uk-get_iplayer/files/pkg-message.in
#	uk-get_iplayer/files/get_iplayer.in
#	uk-get_iplayer/Makefile
#	uk-get_iplayer/distinfo
#	uk-get_iplayer/pkg-plist
#
echo c - uk-get_iplayer
mkdir -p uk-get_iplayer > /dev/null 2>&1
echo x - uk-get_iplayer/pkg-descr
sed 's/^X//' >uk-get_iplayer/pkg-descr << '1020640285d3304413a1c3bb18bc4d0a'
XThis tool allows you to search, index and record/stream:
X
XBBC iPlayer TV - up to 3200 kbps HD 720p H.264 / Quicktime / MP4
XBBC Live TV - 500 kbps H.264 / MP4
XBBC iPlayer Radio - up to 192 kbps MP3 / AAC and Realaudio
XBBC Live Radio - up to 192 kbps MP3 / AAC, WMA and Realaudio
XBBC Podcasts - up to 192 kbps MP3 / AAC
XBBC iPlayer TV subtitles - SubRip / srt
X
XNone of the above content is /protected/ by DRM. get_iplayer cannot remove DRM.
X
XWWW: http://www.infradead.org/get_iplayer/
1020640285d3304413a1c3bb18bc4d0a
echo c - uk-get_iplayer/files
mkdir -p uk-get_iplayer/files > /dev/null 2>&1
echo x - uk-get_iplayer/files/pkg-message.in
sed 's/^X//' >uk-get_iplayer/files/pkg-message.in << '0b50c3f9bc9536e45154643ca5c0f19a'
X
X=== NOTE ===
XIf you are experiencing problems with using %%PORTNAME%%
Xplease note that you MUST appear to be UK-based; this
Xmeans that you have to be in the UK or using a UK 
Xproxy.
X
0b50c3f9bc9536e45154643ca5c0f19a
echo x - uk-get_iplayer/files/get_iplayer.in
sed 's/^X//' >uk-get_iplayer/files/get_iplayer.in << '4a3e21866de5a09d07848bcd6ca3b82e'
X#!/bin/sh
X
X# $FreeBSD$
X#
X# PROVIDE: %%PORTNAME%%
X# REQUIRE: LOGIN
X#
X# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
X# enable %%PORTNAME%%:
X# %%PORTNAME%%_enable (bool):	Set to "NO" by default.
X# %%PORTNAME%%_chdir (string):	Set to "/tmp" by default; this is where
X#				downloaded files are stored. Should be writable
X#				by %%PORTNAME%% user.
X# %%PORTNAME%%_flags (string):	Set to "" by default.
X# %%PORTNAME%%_bind_port (number):	Set to 9370 by default.
X# %%PORTNAME%%_listen_address (IP address):	Set to 127.0.0.1 by default.
X#
X##########################################################
X## WARNING:						##
X## Do NOT set %%PORTNAME%%_bind_port unless your box is	##
X## firewalled to allow only connections from your local	##
X## subnet; there is NO GUARANTEE of security; indeed	##
X## the converse is assured. Safest to use SSH		##
X## tunnelling if remote access is needed.		##
X##########################################################
X
X
X. /etc/rc.subr
X
Xname="%%PORTNAME%%"
Xrcvar=`set_rcvar`
X
Xload_rc_config $name
X
X: ${%%PORTNAME%%_enable="NO"}
X: ${%%PORTNAME%%_flags=""}
X: ${%%PORTNAME%%_bind_port="9370"}
X: ${%%PORTNAME%%_listen_address="127.0.0.1"}
X: ${%%PORTNAME%%_chdir="/tmp"}
X
Xcommand="/usr/sbin/daemon"
Xcommand_args="-f -u ${name} -p /var/run/${name}/${name}.pid %%DATADIR%%/${name}.cgi -p ${%%PORTNAME%%_bind_port} -l ${%%PORTNAME%%_listen_address} --getiplayer %%DATADIR%%/${name}"
Xprocname="/usr/bin/perl"
Xpidfile="/var/run/${name}/${name}.pid"
X
Xstart_precmd="${name}_prestart"
X
X%%PORTNAME%%_prestart()
X{
X	install -d -o ${name} -m755 /var/run/${name}
X}
X
Xrun_rc_command "$1"
4a3e21866de5a09d07848bcd6ca3b82e
echo x - uk-get_iplayer/Makefile
sed 's/^X//' >uk-get_iplayer/Makefile << 'd2d915bca66da3cbb077abecd7c37bb7'
X# Ports collection Makefile for:	get_iplayer
X# Date created:				2nd March 2011
X# Whom:					Chris Rees <utisoft@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	get_iplayer
XPORTVERSION=	2.79
XCATEGORIES=	net multimedia
XMASTER_SITES=	ftp://ftp.infradead.org/pub/${PORTNAME}/ \
X		http://www.bayofrum.net/dist/${PORTNAME}/
XPKGNAMEPREFIX=	uk-
X
XMAINTAINER=	utisoft@gmail.com
XCOMMENT=	Archive video from BBC iPlayer
X
XRUN_DEPENDS=	flvstreamer:${PORTSDIR}/multimedia/flvstreamer
X
XUSE_PERL5_RUN=	5.8.0+
XNO_BUILD=	yes
X
XUSE_RC_SUBR=	${PORTNAME}
XSUB_LIST=	PORTNAME=${PORTNAME}
XSUB_FILES=	pkg-message
X
XUSERS=	get_iplayer
XGROUPS=	get_iplayer
X
XMAN1=	get_iplayer.1
X
Xdo-install:
X	@${MKDIR} ${DATADIR}
X.for FILE in ${PORTNAME} ${PORTNAME}.cgi web.sh make-nsis.sh
X	@${INSTALL_SCRIPT} ${WRKSRC}/${FILE} ${DATADIR}
X.endfor
X.for DIR in html plugins
X	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${DIR} ${DATADIR})
X.endfor
X	@${LN} -sf ${DATADIR}/${PORTNAME} ${PREFIX}/bin
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
X	@${MKDIR} ${DOCSDIR}
X.    for FILE in CHANGELOG-get_iplayer.cgi.txt CHANGELOG.txt README-get_iplayer.cgi.txt README.txt
X	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
X.    endfor
X.endif
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
d2d915bca66da3cbb077abecd7c37bb7
echo x - uk-get_iplayer/distinfo
sed 's/^X//' >uk-get_iplayer/distinfo << 'bdc4733405306641a9db4c31f87711c9'
XSHA256 (get_iplayer-2.79.tar.gz) = 7abb73f8e6bfe9618eb0e3cf135f4ab0d6a2d17a52e7502800888c278b6a52c2
XSIZE (get_iplayer-2.79.tar.gz) = 226627
bdc4733405306641a9db4c31f87711c9
echo x - uk-get_iplayer/pkg-plist
sed 's/^X//' >uk-get_iplayer/pkg-plist << '19e687c8b73f69b81a7266fb97a2d5e1'
Xbin/get_iplayer
X%%DATADIR%%/get_iplayer
X%%DATADIR%%/get_iplayer.cgi
X%%DATADIR%%/web.sh
X%%DATADIR%%/make-nsis.sh
X%%DATADIR%%/html/get_iplayer.html
X%%DATADIR%%/html/getiplayer.jpg
X%%DATADIR%%/plugins/localfiles.plugin
X%%DATADIR%%/plugins/plugin.template
X%%DATADIR%%/plugins/podcast.plugin
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG-get_iplayer.cgi.txt
X%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG.txt
X%%PORTDOCS%%%%DOCSDIR%%/README-get_iplayer.cgi.txt
X%%PORTDOCS%%%%DOCSDIR%%/README.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrm %%DATADIR%%/html
X@dirrm %%DATADIR%%/plugins
X@dirrm %%DATADIR%%
19e687c8b73f69b81a7266fb97a2d5e1
exit
--- get_iplayer.shar ends here ---




>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103042113.p24LDWOq058978>