View | Details | Raw Unified | Return to bug 247750
Collapse All | Expand All

(-)./Makefile (-1 / +2 lines)
Lines 1-7 Link Here
1
# $FreeBSD: head/multimedia/get_iplayer/Makefile 536396 2020-05-24 12:54:33Z tagattie $
1
# $FreeBSD: head/multimedia/get_iplayer/Makefile 536396 2020-05-24 12:54:33Z tagattie $
2
2
3
PORTNAME=	get_iplayer
3
PORTNAME=	get_iplayer
4
PORTVERSION=	3.25
4
PORTVERSION=	3.26
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
CATEGORIES=	multimedia net
6
CATEGORIES=	multimedia net
7
7
Lines 37-42 Link Here
37
PORTDOCS=	CHANGELOG.md README.md
37
PORTDOCS=	CHANGELOG.md README.md
38
38
39
OPTIONS_DEFINE=	DOCS FFMPEG ATOMICPARSLEY
39
OPTIONS_DEFINE=	DOCS FFMPEG ATOMICPARSLEY
40
OPTIONS_DEFAULT=	FFMPEG ATOMICPARSLEY
40
FFMPEG_DESC=	Enable file conversion using FFmpeg
41
FFMPEG_DESC=	Enable file conversion using FFmpeg
41
FFMPEG_RUN_DEPENDS=	ffmpeg>=0:multimedia/ffmpeg
42
FFMPEG_RUN_DEPENDS=	ffmpeg>=0:multimedia/ffmpeg
42
ATOMICPARSLEY_DESC=	Enable tagging of media files
43
ATOMICPARSLEY_DESC=	Enable tagging of media files
(-)./distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1589850320
1
TIMESTAMP = 1593606427
2
SHA256 (get-iplayer-get_iplayer-v3.25_GH0.tar.gz) = 2ae278a812494d6289224e6d347c8761ec815ad84f4daf41fd0a4f62832b7d63
2
SHA256 (get-iplayer-get_iplayer-v3.26_GH0.tar.gz) = 2ec105ccb47910d7f3ff7124ecaa839a8778837c12881358e627a132ba027b06
3
SIZE (get-iplayer-get_iplayer-v3.25_GH0.tar.gz) = 146625
3
SIZE (get-iplayer-get_iplayer-v3.26_GH0.tar.gz) = 148415
(-)./files/get_iplayer.in (-9 / +20 lines)
Lines 9-20 Link Here
9
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
9
# Add the following lines to /etc/rc.conf or /etc/rc.conf.local to
10
# enable get_iplayer:
10
# enable get_iplayer:
11
# get_iplayer_enable (bool):	Set to "NO" by default.
11
# get_iplayer_enable (bool):	Set to "NO" by default.
12
# get_iplayer_chdir (string):	Set to "/tmp" by default; this is where
13
#				downloaded files are stored. Should be writable
14
#				by get_iplayer user.
15
# get_iplayer_flags (string):	Set to "" by default.
12
# get_iplayer_flags (string):	Set to "" by default.
16
# get_iplayer_bind_port (number):	Set to 9370 by default.
13
# get_iplayer_logfile (string):	Server info messages logfile. Set to ""
17
# get_iplayer_listen_address (IP address):	Set to 127.0.0.1 by default.
14
#				(no logging) by default.
15
# get_iplayer_chdir (string):	Set to the "get_iplayer" home directory
16
#				by default; this is where downloaded
17
#				files are stored. It should be
18
#				writeable by the get_iplayer user.
19
# get_iplayer_listen_address
20
#               (IP address):	Set to 127.0.0.1 by default.
21
# get_iplayer_bind_port
22
#              (number):	Set to 9370 by default.
18
#
23
#
19
##########################################################
24
##########################################################
20
## WARNING:
25
## WARNING:
Lines 34-46 Link Here
34
load_rc_config $name
39
load_rc_config $name
35
40
36
: ${get_iplayer_enable:=NO}
41
: ${get_iplayer_enable:=NO}
37
: ${get_iplayer_bind_port=9370}
42
: ${get_iplayer_flags=""}
43
: ${get_iplayer_chdir="$(pw usershow get_iplayer | awk -F: '{print $9}')"}
38
: ${get_iplayer_listen_address=127.0.0.1}
44
: ${get_iplayer_listen_address=127.0.0.1}
39
: ${get_iplayer_chdir=/tmp}
45
: ${get_iplayer_bind_port=9370}
40
46
47
get_iplayer_logfile="${get_iplayer_logfile:+"-o $get_iplayer_logfile"}"
48
41
command=/usr/sbin/daemon
49
command=/usr/sbin/daemon
42
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}"
50
export HOME="$get_iplayer_chdir"
43
procname=/usr/bin/perl
51
cd "$HOME" || exit 1
52
command_args="-f ${get_iplayer_logfile} -u ${name} -p /var/run/${name}/${name}.pid %%WWWDIR%%/${name}.cgi -p ${get_iplayer_bind_port} -l ${get_iplayer_listen_address} --getiplayer %%WWWDIR%%/${name} ${get_iplayer_flags}"
53
get_iplayer_flags="" # This is needed to stop the flags being applied to the 'daemon' program.
54
procname=/usr/local/bin/perl
44
pidfile=/var/run/${name}/${name}.pid
55
pidfile=/var/run/${name}/${name}.pid
45
56
46
start_precmd="install -d -o ${name} -m755 /var/run/${name}"
57
start_precmd="install -d -o ${name} -m755 /var/run/${name}"
(-)./pkg-message (-2 / +10 lines)
Lines 1-8 Link Here
1
[
1
[
2
{ type: install
2
{ type: install
3
  message: <<EOM
3
  message: <<EOM
4
You must be in the UK, or use a UK proxy, to gain
4
You must be in the UK, or use a UK proxy, to gain access to most iPlayer content.
5
access to most iPlayer content.
5
6
To use the web server cgi script, you must set "get_iplayer_enable="YES" in
7
"/etc/rc.conf", and set "get_iplayer_chdir" to a valid directory to store
8
configuration files and downloads. If "get_iplayer_chdir" is unset, the
9
"get_uplayer" home directory is used.
10
11
In the latter case you can set the home directory to (eg) '/home/get_iplayer", with:
12
13
pw usermod get_iplayer -m -M 750 -k /var/empty -d /home/get_iplayer
6
EOM
14
EOM
7
}
15
}
8
]
16
]

Return to bug 247750