1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-01-22 21:36:53 +00:00

doc: change path names in sample-ngircd.conf depending on sysconfdir

This commit is contained in:
Florian Westphal 2010-11-01 23:47:04 +01:00
parent bdcf3f0e24
commit 4a19763868
2 changed files with 14 additions and 7 deletions

View File

@ -10,6 +10,13 @@
# der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
# #
.tmpl:
sed \
-e s@:ETCDIR:@${sysconfdir}@ \
<$< >$@
SUFFIXES = .tmpl
SUBDIRS = src SUBDIRS = src
EXTRA_DIST = FAQ.txt GIT.txt Protocol.txt Platforms.txt README-AUX.txt \ 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 \ documents = $(EXTRA_DIST) ../AUTHORS ../COPYING ../ChangeLog ../INSTALL \
../NEWS ../README ../NEWS ../README
install-data-hook: install-data-hook: $(documents)
$(mkinstalldirs) $(DESTDIR)$(sysconfdir) $(mkinstalldirs) $(DESTDIR)$(sysconfdir)
if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \ if [ ! -f $(DESTDIR)$(sysconfdir)/ngircd.conf ]; then \
$(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \ $(INSTALL) -m 600 -c $(srcdir)/sample-ngircd.conf $(DESTDIR)$(sysconfdir)/ngircd.conf; \

View File

@ -51,16 +51,16 @@
;SSLPorts = 6697, 9999 ;SSLPorts = 6697, 9999
# SSL Server Key # SSL Server Key
;SSLKeyFile = /usr/local/etc/ngircd/ssl/server-key.pem ;SSLKeyFile = :ETCDIR:ssl/server-key.pem
# password to decrypt SSLKeyFile (OpenSSL only) # password to decrypt SSLKeyFile (OpenSSL only)
;SSLKeyFilePassword = secret ;SSLKeyFilePassword = secret
# SSL Server Key Certificate # SSL Server Key Certificate
;SSLCertFile = /usr/local/etc/ngircd/ssl/server-cert.pem ;SSLCertFile = :ETCDIR:ssl/server-cert.pem
# Diffie-Hellman parameters # 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 # comma separated list of IP addresses on which the server should
# listen. Default values are: # listen. Default values are:
@ -77,7 +77,7 @@
# Text file with the "message of the day" (MOTD). This message will # Text file with the "message of the day" (MOTD). This message will
# be shown to all users connecting to the server: # 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. # A simple Phrase (<256 chars) if you don't want to use a motd file.
;MotdPhrase = "Hello world!" ;MotdPhrase = "Hello world!"
@ -270,7 +270,7 @@
# Key file, syntax for each line: "<user>:<nick>:<key>". # Key file, syntax for each line: "<user>:<nick>:<key>".
# Default: none. # Default: none.
;KeyFile = /etc/ngircd/#chan.key ;KeyFile = :ETCDIR:#chan.key
# maximum users per channel (mode l) # maximum users per channel (mode l)
;MaxUsers = 23 ;MaxUsers = 23