Browse Source

Install binary and manpage as check_tang

Christoph Biedl 3 years ago
parent
commit
1f918cd647
2 changed files with 39 additions and 0 deletions
  1. 1 0
      debian/patches/series
  2. 38 0
      debian/patches/upstream.install-as-check-tang.patch

+ 1 - 0
debian/patches/series

@@ -1,2 +1,3 @@
 # patches for upstream
 upstream.use-asciidoctor-to-build-manpages.patch
+upstream.install-as-check-tang.patch

+ 38 - 0
debian/patches/upstream.install-as-check-tang.patch

@@ -0,0 +1,38 @@
+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