Edits and additions to satisfy lintian.
authorRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 1 Aug 2022 09:45:56 +0000 (19:45 +1000)
committerRalph Ronnquist <ralph.ronnquist@gmail.com>
Mon, 1 Aug 2022 09:45:56 +0000 (19:45 +1000)
Makefile
debian/control
hourglass-site.8.adoc [new file with mode: 0644]
hourglass-web.8.adoc [new file with mode: 0644]

index e320708d23f290c984888ecbe6bdf55cb4de313a..b5bcebdb7b92c27f0287e463189021aadd52e815 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ MAIN = command.lsp
 LSP = $(filter-out $(MAIN),$(wildcard *.lsp))
 BIN = hourglass hourglass-web hourglass-site
 DOCS = hourglass-guide.html hourglass-guide.pdf
-MANPGS = hourglass.8
+MANPGS = hourglass.8 hourglass-site.8 hourglass-web.8
 IMGS = $(wildcard *.png)
 OTHER = setup.sh hourglass.conf
 VERSION = 0.1
@@ -22,7 +22,7 @@ hourglass-site: sitetool
        mv sitetool/sitetool $@
 
 %.html: %.adoc
-       asciidoctor $< > $@
+       asciidoctor -a 'webfonts!' $< > $@
 
 %.pdf: %.adoc | $(IMGS)
        asciidoctor-pdf $< > $@
@@ -43,8 +43,8 @@ hourglass-$(VERSION).tgz: $(BIN) $(OTHER) $(DOCS) $(MANPGS) $(IMGS)
 dist: hourglass-$(VERSION).tgz
 
 ########################################################
-BINDIR = $(DESTDIR)/usr/local/bin
-MANDIR = $(DESTDIR)/usr/local/man/man8
+BINDIR = $(DESTDIR)/usr/bin
+MANDIR = $(DESTDIR)/usr/share/man/man8
 RUNDIR = $(DESTDIR)/var/lib/hourglass
 DOCDIR = $(DESTDIR)/usr/share/hourglass
 
@@ -53,8 +53,15 @@ INSTALLTARGETS += $(addprefix $(MANDIR)/,$(MANPGS))
 INSTALLTARGETS += $(addprefix $(DOCDIR)/,$(DOCS))
 INSTALLTARGETS += $(addprefix $(RUNDIR)/,$(OTHER))
 
+$(RUNDIR)/%.conf: %.conf
+       install -D -T $< $@
+       chmod a-x $@
+
+$(MANDIR)/% $(DOCDIR)/%:%
+       install -D -T $< $@
+       chmod a-x $@
 
-$(BINDIR)/% $(MANDIR)/% $(RUNDIR)/% $(DOCDIR)/%: %
+$(BINDIR)/% $(RUNDIR)/%: %
        install -D -T $< $@
 
 install: $(INSTALLTARGETS)
index 17e3790b54e56e0fc5e8e36032aa23d466e79015..765e471344441e7f793378eaba11dafdb36d97ca 100644 (file)
@@ -1,5 +1,5 @@
 Source: hourglass
-Section: unknown
+Section: misc
 Priority: optional
 Maintainer: Ralph Ronnquist <ralph.ronnquist@gmail.com>
 Build-Depends: debhelper-compat (= 13)
diff --git a/hourglass-site.8.adoc b/hourglass-site.8.adoc
new file mode 100644 (file)
index 0000000..29984d6
--- /dev/null
@@ -0,0 +1,22 @@
+= hourglass-site(8)
+:doctype: manpage
+:revdate: {sys:date "+%Y-%m-%d %H:%M:%S"}
+:COLON: :
+:EQUALS: =
+
+== NAME
+hourglass-site - Gui tool for editing the Hourglass site configuration.
+
+== SYNOPSIS
+hourglass-site
+
+== DESCRIPTION
+
+A simple Graphical editor for the site configuration variables.
+
+== FILES
+
+hourglass.conf[] is the sie configuration.
+
+== AUTHOR
+Ralph Rönnquist <ralph.ronnquist@gmail.com>
diff --git a/hourglass-web.8.adoc b/hourglass-web.8.adoc
new file mode 100644 (file)
index 0000000..318180e
--- /dev/null
@@ -0,0 +1,21 @@
+= hourglass-web(8)
+:doctype: manpage
+:revdate: {sys:date "+%Y-%m-%d %H:%M:%S"}
+:COLON: :
+:EQUALS: =
+
+== NAME
+hourglass-web - An HTTP server for reviewing and changing the
+Hourglass schedule remotely.
+
+== SYNOPSIS
+hourglass-web
+
+== DESCRIPTION
+
+This is a simple HTTP server for reviewing and changing the
+Hourglass schedule remotely.
+
+
+== AUTHOR
+Ralph Rönnquist <ralph.ronnquist@gmail.com>