$OpenBSD: patch-doc_reference_conf,v 1.14 2018/05/19 06:28:10 ajacoutot Exp $
Index: doc/reference.conf
--- doc/reference.conf.orig
+++ doc/reference.conf
@@ -121,7 +121,7 @@ serverinfo {
 	 *    chown <ircd-user>.<ircd.group> rsa.key
 	 *    chmod 0600 rsa.key
 	 */
-#	rsa_private_key_file = "etc/rsa.key";
+#	rsa_private_key_file = "${CONFDIR}/rsa.key";
 
 	/*
 	 * ssl_certificate_file: the path to the file containing our
@@ -138,7 +138,7 @@ serverinfo {
 	 * GnuTLS:
 	 *    certtool --generate-self-signed --load-privkey rsa.key --outfile cert.pem
 	 */
-#	ssl_certificate_file = "etc/cert.pem";
+#	ssl_certificate_file = "${CONFDIR}/cert.pem";
 
 	/*
 	 * ssl_dh_param_file: the path to the PEM encoded Diffie-Hellman
@@ -153,7 +153,7 @@ serverinfo {
 	 * GnuTLS:
 	 *    certtool --generate-dh-params --sec-param=medium --outfile dhparam.pem
 	 */
-#	ssl_dh_param_file = "etc/dhparam.pem";
+#	ssl_dh_param_file = "${CONFDIR}/dhparam.pem";
 
 	/*
 	 * ssl_dh_elliptic_curve: defines the curve to use for the
@@ -335,7 +335,7 @@ motd {
 	/*
 	 * file: path to the motd file.
 	 */
-	file = "etc/german.motd";
+	file = "${CONFDIR}/german.motd";
 };
 
 /*
@@ -1024,7 +1024,7 @@ serverhide {
 	/*
 	 * flatten_links_file: path to the flatten links cache file.
 	 */
-	flatten_links_file = "var/lib/links.txt";
+	flatten_links_file = "${LOCALSTATEDIR}/db/ircd-hybrid/links.txt";
 
 	/*
 	 * hidden: hide this server from a /links output on servers that
@@ -1357,9 +1357,9 @@ modules {
 	 * path: other paths to search for modules specified below
 	 * and in "/module load".
 	 */
-	path = "lib/ircd-hybrid/modules";
-#	path = "lib/ircd-hybrid/modules/extra";
-	path = "lib/ircd-hybrid/modules/autoload";
+	path = "${PREFIX}/lib/ircd-hybrid/modules";
+#	path = "${PREFIX}/lib/ircd-hybrid/modules/extra";
+	path = "${PREFIX}/lib/ircd-hybrid/modules/autoload";
 
 	/* module: the name of a module to load on startup/rehash. */
 #	module = "some_module.la";
@@ -1374,49 +1374,49 @@ log {
 
 	file {
 		type = oper;
-		name = "var/log/oper.log";
+		name = "${LOGDIR}/oper.log";
 		size = unlimited;
 	};
 
 	file {
 		type = user;
-		name = "var/log/user.log";
+		name = "${LOGDIR}/user.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = kill;
-		name = "var/log/kill.log";
+		name = "${LOGDIR}/kill.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = kline;
-		name = "var/log/kline.log";
+		name = "${LOGDIR}/kline.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = dline;
-		name = "var/log/dline.log";
+		name = "${LOGDIR}/dline.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = xline;
-		name = "var/log/xline.log";
+		name = "${LOGDIR}/xline.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = resv;
-		name = "var/log/resv.log";
+		name = "${LOGDIR}/resv.log";
 		size = 50 megabytes;
 	};
 
 	file {
 		type = debug;
-		name = "var/log/debug.log";
+		name = "${LOGDIR}/debug.log";
 		size = 50 megabytes;
 	};
 };
