let lcdproc & lcdexec have their own private config file;

install server & client config files to $(sysconfdir) (using automake features)
This commit is contained in:
marschap
2006-04-15 19:48:11 +00:00
parent 16b89aa65e
commit ff0cb79b17
13 changed files with 107 additions and 19 deletions
+1 -1
View File
@@ -12,6 +12,6 @@ if !DARWIN
AM_LDFLAGS = -rdynamic -uget_args
endif
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -DSYSCONFDIR=\"$(sysconfdir)\"
## EOF
+5 -1
View File
@@ -72,9 +72,13 @@ extern int optind, optopt, opterr;
#include "main.h"
#if !defined(SYSCONFDIR)
# define SYSCONFDIR "/etc"
#endif
#define DEFAULT_BIND_ADDR "127.0.0.1"
#define DEFAULT_BIND_PORT LCDPORT
#define DEFAULT_CONFIGFILE "/etc/LCDd.conf"
#define DEFAULT_CONFIGFILE SYSCONFDIR "/LCDd.conf"
#define DEFAULT_USER "nobody"
#define DEFAULT_DRIVER "curses"
#define DEFAULT_DRIVER_PATH "" /* not needed */