Begin preliminary work on an OpenBSD port.

This commit is contained in:
Jordan Bancino 2022-11-20 01:53:15 +00:00
parent 845658e0ac
commit 247aeabf66
3 changed files with 11 additions and 19 deletions

7
contrib/Makefile.OpenBSD Normal file
View file

@ -0,0 +1,7 @@
build:
sh tools/bin/td
install:
install build/telodendria $(PREFIX)/bin/telodendria
install -D contrib/production.conf $(PREFIX)/share/examples/telodendria/telodendria.conf
find man -name 'telodendria*\.[1-8]' -exec install {} $(PREFIX)/{} \;

View file

@ -1,11 +0,0 @@
#!/bin/ksh
daemon="/usr/local/bin/telodendria"
daemon_timeout=5
. /etc/rc.d/rc.subr
rc_bg=YES
rc_stop_signal=INT
rc_cmd $1

View file

@ -43,14 +43,10 @@ for developers, and so do not need to be installed to the system.
An init script. People that wish to install Telodendria to their system An init script. People that wish to install Telodendria to their system
expect it to be integrated enough that Telodendria can be easily started at expect it to be integrated enough that Telodendria can be easily started at
boot, and otherwise managed by the system's daemon tools, be it systemd, or boot, and otherwise managed by the system's daemon tools, be it systemd, or
another init system. An init script suitable for your platform might be another init system. Consult your system's documentation for writing an
available in init script. Do note that Telodendria does not fork itself to the background;
.Pa contrib/ , the init script should do that. Also note that Telodendria responds to SIGINT,
but if not, it should be trivial to write your own. If you do end up making so a SIGINT should be sent to stop Telodendria instead of a SIGTERM or SIGKILL.
an official package for your system, feel free to submit your init script
to be added to the
.Pa contrib/
directory.
.It .It
A sample A sample
.Pa telodendria.conf .Pa telodendria.conf