mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
Port was broken following recent python updates.
- remove dependency on python 2.5 version - add additional patches needed due to python Twisted library updates - fix rc.d script PR: ports/152965 Submitted by: J.R. Oldroyd <fbsd@opal.com> (maintainer) Feature safe: yes
This commit is contained in:
parent
8e6c12e746
commit
9330dffc5a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=268043
@ -7,7 +7,7 @@
|
||||
|
||||
PORTNAME= freevo
|
||||
PORTVERSION= 1.9.0
|
||||
PORTREVISION= 3
|
||||
PORTREVISION= 4
|
||||
CATEGORIES= multimedia
|
||||
MASTER_SITES= SF/${PORTNAME}/Freevo%20releases/${PORTVERSION}
|
||||
|
||||
@ -35,7 +35,8 @@ FREEVO_UID= 523
|
||||
FREEVO_GID= ${FREEVO_UID}
|
||||
FREEVO_HOME= /var/db/${FREEVO_USER}
|
||||
|
||||
SUB_LIST+= PORTVERSION=${PORTVERSION} \
|
||||
SUB_LIST+= PYTHON_VERSION=${PYTHON_DEFAULT_VERSION} \
|
||||
PORTVERSION=${PORTVERSION} \
|
||||
FREEVO_USER=${FREEVO_USER} \
|
||||
FREEVO_GROUP=${FREEVO_GROUP} \
|
||||
FREEVO_UID=${FREEVO_UID} \
|
||||
@ -68,6 +69,10 @@ post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/etc/freevo|${PREFIX}/etc/freevo|' ${WRKSRC}/freevo_config.py
|
||||
@${REINPLACE_CMD} -e 's|/etc/freevo|${PREFIX}/etc/freevo|' ${WRKSRC}/local_conf.py.example
|
||||
@${MV} ${WRKSRC}/src/www/htdocs/favorites.rpy.orig ${WRKDIR}
|
||||
@${MV} ${WRKSRC}/src/www/htdocs/search.rpy.orig ${WRKDIR}
|
||||
@${RM} ${WRKSRC}/src/www/htdocs/fileinfo.rpy.orig ${WRKSRC}/src/www/htdocs/guide.rpy.orig \
|
||||
${WRKSRC}/src/www/htdocs/guidechannel.rpy.orig ${WRKSRC}/src/www/htdocs/proginfo.rpy.orig \
|
||||
${WRKSRC}/src/www/htdocs/vlcwin.rpy.orig
|
||||
|
||||
post-install:
|
||||
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
@ -1,3 +1,2 @@
|
||||
MD5 (freevo-1.9.0.tar.gz) = aeb05e52f996258386af2951688bf6e3
|
||||
SHA256 (freevo-1.9.0.tar.gz) = e3c97e1404bc5a171350d0c0edf8decaa6d4eb3eaa9e42112a903d375aaf8722
|
||||
SIZE (freevo-1.9.0.tar.gz) = 27182867
|
||||
|
@ -1,55 +1,78 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
# PROVIDE: freevo
|
||||
# REQUIRE: DAEMON lircd
|
||||
# REQUIRE: LOGIN
|
||||
# KEYWORD: shutdown
|
||||
#
|
||||
|
||||
# Uses the following /etc/rc.conf variables:
|
||||
# freevo_enable="YES" master on/off
|
||||
# freevo_recordserver_enable="YES" start freevo record server
|
||||
# freevo_webserver_enable="YES" start freevo web server
|
||||
# freevo_gui_enable="YES" start freevo GUI
|
||||
#
|
||||
|
||||
. /etc/rc.subr
|
||||
|
||||
name=freevo
|
||||
rcvar=`set_rcvar`
|
||||
|
||||
load_rc_config $name
|
||||
: ${freevo_enable="NO"}
|
||||
: ${freevo_recordserver_enable="NO"}
|
||||
: ${freevo_webserver_enable="NO"}
|
||||
: ${freevo_gui_enable="NO"}
|
||||
load_rc_config ${name}
|
||||
: ${freevo_enable:="NO"}
|
||||
: ${freevo_recordserver_enable:="NO"}
|
||||
: ${freevo_webserver_enable:="NO"}
|
||||
: ${freevo_gui_enable:="NO"}
|
||||
|
||||
freevo_user=${freevo_user:-"freevo"}
|
||||
freevo_group=${freevo_group:-"freevo"}
|
||||
freevo_uid=`pw usershow ${freevo_user} | awk -F: '{print $3}'`
|
||||
freevo_dir=`pw usershow ${freevo_user} | awk -F: '{print $9}'`
|
||||
|
||||
command=%%PREFIX%%/bin/freevo
|
||||
command_interpreter="%%PREFIX%%/bin/python2.5"
|
||||
command="%%PREFIX%%/bin/freevo"
|
||||
command_interpreter="%%PREFIX%%/bin/%%PYTHON_VERSION%%"
|
||||
|
||||
cd ${freevo_dir}
|
||||
|
||||
msg() {
|
||||
case "${no_msg}" in
|
||||
1) ;;
|
||||
*) echo "$@" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
freevo_start() {
|
||||
[ ${freevo_recordserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon recordserver" && msg Starting freevo recordserver.
|
||||
[ ${freevo_webserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon webserver" && msg Starting freevo webserver.
|
||||
[ ${freevo_gui_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon" && msg Starting freevo GUI.
|
||||
}
|
||||
|
||||
|
||||
freevo_stop() {
|
||||
[ ${freevo_gui_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop" && msg Stopping freevo GUI.
|
||||
[ ${freevo_webserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop webserver" && msg Stopping freevo webserver.
|
||||
[ ${freevo_recordserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop recordserver" && msg Stopping freevo recordserver.
|
||||
}
|
||||
|
||||
no_msg=""
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
[ ${freevo_recordserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon recordserver"
|
||||
[ ${freevo_webserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon webserver"
|
||||
[ ${freevo_gui_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon"
|
||||
start|faststart|onestart)
|
||||
freevo_start
|
||||
;;
|
||||
stop)
|
||||
[ ${freevo_recordserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop recordserver"
|
||||
[ ${freevo_webserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop webserver"
|
||||
[ ${freevo_gui_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop"
|
||||
quietstart)
|
||||
no_msg=1
|
||||
freevo_start
|
||||
;;
|
||||
stop|faststop|onestop)
|
||||
freevo_stop
|
||||
;;
|
||||
quietstop)
|
||||
no_msg=1
|
||||
freevo_stop
|
||||
;;
|
||||
restart)
|
||||
[ ${freevo_recordserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop recordserver"
|
||||
[ ${freevo_webserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop webserver"
|
||||
[ ${freevo_gui_enable} = "YES" ] && su ${freevo_user} -c "${command} --stop"
|
||||
[ ${freevo_recordserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon recordserver"
|
||||
[ ${freevo_webserver_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon webserver"
|
||||
[ ${freevo_gui_enable} = "YES" ] && su ${freevo_user} -c "${command} --daemon"
|
||||
freevo_stop
|
||||
freevo_start
|
||||
;;
|
||||
esac
|
||||
|
||||
|
10
multimedia/freevo/files/patch-src-www-htdocs-fileinfo.rpy
Normal file
10
multimedia/freevo/files/patch-src-www-htdocs-fileinfo.rpy
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/www/htdocs/fileinfo.rpy.orig 2009-04-02 12:50:13.000000000 -0400
|
||||
+++ src/www/htdocs/fileinfo.rpy 2010-12-07 02:58:01.000000000 -0500
|
||||
@@ -33,7 +33,6 @@
|
||||
import time
|
||||
|
||||
from www.web_types import HTMLResource, FreevoResource
|
||||
-from twisted.web.woven import page
|
||||
import util
|
||||
import config
|
||||
import kaa.metadata as metadata
|
11
multimedia/freevo/files/patch-src-www-htdocs-guide.rpy
Normal file
11
multimedia/freevo/files/patch-src-www-htdocs-guide.rpy
Normal file
@ -0,0 +1,11 @@
|
||||
--- src/www/htdocs/guide.rpy.orig 2009-02-19 12:59:44.000000000 -0500
|
||||
+++ src/www/htdocs/guide.rpy 2010-12-07 02:56:47.000000000 -0500
|
||||
@@ -32,8 +32,6 @@
|
||||
import sys, string
|
||||
import time
|
||||
|
||||
-from twisted.web.woven import page
|
||||
-
|
||||
import config
|
||||
import util.tv_util as tv_util
|
||||
import util
|
@ -0,0 +1,10 @@
|
||||
--- src/www/htdocs/guidechannel.rpy.orig 2009-02-19 12:59:44.000000000 -0500
|
||||
+++ src/www/htdocs/guidechannel.rpy 2010-12-07 02:58:10.000000000 -0500
|
||||
@@ -33,7 +33,6 @@
|
||||
import time
|
||||
import datetime
|
||||
|
||||
-from twisted.web.woven import page
|
||||
from twisted.web import static
|
||||
|
||||
import util.tv_util as tv_util
|
10
multimedia/freevo/files/patch-src-www-htdocs-proginfo.rpy
Normal file
10
multimedia/freevo/files/patch-src-www-htdocs-proginfo.rpy
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/www/htdocs/proginfo.rpy.orig 2008-02-20 15:52:22.000000000 -0500
|
||||
+++ src/www/htdocs/proginfo.rpy 2010-12-07 02:58:19.000000000 -0500
|
||||
@@ -33,7 +33,6 @@
|
||||
import time
|
||||
|
||||
from www.web_types import HTMLResource, FreevoResource
|
||||
-from twisted.web.woven import page
|
||||
|
||||
import util.tv_util as tv_util
|
||||
import util
|
24
multimedia/freevo/files/patch-src-www-htdocs-search.rpy
Normal file
24
multimedia/freevo/files/patch-src-www-htdocs-search.rpy
Normal file
@ -0,0 +1,24 @@
|
||||
--- src/www/htdocs/search.rpy.orig 2009-02-19 12:59:44.000000000 -0500
|
||||
+++ src/www/htdocs/search.rpy 2010-04-19 20:03:02.000000000 -0400
|
||||
@@ -113,17 +113,17 @@
|
||||
if not chan: chan = 'UNKNOWN'
|
||||
fv.tableCell(chan, 'class="'+status+'" colspan="1"')
|
||||
|
||||
- fv.tableCell(prog.title, 'class="'+status+'" colspan="1"')
|
||||
+ fv.tableCell(unicode(prog.title, 'iso-8859-1'), 'class="'+status+'" colspan="1"')
|
||||
if prog.sub_title:
|
||||
- fv.tableCell(prog.sub_title, 'class="'+status+'" colspan="1"')
|
||||
+ fv.tableCell(unicode(prog.sub_title, 'iso-8859-1'), 'class="'+status+'" colspan="1"')
|
||||
else:
|
||||
fv.tableCell(' ', 'class="'+status+'" colspan="1"')
|
||||
|
||||
|
||||
if prog.desc == '':
|
||||
- cell = _('Sorry, the program description for %s is unavailable.') % ('<b>'+prog.title+'</b>')
|
||||
+ cell = _('Sorry, the program description for %s is unavailable.') % ('<b>'+unicode(prog.title, 'iso-8859-1')+'</b>')
|
||||
else:
|
||||
- cell = prog.desc
|
||||
+ cell = unicode(prog.desc, 'iso-8859-1')
|
||||
fv.tableCell(cell, 'class="'+status+'" colspan="1"')
|
||||
|
||||
if status == 'scheduled':
|
10
multimedia/freevo/files/patch-src-www-htdocs-vlcwin.rpy
Normal file
10
multimedia/freevo/files/patch-src-www-htdocs-vlcwin.rpy
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/www/htdocs/vlcwin.rpy.orig 2008-02-20 15:52:22.000000000 -0500
|
||||
+++ src/www/htdocs/vlcwin.rpy 2010-12-07 02:58:25.000000000 -0500
|
||||
@@ -33,7 +33,6 @@
|
||||
import time
|
||||
|
||||
from www.web_types import HTMLResource, FreevoResource
|
||||
-from twisted.web.woven import page
|
||||
import util
|
||||
import config
|
||||
import kaa.metadata as metadata
|
34
multimedia/freevo/files/patch-src-www-web_types.py
Normal file
34
multimedia/freevo/files/patch-src-www-web_types.py
Normal file
@ -0,0 +1,34 @@
|
||||
--- src/www/web_types.py.orig 2009-05-07 13:34:38.000000000 -0400
|
||||
+++ src/www/web_types.py 2010-12-05 10:54:51.000000000 -0500
|
||||
@@ -36,7 +36,6 @@
|
||||
import config
|
||||
import socket
|
||||
|
||||
-from twisted.web.woven import page
|
||||
from twisted.web.resource import Resource
|
||||
from tv.record_client import RecordClient
|
||||
|
||||
@@ -71,23 +70,6 @@
|
||||
|
||||
|
||||
|
||||
-class FreevoPage(page.Page):
|
||||
- """
|
||||
- """
|
||||
- def __init__(self, model=None, template=None):
|
||||
- #print 'FreevoPage.__init__(model=%r, template=%r)' % (model, template)
|
||||
-
|
||||
- if not model:
|
||||
- model = {'foo': 'bar'}
|
||||
- if not template:
|
||||
- template = '<html><head><title>ERROR</title></head>' + \
|
||||
- '<body>ERROR: no template</body></html>'
|
||||
-
|
||||
- page.Page.__init__(self, model, template=template)
|
||||
-
|
||||
- self.addSlash = 0
|
||||
-
|
||||
-
|
||||
class FreevoResource(Resource):
|
||||
"""
|
||||
Base class of webpages which handels the authentication.
|
Loading…
Reference in New Issue
Block a user