1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-09 06:20:43 +00:00
Commit Graph

93 Commits

Author SHA1 Message Date
Augustin Fabre
9c0b6a66a4
Rework logging logic
This commit fixes issue #42 [0].

Debug level messages are masked unless option `-d' (debug) is used. In this
case, all messages are also printed to stderr.

syslog.h is included in the base POSIX only since issue 6 (POSIX:2001) [1].

`LOG_UPTO' is an extension, not defined by POSIX; an implementation is provided
here for platforms where it is missing.

This code is inspired by OpenBSD's httpd(8) logging functions [2].

[0] https://github.com/gophernicus/gophernicus/issues/42
[1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/setlogmask.html
[2] https://cvsweb.openbsd.org/src/usr.sbin/httpd/log.c?rev=1.14&content-type=text/x-cvsweb-markup
2020-10-12 20:21:06 +02:00
fosslinux
c74cfb33b6
Come on 2020-06-09 14:03:20 +10:00
fosslinux
39b4bd94fe
Cleanup makefile, do not install docs
Now that we have a manpage, it is much better for the user to
use the manpage.

The LICENSE has no need to be installed.
2020-06-08 13:13:41 +10:00
Augustin Fabre
647d9c762d
Declare function prototypes explicitly
This make it easier to manage separate compilation units (static functions and
global variables, local type definitions, etc.)

The generated header file `functions.h' caused a circular dependency problem;
it wasn't updated automatically when changes were made to the sources (e.g.
new function definition). The sources can't be in the dependency list of
`functions.h' in the Makefile, because `functions.h' is in the dependency list
of each source file. GNU make is able to ignore the circular dependency but not
BSD make.

At any rate, keeping the prototype list up-to-date is easy, because the
compiler will complain if a function is used in a compilation unit but defined
in an other one.

It also makes static analysis easier out of the box.
2020-06-08 13:10:06 +10:00
fosslinux
4587014a86
Move LDFLAGS after -o 2020-04-30 13:54:46 +10:00
Augustin Fabre
e1026bae0d
Rework manual page
* Renamed gophernicus.1.man to gophernicus.1, the standard name for section 1
  manual pages.
* Added synopsis of command.
* Added markup for options, arguments, paths, authors, links.
2020-04-14 15:44:37 +02:00
Augustin Fabre
53ccff987b
Propagate FLAGS value to recursive MAKE calls 2020-04-04 12:41:08 +02:00
Augustin Fabre
5acd7854cc
Fix memory leak in gophermap parsing
FILE pointer `fp' was not closed when the gophermap parsing returned
early.
2020-04-04 12:40:15 +02:00
fosslinux
0dc1e45278
Merge pull request #60 from bdeshi/fork
replace backtick-enclosed cmd invocations with $(cmd)
2020-02-05 19:49:07 +00:00
fosslinux
0fe375350f
Change LDFLAGS so that -l works 2020-02-05 19:35:08 +11:00
fosslinux
ee757fedcc
Remove EXTRA vars in Makefile 2020-02-05 19:18:00 +11:00
bdeshi
0014aa3355 replace cmd invocations with $(cmd) 2020-02-05 13:27:27 +06:00
bdeshi
a263037e94 rename: README.Gophermap -> README.gophermap 2020-02-05 10:41:44 +06:00
Yargo
87362cd316 Filetypes2 (#57)
Re-do filetypes system.

By hb9nks.
2020-01-20 22:36:02 +00:00
Emil Engler
d27448b954
build: macOS travis fix 2020-01-12 13:48:01 +01:00
Emil Engler
b2572b16db
build: Force create symlink 2020-01-12 11:35:16 +01:00
Emil Engler
8949d78794
refactor: New hierarchy and refactored Makefile 2020-01-11 20:41:11 +01:00
fosslinux
59e000362d use user-defined CC by default 2019-12-31 10:55:43 +11:00
fosslinux
98457da3ff update development version to 3.1; next release will be 3.1 2019-11-15 07:29:12 +11:00
fosslinux
c782dc22f9 gophermap -> gophermap.sample, be more descriptive with the name 2019-10-20 07:50:37 +11:00
fosslinux
34cbd01ac3 add manpage
closes #9
2019-10-01 17:33:31 +10:00
fosslinux
5c6f9c37e2 clean up Makefile 2019-09-30 16:46:56 +10:00
fosslinux
2f815b3a69 changelog update, todo makefile fix 2019-09-12 18:27:57 +10:00
fosslinux
72410eea99
forgot to change makefile 2019-07-23 11:51:44 +10:00
fosslinux
8cc72c289a Revert "update various documentation for 3.0"
This reverts commit c2da2d70b6, reversing
changes made to a01d25eabc.
2019-07-17 04:59:54 +10:00
fosslinux
c2da2d70b6 update various documentation for 3.0 2019-07-09 17:59:10 +10:00
Yargo
5d23cabd65 replace executable name, remove trailing spaces 2019-07-09 17:56:13 +10:00
fosslinux
efdea56b8e version 3.0 release
* release version 3.0
* change appropriate documentation
* change debian packaging for 3.0
2019-07-09 17:56:13 +10:00
fosslinux
d80ddc482c Travis CI -> Drone CI 2019-07-09 17:56:13 +10:00
fosslinux
57e0f9a827 version 3.0 release
* release version 3.0
* change appropriate documentation
* change debian packaging for 3.0
2019-07-09 17:55:26 +10:00
fosslinux
c290cdd192 Travis CI -> Drone CI 2019-07-09 17:55:26 +10:00
fosslinux
8bd73f99d0 oops, to md broke the install 2019-04-30 19:27:38 +10:00
David Griffith
93e4ff809c Another caps nit 2019-03-12 05:25:03 -07:00
David Griffith
cdc296f555 Caps nit 2019-03-12 05:23:40 -07:00
David Griffith
21707ee005 Slight tweak to make update-inetd happy. 2019-03-12 05:18:43 -07:00
Yargo
7c2645b43d add uninstall-inetd without update-inetd 2019-03-09 21:06:38 +00:00
Yargo
f9bbe46a03 correct handling of inetd.conf modification and restart 2019-03-09 16:54:45 +00:00
Yargo
df6adc5bb2 begin inetd handling without update-inetd 2019-03-09 15:22:03 +00:00
Yargo
b56d8a3d47 Merge branch 'makefile' of https://github.com/DavidGriffith/gophernicus into makefile 2019-03-09 14:17:09 +00:00
Yargo
ec61031328 bump default version, markdownify README and adapt Makefile 2019-03-06 00:23:07 +00:00
David Griffith
c82f8d2137 Use update-inetd(1) instead of telling admin to edit inetd.conf directly. 2019-03-03 17:43:26 -08:00
Yargo
3cd69e22dd remove unnecessary naming, prepare for taking Kim out of developer responsibility 2019-03-01 22:28:28 +00:00
Yargo
0a9d62939a add -nx flag to block execution of all files and scripts 2019-02-18 16:11:04 +00:00
David Griffith
805b35f1de Remove stray trailing spaces. 2019-01-02 21:31:52 -08:00
David Griffith
41848c8ec4 Allow for the -j flag (parallel make) to work. 2019-01-02 21:31:00 -08:00
David Griffith
522ce27c92 Add an uninstall-inetd target. 2019-01-02 21:25:45 -08:00
David Griffith
52f23fa663 Allow for installation for xinetd or inetd when systemd is present. 2019-01-02 20:47:39 -08:00
Kim Holviala
f56ae187ef Build fixes for NetBSD and TCP wrappers (libwrap) 2018-01-29 14:42:12 +02:00
Kim Holviala
c1ea262e35 Changed rolling release automatic version number scheme 2018-01-28 20:56:45 +02:00
Kim Holviala
59a04af5a7 Removed all references to the old .tar.gz release files 2018-01-28 17:55:27 +02:00