Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 171947 - net-www/vdradmin-am "standalone" ?
Summary: net-www/vdradmin-am "standalone" ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo VDR Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-23 18:30 UTC by Nils Andresen
Modified: 2009-01-13 22:14 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for using vdradmin-am standalone (vdradmin-am-3.6.1-r1.diff,684 bytes, patch)
2008-04-08 19:01 UTC, Daniel Pielmeier
Details | Diff
patch for using vdradmin-am standalone (vdradmin-am-3.6.2.diff,1.03 KB, patch)
2008-07-04 19:04 UTC, Daniel Pielmeier
Details | Diff
changed init script (vdradmin-rc-3.diff,298 bytes, patch)
2008-07-04 19:05 UTC, Daniel Pielmeier
Details | Diff
new init script for needed with USE="vdr" (vdradmin-rc-3-vdr,1.16 KB, patch)
2008-07-04 19:06 UTC, Daniel Pielmeier
Details | Diff
vdradmin-am-3.6.4.diff (vdradmin-am-3.6.4.diff,807 bytes, patch)
2009-01-13 16:22 UTC, Daniel Pielmeier
Details | Diff
vdradmin-4.diff (vdradmin-4.diff,291 bytes, patch)
2009-01-13 16:23 UTC, Daniel Pielmeier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nils Andresen 2007-03-23 18:30:10 UTC
vdradmin depends on vdr.
Is it possible to have the ebuild be "standalone" i.e. have vdradmin use an vdr on another machine ?
(I have vdr running on a VERY small machine which could not handle vdradmin..)

Yours,
Nils


Reproducible: Always
Comment 1 Joerg Bornkessel (RETIRED) gentoo-dev 2007-03-24 01:42:53 UTC
How should this work?

vdradmin-am read some local files of VDR, 
i.e /etc/vdr/setup.conf /var/vdr/epg.data /etc/vdr/channels.conf ...
Comment 2 Matthias Schwarzott gentoo-dev 2007-03-24 10:23:46 UTC
(In reply to comment #1)
> How should this work?
> 
> vdradmin-am read some local files of VDR, 
> i.e /etc/vdr/setup.conf /var/vdr/epg.data /etc/vdr/channels.conf ...
> 
It does read setup.conf and channels.conf ?
At least the sources I have on my system doesn't do that.
And epg.data access is configurable.

From my pov this should work, if we change "need vdr" in init-script to "use vdr".
Comment 3 Nils Andresen 2007-03-24 17:30:21 UTC
(In reply to comment #1)
> How should this work?

True, "vdradmind.pl --config" asks for server-name and two Paths (config + video), which need to be accessable. Shouldn't be the Problem to ask the user to configure vdradmin, right ?

IMHO The "problem" would be to add an "vdr" use-flag (or "no-vdr"), which determins if the ebuild (including config and start-script) should behave just the way it is today or if vdr is not needed (and the user is required to run "vdradmind.pl --config" or edit the config-files accordingly)
Comment 4 Andreas Mair 2007-12-21 07:06:33 UTC
(In reply to comment #1)
> How should this work?
> 
> vdradmin-am read some local files of VDR, 
> i.e /etc/vdr/setup.conf /var/vdr/epg.data /etc/vdr/channels.conf ...

I'm the VDRAdmin-AM maintainer and I can confirm that VDRAdmin-AM also works if VDR is running on another machine.
There are three "drawbacks":
1) It reads some VDR configuration files (reccmds.conf and commands.conf). If they are not found the user won't see those commands in the Web UI.
2) It needs the video folder to export a recording's playlist (aka recording streaming).
3) It looks in tthe video folder's epgimages folder for EPG images imported by for example tvmovie2vdr.

Regards,
Andreas
Comment 5 Daniel Pielmeier gentoo-dev 2008-02-02 21:02:26 UTC
(In reply to comment #2)
> 
> From my pov this should work, if we change "need vdr" in init-script to "use
> vdr".
> 

I successfully use vdradmin-am without vdr on a remote machine now. I have just removed the vdr dependency and set "use vdr" instead of "need vdr" in the init script.

For the drawbacks mentioned. If somebody wants to control the vdr from remote it has less sense to install the vdr on the remote machine, just because it needs some files from vdr. The files installed on the remote machine which vdradmin-am is reading are useless anyway as the interesting files are on the vdr machine.

So what about adding a local "no-vdr" " use flag and if it is set change the init script accordingly.
Comment 6 Daniel Pielmeier gentoo-dev 2008-04-08 19:01:33 UTC
Created attachment 149121 [details, diff]
patch for using vdradmin-am standalone

I have changed the ebuild and added a vdr USE-flag which pulls in media-video/vdr if set. It also installs a different init-script if USE=vdr is set with "depend() {need vdr}" and if unset with "depend() {use vdr}"

Maybe using EAPI=1 is a good idea so "+vdr" could be set to make it a default USE-flag.

Plus maybe adding some elog info which refers to this bug and comment #4, so that everybody is aware of the drawbacks by using this configuration.

Regards,

Daniel
Comment 7 C Tramnitz 2008-04-30 13:38:25 UTC
I second that, although I would even call it a bug in its current state rather than an enhancement. As mentioned by the VDRAdmin-AM maintainer there is no real dependency to have vdr on the *same* box, and even the mentioned drawbacks are not necessarily true:
I.e. I'm running a diskless vdr with nfs-root. The nfs server is running vdradmin, so it *has* access to vdr's config files...

Best regards,
   Christian
Comment 8 Daniel Pielmeier gentoo-dev 2008-07-04 19:04:44 UTC
Created attachment 159555 [details, diff]
patch for using vdradmin-am standalone

updated the patch for vdradmin-3.6.2
Comment 9 Daniel Pielmeier gentoo-dev 2008-07-04 19:05:24 UTC
Created attachment 159556 [details, diff]
changed init script
Comment 10 Daniel Pielmeier gentoo-dev 2008-07-04 19:06:12 UTC
Created attachment 159557 [details, diff]
new init script for needed with USE="vdr"
Comment 11 Joerg Bornkessel (RETIRED) gentoo-dev 2009-01-07 03:05:56 UTC
vdradmin-am-3.6.4-r1 includes now the use-flag vdr,
enabled by default on EAPI=1 handling

I have changed generally depend() handling to "use" in the initscipt,
its in all cases enough to start vdradmin-am

added also some info to force the user to give access to vdr's epg.data

Thanks to all Contributors
Comment 12 Daniel Pielmeier gentoo-dev 2009-01-11 19:44:45 UTC
(In reply to comment #11)
> vdradmin-am-3.6.4-r1 includes now the use-flag vdr,
> enabled by default on EAPI=1 handling

There is no -r1 ebuild in the tree! hd_brummy did you forget it or did something went wrong with cvs?

Regards,

Daniel
Comment 13 Daniel Pielmeier gentoo-dev 2009-01-13 16:22:28 UTC
Created attachment 178377 [details, diff]
vdradmin-am-3.6.4.diff

I have created an ebuild according to the changes you mentioned above.
Comment 14 Daniel Pielmeier gentoo-dev 2009-01-13 16:23:37 UTC
Created attachment 178379 [details, diff]
vdradmin-4.diff

Changed dependencies from need vdr to use vdr
Comment 15 Joerg Bornkessel (RETIRED) gentoo-dev 2009-01-13 22:14:32 UTC
Sry, iam a little bit worry,

forgot to commit, its in the tree now

Thx billy, to point me