Changeset - ef8623524c7b
[Not reviewed]
default
2 1 2
Nathan Brink (binki) - 16 years ago 2009-10-14 23:48:54
ohnobinki@ohnopublishing.net
use substitution for default directories in confs
3 files changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
configure.ac
Show inline comments
 
@@ -49,6 +49,7 @@ PKG_CHECK_MODULES([CHECK], [check >= 0.9
 

	
 
AC_DEFINE_DIR([SYSCONFDIR], [sysconfdir], [Directory to find configuration files in])
 
AC_DEFINE_DIR([LOCALSTATEDIR], [localstatedir], [Directory in which the server or client may store its state files and data])
 
AC_DEFINE_DIR([RUNSTATEDIR], [localstatedir/run], [Directory where PID files are stored])
 

	
 
AC_CONFIG_FILES([Makefile
 
src/Makefile
 
@@ -57,6 +58,8 @@ src/server/Makefile
 
src/client/Makefile
 
src/tests/Makefile
 
etc/Makefile
 
etc/distrendaemon.conf
 
etc/distrenslave.conf
 
])
 

	
 
AC_OUTPUT
etc/distrendaemon.conf.in
Show inline comments
 
file renamed from etc/distrendaemon.conf to etc/distrendaemon.conf.in
 
@@ -3,7 +3,7 @@
 
*/
 
daemon
 
{
 
  datadir = "/var/lib/distren"
 
  datadir = "@LOCALSTATEDIR@/@PACKAGE@"
 
  render_types = {"povray", "blender", "inkscape", "imagemagick", "dcraw"}
 
}
 

	
 
@@ -12,6 +12,6 @@ include("distrencommon.conf")
 

	
 
listen {
 
       type = "unix"
 
       path = "/var/run/distrend.sock"
 
       path = "@RUNSTATEDIR@/@PACKAGE@d.sock"
 
       port = "0770"
 
}
 
\ No newline at end of file
etc/distrenslave.conf.in
Show inline comments
 
file renamed from etc/distrenslave.conf to etc/distrenslave.conf.in
 
@@ -5,4 +5,4 @@ slave
 

	
 
include("distrencommon.conf")
 

	
 
datadir = "/var/lib/distren"
 
datadir = "@LOCALSTATEDIR@/@PACKAGE@"
0 comments (0 inline, 0 general)