summaryrefslogtreecommitdiffstats
path: root/ax25rtd
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2011-12-11 23:00:10 +0000
committerRalf Baechle <ralf@linux-mips.org>2011-12-11 23:00:10 +0000
commite62afa7359d9734e57a843beac68cea138fd19cc (patch)
tree1924778e00b310b4d06ec7aa8d4d7a484482b900 /ax25rtd
parent66d4d96bb168a6909d4d54a78a7e43ae1599b437 (diff)
Apply program name transformations also to remaining man page content.
The config files are unaffected; if you need to resolve a name conflict for the config files, use --sysconfdir=/etc and --localstatedir=/var.
Diffstat (limited to 'ax25rtd')
-rw-r--r--ax25rtd/Makefile.am48
-rw-r--r--ax25rtd/ax25rtctl.man (renamed from ax25rtd/ax25rtctl.8)18
-rw-r--r--ax25rtd/ax25rtd.conf.man (renamed from ax25rtd/ax25rtd.conf.5)30
-rw-r--r--ax25rtd/ax25rtd.man (renamed from ax25rtd/ax25rtd.8)18
4 files changed, 81 insertions, 33 deletions
diff --git a/ax25rtd/Makefile.am b/ax25rtd/Makefile.am
index ed08cca..05fa820 100644
--- a/ax25rtd/Makefile.am
+++ b/ax25rtd/Makefile.am
@@ -4,6 +4,54 @@ varfiles = ax25_route ip_route
man_MANS = ax25rtd.8 ax25rtctl.8 ax25rtd.conf.5
+ax25rtd.8: ax25rtd.man
+ name_ax25rtd=$$(echo ax25rtd | sed -e '$(transform)') \
+ name_Ax25rtd=$$(echo $$name_ax25rtd | sed -r 's@^(.)@\U\1\E@') && \
+ name_AX25RTD=$$(echo $$name_ax25rtd | sed -r 's@^(.*)@\U\1\E@') && \
+ name_ax25rtctl=$$(echo ax25rtctl | sed -e '$(transform)') && \
+ name_Ax25rtctl=$$(echo $$name_ax25rtctl | sed -r 's@^(.)@\U\1\E@') && \
+ name_AX25RTCTL=$$(echo $$name_ax25rtctl | sed -r 's@^(.*)@\U\1\E@') && \
+ sed -e "s/@@@ax25rtd@@@/$$name_ax25rtd/g" \
+ -e "s/@@@Ax25rtd@@@/$$name_Ax25rtd/g" \
+ -e "s/@@@AX25RTD@@@/$$name_AX25RTD/g" \
+ -e "s/@@@ax25rtctl@@@/$$name_ax25rtctl/g" \
+ -e "s/@@@Ax25rtctl@@@/$$name_Ax25rtctl/g" \
+ -e "s/@@@AX25RTCTL@@@/$$name_AX25RTCTL/g" \
+ ax25rtd.man > ax25rtd.1.tmp && \
+ mv ax25rtd.1.tmp ax25rtd.1;
+
+ax25rtctl.8: ax25rtctl.man
+ name_ax25rtd=$$(echo ax25rtd | sed -e '$(transform)') \
+ name_Ax25rtd=$$(echo $$name_ax25rtd | sed -r 's@^(.)@\U\1\E@') && \
+ name_AX25RTD=$$(echo $$name_ax25rtd | sed -r 's@^(.*)@\U\1\E@') && \
+ name_ax25rtctl=$$(echo ax25rtctl | sed -e '$(transform)') && \
+ name_Ax25rtctl=$$(echo $$name_ax25rtctl | sed -r 's@^(.)@\U\1\E@') && \
+ name_AX25RTCTL=$$(echo $$name_ax25rtctl | sed -r 's@^(.*)@\U\1\E@') && \
+ sed -e "s/@@@ax25rtd@@@/$$name_ax25rtd/g" \
+ -e "s/@@@Ax25rtd@@@/$$name_Ax25rtd/g" \
+ -e "s/@@@AX25RTD@@@/$$name_AX25RTD/g" \
+ -e "s/@@@ax25rtctl@@@/$$name_ax25rtctl/g" \
+ -e "s/@@@Ax25rtctl@@@/$$name_Ax25rtctl/g" \
+ -e "s/@@@AX25RTCTL@@@/$$name_AX25RTCTL/g" \
+ ax25rtctl.man > ax25rtctl.1.tmp && \
+ mv ax25rtctl.1.tmp ax25rtctl.1;
+
+ax25rtd.conf.5: ax25rtd.conf.man
+ name_ax25rtd=$$(echo ax25rtd | sed -e '$(transform)') \
+ name_Ax25rtd=$$(echo $$name_ax25rtd | sed -r 's@^(.)@\U\1\E@') && \
+ name_AX25RTD=$$(echo $$name_ax25rtd | sed -r 's@^(.*)@\U\1\E@') && \
+ name_ax25rtctl=$$(echo ax25rtctl | sed -e '$(transform)') && \
+ name_Ax25rtctl=$$(echo $$name_ax25rtctl | sed -r 's@^(.)@\U\1\E@') && \
+ name_AX25RTCTL=$$(echo $$name_ax25rtctl | sed -r 's@^(.*)@\U\1\E@') && \
+ sed -e "s/@@@ax25rtd@@@/$$name_ax25rtd/g" \
+ -e "s/@@@Ax25rtd@@@/$$name_Ax25rtd/g" \
+ -e "s/@@@AX25RTD@@@/$$name_AX25RTD/g" \
+ -e "s/@@@ax25rtctl@@@/$$name_ax25rtctl/g" \
+ -e "s/@@@Ax25rtctl@@@/$$name_Ax25rtctl/g" \
+ -e "s/@@@AX25RTCTL@@@/$$name_AX25RTCTL/g" \
+ ax25rtd.conf.man > ax25rtd.conf.5.tmp && \
+ mv ax25rtd.conf.5.tmp ax25rtd.conf.5;
+
installconf:
$(mkinstalldirs) $(DESTDIR)$(AX25_SYSCONFDIR)
@list='$(etcfiles)'; for p in $$list; do \
diff --git a/ax25rtd/ax25rtctl.8 b/ax25rtd/ax25rtctl.man
index 9fcbc06..1fb69f2 100644
--- a/ax25rtd/ax25rtctl.8
+++ b/ax25rtd/ax25rtctl.man
@@ -1,12 +1,12 @@
-.TH AX25RTCTL 8 "11 November 2003" Linux "Linux Programmer's Manual"
+.TH @@@AX25RTCTL@@@ 8 "11 November 2003" Linux "Linux Programmer's Manual"
.SH NAME
-ax25rtctl \- AX.25 routing control program
+@@@ax25rtctl@@@ \- AX.25 routing control program
.SH SYNOPSIS
-.B ax25rtctl [options]
+.B @@@ax25rtctl@@@ [options]
.SH DESCRIPTION
.LP
-.B ax25rtctl
-is a program to control ax25rtd. There are several options:
+.B @@@ax25rtctl@@@
+is a program to control @@@ax25rtd@@@. There are several options:
.TP
.B -a, --add ax25 <callsign> <dev> <time> [digipeater]
Add an entry to the AX.25 routing table. If time is "0"
@@ -43,7 +43,7 @@ Reloads the config file /etc/ax25/ax25rtd.conf. This will
*not* affect the caches or the heard list.
.TP
.B -q, --shutdown
-Same as 'killall -TERM ax25rtd' ;-)
+Same as 'killall -TERM @@@ax25rtd@@@' ;-)
.TP
.B -V, --version
Prints version.
@@ -53,11 +53,11 @@ Note that you can specify either the port name (as defined in
conflict (i.e. port scc0 is in fact interface scc3, and vica versa), the
interface name has precedence over the port name. Example:
- ax25rtctl --add ax25 dl0tha scc3 0 db0pra
+ @@@ax25rtctl@@@ --add ax25 dl0tha scc3 0 db0pra
is equivalent to
- ax25rtctl --add ax25 dl0tha 9k6 0 dbpra
+ @@@ax25rtctl@@@ --add ax25 dl0tha 9k6 0 dbpra
All commands return port names in their output, though.
With one exception: ax25_routes and ip_routes use interface names.
@@ -66,7 +66,7 @@ With one exception: ax25_routes and ip_routes use interface names.
/etc/ax25/ax25rtd.conf
.SH "SEE ALSO"
.BR ax25rtd.conf (5),
-.BR ax25rtd (8).
+.BR @@@ax25rtd@@@ (8).
.LP
.SH AUTHORS
.nf
diff --git a/ax25rtd/ax25rtd.conf.5 b/ax25rtd/ax25rtd.conf.man
index eb0f03c..30741ca 100644
--- a/ax25rtd/ax25rtd.conf.5
+++ b/ax25rtd/ax25rtd.conf.man
@@ -6,7 +6,7 @@ ax25rtd.conf \- ax25 routing daemon configuration file
.SH DESCRIPTION
-The file /etc/ax25/ax25rtd.conf is the configuration file for ax25rtd.
+The file /etc/ax25/ax25rtd.conf is the configuration file for @@@ax25rtd@@@.
The parameters of the options shown here are the default values except the
ones marked with (example)
.PP
@@ -14,7 +14,7 @@ ax25-maxroutes 4096
.TP
ip-maxroutes 4096
The maximum size of the three lists / caches. On overflow,
-ax25rtd will substitute the oldest entry with the new one.
+@@@ax25rtd@@@ will substitute the oldest entry with the new one.
.TP
iproute2-table radio
@@ -27,7 +27,7 @@ directly?).
If not set or empty, routes are set in the normal, default, manner.
Please configure /etc/iproute2/rt_protos with
- 44 ax25rtd
+ 44 @@@ax25rtd@@@
and /etc/iproute2/rt_tables with
@@ -49,9 +49,9 @@ you have to use port names as defined in axports(5) here,
anywhere else you may use the port or the device name.
.TP
ax25-learn-routes no
-Set this to "yes", ax25rtd will add the routing information
+Set this to "yes", @@@ax25rtd@@@ will add the routing information
for every heard frame (with complete digipeater path) to the
-kernel AX.25 routing table. Note that ax25rtd's internal cache
+kernel AX.25 routing table. Note that @@@ax25rtd@@@'s internal cache
will be updated anyway, regardless of this option.
.TP
ax25-learn-only-mine no
@@ -64,7 +64,7 @@ ax25-learn-routes) the kernel routing table.
ax25-add-path db0ach (example)
This is useful on DAMA digipeaters. In this case, the DAMA
master has to be used for _every_ AX.25 connection, thus
-ax25rtd will add this digipeater(s) to every target we learn
+@@@ax25rtd@@@ will add this digipeater(s) to every target we learn
that has no digipeater path (yet). "db0ach" is just an
example here.
.TP
@@ -73,17 +73,17 @@ You can specify more calls as calls here that belong to
this interface... "dl1bke" and "dl1bke-8" are examples.
.TP
ip-learn-routes no
-If set to "yes", ax25rtd will modify the IP routing table if it
+If set to "yes", @@@ax25rtd@@@ will modify the IP routing table if it
receives an IP frame (directed to us). This is dangerous!
-It should not screw up your routing table, though. Ax25rtd
+It should not screw up your routing table, though. @@@Ax25rtd@@@
recognizes the netmask of the device and will adjust the route
only if it fits the netmask and the old route points to
-one of the devices ax25rtd knows about (hence an AX.25 device).
+one of the devices @@@ax25rtd@@@ knows about (hence an AX.25 device).
The problems begin if you have more than one port and a user
is able to hear your outgoing traffic on at least two of them.
-Due to technical reasons ax25rtd adjusts the route _after_ the
+Due to technical reasons @@@ax25rtd@@@ adjusts the route _after_ the
kernel has sent the reply to the received TCP frame already.
This has technical reasons.
@@ -97,7 +97,7 @@ I strongly recommend to set a network route instead, i.e.:
route add -net 44.0.0.0 scc3
-Note that ax25rtd's internal cache will be updated anyway,
+Note that @@@ax25rtd@@@'s internal cache will be updated anyway,
regardless of this option.
.TP
irtt <irtt>
@@ -111,7 +111,7 @@ sets the irtt to 10 seconds. A value of 0 disables this
feature (default).
.TP
ip-adjust-mode no
-If you set this option to "yes" ax25rtd will change the IP
+If you set this option to "yes" @@@ax25rtd@@@ will change the IP
encapsulation mode according to the last received IP frame.
The problem with this option is that the kernel AX.25 sends
@@ -119,7 +119,7 @@ a received IP frame to the IP layer regardless if it was
sent in UI frame encapsulation "mode datagram (dg)" or
in I frame encaps, hence in an AX.25 connection, "mode virtual
connect (vc)". The Linux kernel will respond to this frame
-before ax25rtd can adjust the mode. If the remote does the
+before @@@ax25rtd@@@ can adjust the mode. If the remote does the
same... You get the picture.
Don't use this feature unless you know what you are doing.
@@ -128,12 +128,12 @@ arp-add no
This option, if set to "yes", changes the ARP table to the
source callsign of the received frame. It should be harmless,
just has the the effect that if it is a new entry, the Linux
-ARP code will send one ARP request before ax25rtd has adjust
+ARP code will send one ARP request before @@@ax25rtd@@@ has adjust
the ARP table. If there was already an existing ARP entry
for this IP route, one IP datagram will be sent to the old
address. Not really a problem, I hope.
.SH "SEE ALSO"
-.BR ax25rtd (8),
+.BR @@@ax25rtd@@@ (8),
.BR ax25rtctl (8).
.LP
.SH AUTHORS
diff --git a/ax25rtd/ax25rtd.8 b/ax25rtd/ax25rtd.man
index 3646484..1f91815 100644
--- a/ax25rtd/ax25rtd.8
+++ b/ax25rtd/ax25rtd.man
@@ -1,11 +1,11 @@
-.TH AX25RTD 8 "11 November 2003" Linux "Linux Programmer's Manual"
+.TH @@@AX25RTD@@@ 8 "11 November 2003" Linux "Linux Programmer's Manual"
.SH NAME
-ax25rtd \- AX.25 routing daemon
+@@@ax25rtd@@@ \- AX.25 routing daemon
.SH SYNOPSIS
-.B ax25rtd
+.B @@@ax25rtd@@@
.SH DESCRIPTION
.LP
-.B ax25rtd
+.B @@@ax25rtd@@@
is a daemon that:
.LP
- emulates the ceased "autorouter" of Linux Kernel AX.25
@@ -20,22 +20,22 @@ traffic on your ports and uses this information to setup AX.25 routes. This
can be turned on or off by altering the configuration file
/etc/ax25/ax25rtd.conf.
.LP
-Ax25rtd provides a socket /var/ax25/ax25rtd/control which is used for
+@@@Ax25rtd@@@ provides a socket /var/ax25/ax25rtd/control which is used for
runtime maintainance through
-.B ax25rtctl
+.B @@@ax25rtctl@@@
or to set up new routes by other
daemons (a Flexnet router, perhaps?)
.LP
-On startup ax25rtd reads the configuration file and afterwards preloads
+On startup @@@ax25rtd@@@ reads the configuration file and afterwards preloads
the caches from the files /var/ax25/ax25rtd/ax25_routes and
/var/ax25/ax25rtd/ip_routes. On SIGTERM or
-.B ax25rtctl --save
+.B @@@ax25rtctl@@@ --save
it saves the caches to those files.
.SH FILES
/etc/ax25/ax25rtd.conf
.SH "SEE ALSO"
.BR ax25rtd.conf (5),
-.BR ax25rtctl (8).
+.BR @@@ax25rtctl@@@ (8).
.LP
.SH AUTHORS
.nf