Discussion:
MythTV - Mythweb port?
(too old to reply)
Torfinn Ingolfsen
2009-12-15 17:02:31 UTC
Permalink
Has anyboady looked into making a FreeBSD port for MythWeb[1]?

References:
1) http://www.mythtv.org/wiki/MythWeb
--
Regards,
Torfinn Ingolfsen
Bernhard Froehlich
2009-12-16 08:42:24 UTC
Permalink
Post by Torfinn Ingolfsen
Has anyboady looked into making a FreeBSD port for MythWeb[1]?
I haven't yet but if nobody else does i will create one as soon as i have
time to do so. But that could take a few weeks.
--
Bernhard Fröhlich
http://www.bluelife.at/
Bernhard Froehlich
2009-12-28 14:07:37 UTC
Permalink
Post by Bernhard Froehlich
Post by Torfinn Ingolfsen
Has anyboady looked into making a FreeBSD port for MythWeb[1]?
I haven't yet but if nobody else does i will create one as soon as i have
time to do so. But that could take a few weeks.
I've had some spare time and created a mythweb port yesterday.

# fetch http://svn.bluelife.at/nightlies/blueports.tar.gz
# tar xvf blueports.tar.gz ports/www/mythweb
# cd ports/www/mythweb && make install clean

You need to manually configure apache after that and lighttpd is not
supported yet.
--
Bernhard Fröhlich
http://www.bluelife.at/
Torfinn Ingolfsen
2009-12-28 22:54:51 UTC
Permalink
Hello,

On Mon, 28 Dec 2009 15:07:37 +0100 (CET)
Post by Bernhard Froehlich
I've had some spare time and created a mythweb port yesterday.
Nice!
Since I had some spare time, I tested it.
Post by Bernhard Froehlich
# fetch http://svn.bluelife.at/nightlies/blueports.tar.gz
# tar xvf blueports.tar.gz ports/www/mythweb
# cd ports/www/mythweb && make install clean
This worked well. I installed apache22 with default options, php5 with
APACHE=on. After having wreestled with the apache configuration (see
below) I got an error message:
Fatal error: Call to undefined function spl_autoload_register()
in /usr/local/www/mythweb/includes/class_autoload.php on line 33

It turns out that the port php5-spl is needed also. After that, mythweb
works. I can eve strem recordings from mythweb with vlc.

Thanks!
Post by Bernhard Froehlich
You need to manually configure apache after that and lighttpd is not
supported yet.
<rant>
Grr, I am not very comfortable with Apache 2.x configuration - I was
much better at the way it was done in 1.3.x.
</rant>
Anyway, I opted for a simple setup (no authentication) on my testbox. I
copied /usr/local/www/mythweb/mythweb.conf.apache
to /usr/local/etc/apache22/Includes/mythweb.conf
(I used Includes ratrher than extra, because it is already enabled
in /usr/local/etc/apache22/httpd.conf )
I changed the directory paths in it to /usr/local/www/mythweb/data
and /usr/local/mythweb/
I added an Alias:
Alias /mythweb/ "/usr/local/www/mythweb/"
and added
Allow from all
to the section
<Directory "/usr/local/www/mythweb/" >

Then I changed
# RewriteBase /mythweb
into
RewriteBase /mythweb/

And restarted apache. (Remember, you've got to configure php into
httpd.conf also. At least I think you need to.)

Update: I just tested with authenticaton on - it works too. vlc
understands the auth requests, but Mplayer and Totem (called
"Movie PLayer" in Xubuntu) does not.

Again, thanks Bernhard!
--
Regards,
Torfinn Ingolfsen
Bernhard Froehlich
2009-12-29 09:51:59 UTC
Permalink
Post by Torfinn Ingolfsen
Hello,
On Mon, 28 Dec 2009 15:07:37 +0100 (CET)
Post by Bernhard Froehlich
I've had some spare time and created a mythweb port yesterday.
Nice!
Since I had some spare time, I tested it.
Post by Bernhard Froehlich
# fetch http://svn.bluelife.at/nightlies/blueports.tar.gz
# tar xvf blueports.tar.gz ports/www/mythweb
# cd ports/www/mythweb && make install clean
This worked well. I installed apache22 with default options, php5 with
APACHE=on. After having wreestled with the apache configuration (see
Fatal error: Call to undefined function spl_autoload_register()
in /usr/local/www/mythweb/includes/class_autoload.php on line 33
It turns out that the port php5-spl is needed also. After that, mythweb
works. I can eve strem recordings from mythweb with vlc.
Thanks!
Post by Bernhard Froehlich
You need to manually configure apache after that and lighttpd is not
supported yet.
<rant>
Grr, I am not very comfortable with Apache 2.x configuration - I was
much better at the way it was done in 1.3.x.
</rant>
Anyway, I opted for a simple setup (no authentication) on my testbox. I
copied /usr/local/www/mythweb/mythweb.conf.apache
to /usr/local/etc/apache22/Includes/mythweb.conf
(I used Includes ratrher than extra, because it is already enabled
in /usr/local/etc/apache22/httpd.conf )
I changed the directory paths in it to /usr/local/www/mythweb/data
and /usr/local/mythweb/
Alias /mythweb/ "/usr/local/www/mythweb/"
and added
Allow from all
to the section
<Directory "/usr/local/www/mythweb/" >
Then I changed
# RewriteBase /mythweb
into
RewriteBase /mythweb/
And restarted apache. (Remember, you've got to configure php into
httpd.conf also. At least I think you need to.)
Update: I just tested with authenticaton on - it works too. vlc
understands the auth requests, but Mplayer and Totem (called
"Movie PLayer" in Xubuntu) does not.
Again, thanks Bernhard!
Thanks for giving it a try. I've added the spl dependency and replaced the
paths in mythweb.conf.apache so that they match with ${WWWDIR}
(/usr/local/www/mythweb). Everything else has to be configured by the
user.

Looks like the port is ready for the tree so i will submit it soon.
--
Bernhard Fröhlich
http://www.bluelife.at/
Loading...