From e62afa7359d9734e57a843beac68cea138fd19cc Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sun, 11 Dec 2011 23:00:10 +0000 Subject: 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. --- ax25mond/Makefile.am | 20 ++++++++++++++++++++ ax25mond/ax25mond.8 | 19 ------------------- ax25mond/ax25mond.conf.5 | 30 ------------------------------ ax25mond/ax25mond.conf.man | 30 ++++++++++++++++++++++++++++++ ax25mond/ax25mond.man | 19 +++++++++++++++++++ 5 files changed, 69 insertions(+), 49 deletions(-) delete mode 100644 ax25mond/ax25mond.8 delete mode 100644 ax25mond/ax25mond.conf.5 create mode 100644 ax25mond/ax25mond.conf.man create mode 100644 ax25mond/ax25mond.man (limited to 'ax25mond') diff --git a/ax25mond/Makefile.am b/ax25mond/Makefile.am index 6499f30..af5e061 100644 --- a/ax25mond/Makefile.am +++ b/ax25mond/Makefile.am @@ -5,6 +5,26 @@ man_MANS = ax25mond.8 ax25mond.conf.5 EXTRA_DIST = $(man_MANS) $(etcfiles) +ax25mond.8: ax25mond.man + name_ax25mond=$$(echo call | sed -e '$(transform)') \ + name_Ax25mond=$$(echo $$name_ax25mond | sed -r 's@^(.)@\U\1\E@') && \ + name_AX25MOND=$$(echo $$name_ax25mond | sed -r 's@^(.*)@\U\1\E@') && \ + sed -e "s/@@@ax25mond@@@/$$name_ax25mond/g" \ + -e "s/@@@Ax25mond@@@/$$name_Ax25mond/g" \ + -e "s/@@@AX25MOND@@@/$$name_AX25MOND/g" \ + ax25mond.man > ax25mond.1.tmp && \ + mv ax25mond.1.tmp ax25mond.1; + +ax25mond.conf.5: ax25mond.conf.man + name_ax25mond=$$(echo call | sed -e '$(transform)') \ + name_Ax25mond=$$(echo $$name_ax25mond | sed -r 's@^(.)@\U\1\E@') && \ + name_AX25MOND=$$(echo $$name_ax25mond | sed -r 's@^(.*)@\U\1\E@') && \ + sed -e "s/@@@ax25mond@@@/$$name_ax25mond/g" \ + -e "s/@@@Ax25mond@@@/$$name_Ax25mond/g" \ + -e "s/@@@AX25MOND@@@/$$name_AX25MOND/g" \ + ax25mond.conf.man > ax25mond.conf.5.tmp && \ + mv ax25mond.conf.5.tmp ax25mond.conf.5; + ax25mond_LDADD = $(AX25_LIB) ax25mond_SOURCES = \ diff --git a/ax25mond/ax25mond.8 b/ax25mond/ax25mond.8 deleted file mode 100644 index 2ee9629..0000000 --- a/ax25mond/ax25mond.8 +++ /dev/null @@ -1,19 +0,0 @@ -.TH AX25MOND 8 "30 January 1999" Linux "Linux System Managers Manual" -.SH NAME -ax25mond \- dump the AX.25 network traffic and and provide sockets -where the received data will be retransmitted -.SH SYNOPSIS -.B ax25mond [-v|--version] -.SH DESCRIPTION -.LP -.B Ax25mond -will first read it's configuration file /etc/ax25/ax25mond.conf. It will -then wait for connects on the sockets specified in this file. When -connected, it will transmit all data which it has received on the AX.25 -monitor socket. -.SH OPTIONS -.TP 15 -.BI "\-v, \-\-version" -Displays the version number and some copyright information. -.SH AUTHOR -Johann Hanne, DH3MB diff --git a/ax25mond/ax25mond.conf.5 b/ax25mond/ax25mond.conf.5 deleted file mode 100644 index 66d343e..0000000 --- a/ax25mond/ax25mond.conf.5 +++ /dev/null @@ -1,30 +0,0 @@ -.TH AX25MOND.CONF 5 "30 January 1999" Linux "Linux Programmer's Manual" -.SH NAME -ax25mond.conf \- Specify the sockets which ax25mond will provide. -.SH DESCRIPTION -.LP -The -.B ax25mond.conf -file specifies the internet- and unix-sockets which ax25mond(8) -will provide. Example: -.LP -# Create an internet socket on port 1234 where all the -.br -# AX.25 traffic will be transmitted -.br -rxtx *:1234 -.br -# Create an unix socket where only the received AX.25 -.br -# traffic will be transmitted -.br -rx unix:/var/spool/ax25/monitor -.br -.LP -You may specify up to 5 sockets (definable in ax25mond.c) and ax25mond -will accept up to 50 connects (also definable in ax25mond.c). -.SH FILES -.LP -/etc/ax25/ax25mond.conf -.SH "SEE ALSO" -.BR ax25mond (8). diff --git a/ax25mond/ax25mond.conf.man b/ax25mond/ax25mond.conf.man new file mode 100644 index 0000000..cc8a827 --- /dev/null +++ b/ax25mond/ax25mond.conf.man @@ -0,0 +1,30 @@ +.TH AX25MOND.CONF 5 "30 January 1999" Linux "Linux Programmer's Manual" +.SH NAME +ax25mond.conf \- Specify the sockets which @@@ax25mond@@@ will provide. +.SH DESCRIPTION +.LP +The +.B ax25mond.conf +file specifies the internet- and unix-sockets which @@@ax25mond@@@(8) +will provide. Example: +.LP +# Create an internet socket on port 1234 where all the +.br +# AX.25 traffic will be transmitted +.br +rxtx *:1234 +.br +# Create an unix socket where only the received AX.25 +.br +# traffic will be transmitted +.br +rx unix:/var/spool/ax25/monitor +.br +.LP +You may specify up to 5 sockets (definable in ax25mond.c) and @@@ax25mond@@@ +will accept up to 50 connects (also definable in ax25mond.c). +.SH FILES +.LP +/etc/ax25/ax25mond.conf +.SH "SEE ALSO" +.BR @@@ax25mond@@@ (8). diff --git a/ax25mond/ax25mond.man b/ax25mond/ax25mond.man new file mode 100644 index 0000000..f62ae83 --- /dev/null +++ b/ax25mond/ax25mond.man @@ -0,0 +1,19 @@ +.TH @@@AX25MOND@@@ 8 "30 January 1999" Linux "Linux System Managers Manual" +.SH NAME +@@@ax25mond@@@ \- dump the AX.25 network traffic and and provide sockets +where the received data will be retransmitted +.SH SYNOPSIS +.B @@@ax25mond@@@ [-v|--version] +.SH DESCRIPTION +.LP +.B Ax25mond +will first read it's configuration file /etc/ax25/ax25mond.conf. It will +then wait for connects on the sockets specified in this file. When +connected, it will transmit all data which it has received on the AX.25 +monitor socket. +.SH OPTIONS +.TP 15 +.BI "\-v, \-\-version" +Displays the version number and some copyright information. +.SH AUTHOR +Johann Hanne, DH3MB -- cgit v1.2.3