hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit 4523016fe96af6c2ee533c5d5d8d796227559f2f
parent 3d700b54d57b8a7db6f72048c655917308aee40a
Author: hhvn <hayden@haydenvh.com>
Date:   Mon,  8 Feb 2021 18:31:11 +0000

makefile hbbs.8[NEW]: add man page

Diffstat:
Ahbbs.8 | 28++++++++++++++++++++++++++++
Mmakefile | 4++++
2 files changed, 32 insertions(+), 0 deletions(-)

diff --git a/hbbs.8 b/hbbs.8 @@ -0,0 +1,28 @@ +.Dd DATE +.Dt hbbs 8 +.Sh NAME +.Nm hbbs +- hlircnet bulletin board system +.Sh SYNOPSIS +.Nm PREFIX/share/bin/wrapper.sh +.Sh DESCRIPTION +.Nm +is a paging & prompt-driven bulletin board system. +.Nm +reads from stdin and outputs to stdout - this means that it can be used in +conjunction with a so called "internet super server" like +.Xr xinetd 8 +and +.Xr inetd 8 +that will map these to the clients stdin/stdout. +.Sh CONFIGURATION +Configuration are done via the config.sh file created when +.Nm +is first run. Do not edit config.def.sh! +.Sh SEE ALSO +.Xr xinetd 8 "," +.Xr inetd 8 +.Sh AUTHOR +.Nm +was written by +.An Hayden Hamilton Aq Mt dev@haydenvh.com . diff --git a/makefile b/makefile @@ -1,5 +1,7 @@ PREFIX = /usr/local DATADIR = /var/bbs +DATE = `date +%d\ %b\ %Y` +COMMIT = `git log | head -n 1 | awk '{print $2}' | cut -c-7` default: less @@ -16,6 +18,7 @@ install: clean chmod 755 $(PREFIX)/share/hbbs/bin/wrapper.sh mkdir -p $(DATADIR)/ chmod 777 $(DATDIR)/ + sed "s~PREFIX~$(PREFIX)~;s/DATE/$(DATE), $(COMMIT)/" < hbbs.8 > $(PREFIX)/share/man/man8/hbbs.8 clean: @echo Cleaning... @@ -26,3 +29,4 @@ uninstall: rm -rf $(DATADIR) rm -rf $(PREFIX)/share/hbbs rm /etc/xinetd.d/hbbs + rm $(PREFIX)/share/man/man8/hbbs.8