summaryrefslogtreecommitdiff
path: root/net/get_iplayer
diff options
context:
space:
mode:
authorshattered <shattered@pkgsrc.org>2014-11-11 21:49:01 +0000
committershattered <shattered@pkgsrc.org>2014-11-11 21:49:01 +0000
commit420d013c590cb0738c5401b624e07069a2f48424 (patch)
treedf6aab4c94b4eabc032fc5e7c14669c1f919e19a /net/get_iplayer
parent9655a67e208ccbc3b85acd0332357b5fc5f2beac (diff)
downloadpkgsrc-420d013c590cb0738c5401b624e07069a2f48424.tar.gz
Import get_iplayer-2.90 as net/get_iplayer.
This tool allows you to search, index and record/stream: * BBC iPlayer TV * BBC iPlayer TV subtitles * BBC iPlayer Radio * BBC Live TV * BBC Live Radio * BBC Podcasts
Diffstat (limited to 'net/get_iplayer')
-rw-r--r--net/get_iplayer/DESCR8
-rw-r--r--net/get_iplayer/MESSAGE7
-rw-r--r--net/get_iplayer/Makefile41
-rw-r--r--net/get_iplayer/PLIST4
-rw-r--r--net/get_iplayer/distinfo7
-rw-r--r--net/get_iplayer/files/options.default2
-rw-r--r--net/get_iplayer/patches/patch-aa28
-rw-r--r--net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi15
8 files changed, 112 insertions, 0 deletions
diff --git a/net/get_iplayer/DESCR b/net/get_iplayer/DESCR
new file mode 100644
index 00000000000..e13debab0de
--- /dev/null
+++ b/net/get_iplayer/DESCR
@@ -0,0 +1,8 @@
+This tool allows you to search, index and record/stream:
+
+ * BBC iPlayer TV
+ * BBC iPlayer TV subtitles
+ * BBC iPlayer Radio
+ * BBC Live TV
+ * BBC Live Radio
+ * BBC Podcasts
diff --git a/net/get_iplayer/MESSAGE b/net/get_iplayer/MESSAGE
new file mode 100644
index 00000000000..46e64fabab0
--- /dev/null
+++ b/net/get_iplayer/MESSAGE
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+This tool can use an external player (mplayer, vlc or xine) and transcoder
+(ffmpeg). These are optional and thus not included in dependencies.
+
+===========================================================================
diff --git a/net/get_iplayer/Makefile b/net/get_iplayer/Makefile
new file mode 100644
index 00000000000..459c631ceee
--- /dev/null
+++ b/net/get_iplayer/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+DISTNAME= get_iplayer-2.90
+CATEGORIES= net multimedia
+MASTER_SITES= ftp://ftp.infradead.org/pub/get_iplayer/
+
+MAINTAINER= shattered@NetBSD.org
+HOMEPAGE= http://www.infradead.org/get_iplayer/html/get_iplayer.html
+COMMENT= Search, index, record or stream BBC iPlayer broadcasts
+LICENSE= gnu-gpl-v3
+
+DEPENDS+= p5-HTML-Parser>=3.0:../../www/p5-HTML-Parser
+DEPENDS+= p5-HTTP-Cookies>=6.0:../../www/p5-HTTP-Cookies
+DEPENDS+= p5-HTTP-Date>=6.0:../../www/p5-HTTP-Date
+DEPENDS+= p5-libwww>=6.0:../../www/p5-libwww
+DEPENDS+= rtmpdump>=1.8:../../net/rtmpdump
+DEPENDS+= flvstreamer>=1.8:../../wip/flvstreamer
+
+INSTALLATION_DIRS= bin ${PKGMANDIR}/man1
+
+USE_LANGUAGES= # none
+NO_BUILD= yes
+REPLACE_PERL= get_iplayer
+
+SUBST_CLASSES+= prefix
+SUBST_STAGE.prefix= post-patch
+SUBST_MESSAGE.prefix= Fixup config and plugin paths
+SUBST_FILES.prefix= get_iplayer
+SUBST_SED.prefix= -e s:@PREFIX@:${PREFIX}:
+
+PKG_SYSCONFSUBDIR= get_iplayer
+EGDIR= ${PREFIX}/share/examples/get_iplayer
+CONF_FILES= ${EGDIR}/options ${PKG_SYSCONFDIR}/options
+INSTALLATION_DIRS+= ${EGDIR}
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/get_iplayer ${DESTDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/get_iplayer.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+ ${INSTALL_DATA} ${FILESDIR}/options.default ${DESTDIR}${EGDIR}/options
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/get_iplayer/PLIST b/net/get_iplayer/PLIST
new file mode 100644
index 00000000000..f23f5b60071
--- /dev/null
+++ b/net/get_iplayer/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2014/11/11 21:49:01 shattered Exp $
+bin/get_iplayer
+man/man1/get_iplayer.1
+share/examples/get_iplayer/options
diff --git a/net/get_iplayer/distinfo b/net/get_iplayer/distinfo
new file mode 100644
index 00000000000..3920cb7bd9a
--- /dev/null
+++ b/net/get_iplayer/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+SHA1 (get_iplayer-2.90.tar.gz) = 59b9330886fa8352b84e05214933439ac917228e
+RMD160 (get_iplayer-2.90.tar.gz) = e409cbfff138375d0efaefd080d44b925cba8cb1
+Size (get_iplayer-2.90.tar.gz) = 263109 bytes
+SHA1 (patch-aa) = c2988b800c3d46b38195c53d266737df0517cd46
+SHA1 (patch-windows_get_iplayer_setup.cgi) = 1f87f0bb74c5883e875cb7676dfd61461dc2cbd0
diff --git a/net/get_iplayer/files/options.default b/net/get_iplayer/files/options.default
new file mode 100644
index 00000000000..646963c1388
--- /dev/null
+++ b/net/get_iplayer/files/options.default
@@ -0,0 +1,2 @@
+packagemanager = disable
+
diff --git a/net/get_iplayer/patches/patch-aa b/net/get_iplayer/patches/patch-aa
new file mode 100644
index 00000000000..37a5d1a2a9c
--- /dev/null
+++ b/net/get_iplayer/patches/patch-aa
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+- Sort out directories
+
+--- get_iplayer.orig 2014-10-18 11:39:56.000000000 +0000
++++ get_iplayer
+@@ -407,10 +407,10 @@ if ( defined $ENV{GETIPLAYERSYSPREFS} )
+ $optfile_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/options';
+ # System options on unix-like systems
+ } else {
+- $optfile_system = '/etc/get_iplayer/options';
++ $optfile_system = '@PREFIX@/etc/get_iplayer/options';
+ # Show warning if this deprecated location exists and is not a symlink
+ if ( -f '/var/lib/get_iplayer/options' && ! -l '/var/lib/get_iplayer/options' ) {
+- logger "WARNING: System-wide options file /var/lib/get_iplayer/options will be deprecated in future, please use /etc/get_iplayer/options instead\n";
++ logger "WARNING: System-wide options file /var/lib/get_iplayer/options will be deprecated in future, please use @PREFIX@/etc/get_iplayer/options instead\n";
+ }
+ }
+ # Make profile dir if it doesnt exist
+@@ -422,7 +422,7 @@ my $plugin_dir_system;
+ if ( defined $ENV{ALLUSERSPROFILE} ) {
+ $plugin_dir_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/plugins';
+ } else {
+- $plugin_dir_system = '/usr/share/get_iplayer/plugins';
++ $plugin_dir_system = '@PREFIX@/share/get_iplayer/plugins';
+ }
+ my $plugin_dir_user = "$profile_dir/plugins";
+ for my $plugin_dir ( ( $plugin_dir_user, $plugin_dir_system ) ) {
diff --git a/net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi b/net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi
new file mode 100644
index 00000000000..0387e58162b
--- /dev/null
+++ b/net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi
@@ -0,0 +1,15 @@
+$NetBSD: patch-windows_get_iplayer_setup.cgi,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+test(1) uses = for string comparison.
+
+--- windows/get_iplayer_setup.cgi.orig 2012-06-02 16:37:17.000000000 +0000
++++ windows/get_iplayer_setup.cgi
+@@ -32,7 +32,7 @@ case "$QUERY_STRING" in
+ ;;
+ esac
+
+-if [ "$TARGET" == "" ]; then
++if [ "$TARGET" = "" ]; then
+ cat <<EOF
+ Content-Type: text/html
+