Commits
- Commit:
d19951cf0373f6217bce2f97489bc46d6a8837ef
- From:
- Omar Polo <op@omarpolo.com>
- Date:
rename `mime MIME EXT' to `map MIME to-ext EXT'
With the newish automatic string concatenation, options like `mime'
that accepts two strings as parameter start to become ambiguous: which
strings gets concatenated? Instead of trying to document in the
manpage which argument(s) is subject to string concatenation, do the
concat always and introduce a separator. In the case of mime,
`to-ext' now acts as a separator to distinguish. While there, also
use a new keyword because it sounds better.
It's dead-easy to upgrade to the new configuration, possibly with some
sed magic, but for the moment the old `mime' form is preserved: (with
a warning!) Will be dropped in the next release.
- Commit:
321341f6c09b8d51f6ed137833300af5417a3b61
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add -T timeout to gg; don't let the regress test hang
- Commit:
6edcfca97fb01418cfdb8a2595060a63b7471d48
- From:
- Omar Polo <op@omarpolo.com>
- Date:
try to preserve as much as possible CFLAGS and LDFLAGS from env
but still try to autodetect with pkg-config if they aren't provided.
Passing CFLAGS/LDFLAGS from the command line will still override the
guessed ones.
- Commit:
137def5ff4c0f9720391ca88191cf9fee6d8ae9a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reworked seccomp filter
* SECCOMP_AUDIT_ARCH extended to support more architectures
* relax fcntl policy: allow the syscall regardless of the flags
* wrap every syscall in a ifdef, and add some (statx, fcntl64, ...)
used in x86
Some bits were taken from dhcpcd[0], thanks!
#4 related
[0]: https://roy.marples.name/git/dhcpcd/blob/HEAD:/src/privsep-linux.c
- Commit:
98f521782249d75bc807e5686266f65850098fd8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
[config] concat two or more strings next to each others
- Commit:
6b86655a10753eae668e839207692d9d43138679
- From:
- Omar Polo <op@omarpolo.com>
- Date:
don't require the strict order macro > options > servers
- Commit:
f98e9045aef95fe28972d477ee549974c7cefb9f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add -D to define macros from the cmd line
- Commit:
3b21cca385c403247960cfe9385dda1d56f28670
- From:
- Omar Polo <op@omarpolo.com>
- Date:
allow to define macros in the config file
Macros can be defined at the top of the configuration file:
dir = "/var/gemini"
cert = "/etc/keys"
and re-used later, for example
server "foo" {
root "$dir/foo" # -> /var/gemini/foo
cert "$cert/foo.pem" # -> /etc/keys/foo.pem
}
- Commit:
5777923bb08a51b04537a127c8514186cd276a70
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use getopt_long, add --help as synonym of -h and -V/--version
- Commit:
2c43dcceb6f462a46da93b6e9a6b3c4617e70823
- From:
- Omar Polo <op@omarpolo.com>
- Date:
document `log' option
- Commit:
74f0778b9ae93a700d8b0f759b05f24e69f54921
- From:
- Omar Polo <op@omarpolo.com>
- Date:
drop the dependency on lex by implementing yylex by ourselves
The actual implementation is based off doas' parse.y. This gave us
various benefits, like cleaner code, \ to break long lines, better
handling of quotes etc...
- Commit:
c92b802b6a78a4281f66b02d935391086959dc4b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `param' keyword
- Commit:
f740b61b03c9e31f4915ee7d7444d64fc320b41c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
more params from and send a custom list
- Commit:
3a1bd9ab49a5bb7bcffc5d4f2222ef0993e7f150
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync
- Commit:
1eb3631d10e20f089be8f5bb7b81505a068813a4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
certificate generation (bugfix and improvement)
don't add gmid as organisation when generating the certificate, and
set the version to 3, so it's compatible with java/android clients.
Found by Gnuserland, thanks!