On Aug 3, 2019, at 10:24, Brian McGlynn <bmcgl...@geneseemedia.net> wrote:

> Where should I base it in the source tree?  I call it "RDWeb" and could put 
> it into a directory with that name.  It installs the Javascript and PHP code 
> into /usr/local/share/rdweb and there are configuration files for Apache that 
> need to be installed.  Right now, it is all manual to install. In 
> contributing it to the community, I am hoping to get some help in cleaning it 
> up a bit.

In the Rivendell build system, there are two arguments to ‘configure’ that 
control this sort of thing:

--libexecdirdir=<dir>
        The location to install web content (both static and scripts)
        Value on CentOS 7: ‘/var/www/rd-bin’

--sysconfdir=<dir>
        The location to install httpd configuration snippets
        Value on CentOS 7: ‘/etc/httpd/conf.d’

(Note that the ‘Value on CentOS 7’ fields are merely examples; on other distros 
these paths can be and are different!)

If you’re using Autoconf for your build system, then just use the @libexecdir@ 
and @sysconfdir@ variables to get the target paths. If you’re just using a flat 
Makefile, then provide some variables with reasonable defaults and some 
directions to the user to set these to the desired locations.


> This uses a mix of the Web API and direct access to the database.  At 
> present, it needs to run on a machine with Rivendell installed since it pulls 
> database configuration from /etc/rd.conf.   That could easily be modified.

Ouch! Why the DB access? Are we missing something from the Web API that you 
need?

Cheers!


|---------------------------------------------------------------------|
| Frederick F. Gleason, Jr. |             Chief Developer             |
|                           |             Paravel Systems             |
|---------------------------------------------------------------------|
|         A room without books is like a body without a soul.         |
|                                                                     |
|                                                         -- Cicero   |
|---------------------------------------------------------------------|
_______________________________________________
Rivendell-dev mailing list
Rivendell-dev@lists.rivendellaudio.org
http://caspian.paravelsystems.com/mailman/listinfo/rivendell-dev

Reply via email to