about summary refs log tree commit diff
path: root/doc
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2010-11-01 23:47:04 +0100
committerFlorian Westphal <fw@strlen.de>2010-11-03 20:41:42 +0100
commit4a197638688d4e39d57f201ac735a38c9fc5a260 (patch)
treed94e997b73dfabbe9c5b4368d4820ffc1d20b4ba /doc
parentbdcf3f0e246c5aa3072c4f82dd9cd0541f4e79aa (diff)
downloadngircd-4a197638688d4e39d57f201ac735a38c9fc5a260.tar.gz
ngircd-4a197638688d4e39d57f201ac735a38c9fc5a260.zip
doc: change path names in sample-ngircd.conf depending on sysconfdir
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am9
-rw-r--r--doc/sample-ngircd.conf.tmpl (renamed from doc/sample-ngircd.conf)12
2 files changed, 14 insertions, 7 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 1e5773ec..51fab0ee 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -10,6 +10,13 @@
 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
 #
 
+.tmpl:
+	sed \
+	    -e s@:ETCDIR:@${sysconfdir}@ \
+	    <$< >$@
+
+SUFFIXES = .tmpl
+
 SUBDIRS = src
 
 EXTRA_DIST = FAQ.txt GIT.txt Protocol.txt Platforms.txt README-AUX.txt \
@@ -22,7 +29,7 @@ maintainer-clean-local:
 documents = $(EXTRA_DIST) ../AUTHORS ../COPYING ../ChangeLog ../INSTALL \
 	../NEWS ../README
 
-install-data-hook:
+install-data-hook: $(documents)
 	$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
 	if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
 	  $(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \
diff --git a/doc/sample-ngircd.conf b/doc/sample-ngircd.conf.tmpl
index fe34dffa..c6dde60d 100644
--- a/doc/sample-ngircd.conf
+++ b/doc/sample-ngircd.conf.tmpl
@@ -42,7 +42,7 @@
 	;AdminInfo1 = Description
 	;AdminInfo2 = Location
 	;AdminEMail = admin@irc.server
- 
+
 	# Ports on which the server should listen. There may be more than
 	# one port, separated with ",". (Default: 6667)
 	;Ports = 6667, 6668, 6669
@@ -51,16 +51,16 @@
 	;SSLPorts = 6697, 9999
 
 	# SSL Server Key
-        ;SSLKeyFile = /usr/local/etc/ngircd/ssl/server-key.pem
+	;SSLKeyFile = :ETCDIR:ssl/server-key.pem
 
 	# password to decrypt SSLKeyFile (OpenSSL only)
 	;SSLKeyFilePassword = secret
 
 	# SSL Server Key Certificate
-	;SSLCertFile = /usr/local/etc/ngircd/ssl/server-cert.pem
+	;SSLCertFile = :ETCDIR:ssl/server-cert.pem
 
 	# Diffie-Hellman parameters
-	;SSLDHFile = /usr/local/etc/ngircd/ssl/dhparams.pem
+	;SSLDHFile = :ETCDIR:ssl/dhparams.pem
 
 	# comma separated list of IP addresses on which the server should
 	# listen. Default values are:
@@ -77,7 +77,7 @@
 
 	# Text file with the "message of the day" (MOTD). This message will
 	# be shown to all users connecting to the server:
-	;MotdFile = /usr/local/etc/ngircd.motd
+	;MotdFile = :ETCDIR:ngircd.motd
 
 	# A simple Phrase (<256 chars) if you don't want to use a motd file.
 	;MotdPhrase = "Hello world!"
@@ -270,7 +270,7 @@
 
 	# Key file, syntax for each line: "<user>:<nick>:<key>".
 	# Default: none.
-	;KeyFile = /etc/ngircd/#chan.key
+	;KeyFile = :ETCDIR:#chan.key
 
 	# maximum users per channel (mode l)
 	;MaxUsers = 23