repo: ngircd
action: commit
revision: 
path_from: 
revision_from: f6ce2d557a6f52ed71e458b1a375747d90ffca70:
path_to: 
revision_to: 
git.thebackupbox.net
ngircd
git clone git://git.thebackupbox.net/ngircd
commit f6ce2d557a6f52ed71e458b1a375747d90ffca70
Author: Alexander Barton 
Date:   Mon Dec 25 16:13:26 2006 +0000

    Customize manual pages to reflect the actual installation location of files.

diff --git a/man/Makefile.am b/man/Makefile.am
index 0ec0e27f49d93e0c398b93755299a22503040ba4..
index ..ebe9fcef41f1c6cbe74b143a924ae3743df9095f 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -9,12 +9,25 @@
 # Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
 # der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
 #
-# $Id: Makefile.am,v 1.5 2002/04/04 13:02:41 alex Exp $
+# $Id: Makefile.am,v 1.6 2006/12/25 16:13:26 alex Exp $
 #

+TEMPLATE_MANS = ngircd.conf.5.tmpl ngircd.8.tmpl
+
+SUFFIXES = .tmpl .
+
+.tmpl:
+	sed \
+	    -e s@:SBINDIR:@${sbindir}@ \
+	    -e s@:BINDIR:@${bindir}@ \
+	    -e s@:ETCDIR:@${sysconfdir}@ \
+	    <$< >$@
+
 man_MANS = ngircd.conf.5 ngircd.8

-EXTRA_DIST = $(man_MANS)
+CLEANFILES = $(man_MANS)
+
+EXTRA_DIST = $(TEMPLATE_MANS)

 maintainer-clean-local:
 	rm -f Makefile Makefile.in
diff --git a/man/ngircd.8 b/man/ngircd.8.tmpl
similarity index 94%
rename from man/ngircd.8
rename to man/ngircd.8.tmpl
index 18b5f16fb5fca8f71751794e28ca6c6d809dbc1d..
index ..f874aa0bfa3599b1d45a2d5a7eceeffd2ddbe07b 100644
--- a/man/ngircd.8
+++ b/man/ngircd.8.tmpl
@@ -1,5 +1,5 @@
 .\"
-.\" $Id: ngircd.8,v 1.11 2005/08/12 13:20:54 alex Exp $
+.\" $Id: ngircd.8.tmpl,v 1.1 2006/12/25 16:13:26 alex Exp $
 .\"
 .TH ngircd 8 "August 2005" ngircd "ngIRCd Manual"
 .SH NAME
@@ -55,11 +55,11 @@ Output version information and exit.
 \fB\-\-help\fR
 Display a brief help text and exit.
 .SH FILES
-.I /usr/local/etc/ngircd.conf
+.I :ETCDIR:/ngircd.conf
 .RS
 The system wide default configuration file.
 .RE
-.I /usr/local/etc/ngircd.motd
+.I :ETCDIR:/ngircd.motd
 .RS
 Default "message of the day" (MOTD).
 .RE
diff --git a/man/ngircd.conf.5 b/man/ngircd.conf.5.tmpl
similarity index 98%
rename from man/ngircd.conf.5
rename to man/ngircd.conf.5.tmpl
index 84514e14df15480e61a18b7eaa9e63e5fd34ec5a..
index ..af32c411562701a18de5858ba68ce6572218d4ae 100644
--- a/man/ngircd.conf.5
+++ b/man/ngircd.conf.5.tmpl
@@ -1,11 +1,11 @@
 .\"
-.\" $Id: ngircd.conf.5,v 1.21 2006/12/11 22:07:09 fw Exp $
+.\" $Id: ngircd.conf.5.tmpl,v 1.1 2006/12/25 16:13:26 alex Exp $
 .\"
 .TH ngircd.conf 5 "August 2005" ngircd "ngIRCd Manual"
 .SH NAME
 ngircd.conf \- configuration file of ngIRCd
 .SH SYNOPSIS
-.B /usr/local/etc/ngircd.conf
+.B :ETCDIR:/ngircd.conf
 .SH DESCRIPTION
 .BR ngircd.conf
 is the configuration file of the

-----END OF PAGE-----