tlsaware / danebot

Certbot wrapper for DANE TLSA-safe certificate Let's Encrypt certificate rollover.
BSD 2-Clause "Simplified" License
23 stars 1 forks source link

Add configure, make install, manual entry #2

Closed rafork closed 1 year ago

rafork commented 1 year ago

Hi, This is just some admin work that should hopefully make it a little easier for people to start using danebot.

There's a Makefile to check for prerequisites (make check), and to install danebot (make install).

There's a ./configure script to adapt the Makefile to the local system. It checks for install directories used by Linux, FreeBSD, OpenBSD, NetBSD, macOS/macports, and Solaris. And it includes the installation of the systemd service and timer on systems that have systemd, or it includes the installation of an anacron /etc/cron.weekly script on systems that have anacron (although that might just be Linux, not sure).

There's a manual entry which is just most of the README converted to manpage conventions (POD syntax).

And an /etc/default/danebot file (or similar) with defaults and documentation copied from the code.

And an INSTALL file to explain how to install and show the commands needed to do so.

It adds a .gitignore file to ignore the generated danebot.1 installable manpage.

It does change danebot itself, but only to put the reading of the defaults config file into a loop over a list of directories so as to adapt to different operating system preferences.