12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- Subject: Install program and manpage as check_tang
- Author: Christoph Biedl <debian.axhn@manchmal.in-ulm.de>
- Date: 2020-12-28
- Bug: https://github.com/latchset/nagios-tang/issues/2
- --- a/meson.build
- +++ b/meson.build
- @@ -63,18 +63,18 @@
-
- asciidoctor = find_program('asciidoctor', required: false)
- if asciidoctor.found()
- - custom_target('nagios-tang.1',
- - command: [asciidoctor, '--attribute', 'reproducible', '--backend=manpage', '-D', meson.current_build_dir(), '@INPUT@'],
- + custom_target('check_tang.1',
- + command: [asciidoctor, '--attribute', 'reproducible', '--backend=manpage', '-D', meson.current_build_dir(), '@INPUT@', '-o', '@OUTPUT@' ],
- install_dir: join_paths(get_option('mandir'), 'man1'),
- input: 'nagios-tang.1.adoc',
- - output: 'nagios-tang.1',
- + output: 'check_tang.1',
- install: true,
- )
- else
- warning('Will not install man page due to missing dependencies!')
- endif
-
- -executable('tang', 'tang.c',
- +executable('check_tang', 'tang.c',
- install_dir: join_paths(get_option('libdir'), 'nagios', 'plugins'),
- dependencies: [http, jose],
- install: true,
- --- a/tang
- +++ b/tang
- @@ -40,4 +40,4 @@
- export PID=$!
- sleep 0.5
-
- -tang -u http://127.0.0.1:$port
- +check_tang -u http://127.0.0.1:$port
- --- a/nagios-tang.1.adoc
- +++ b/nagios-tang.1.adoc
- @@ -4,7 +4,7 @@
-
- == NAME
-
- -nagios-tang - A Nagios plugin for Tang
- +check_tang - A Nagios plugin for Tang
-
- == SYNOPSIS
-
- @@ -36,7 +36,7 @@
-
- A simple test against a localhost Tang server:
-
- - $ ./tang -u http://localhost/
- + $ check_tang -u http://localhost/
- OK|adv=21430 exc=44587 nkeys=2 nsigk=1 nexck=1
-
- == AUTHOR
|