Commit Graph

88 Commits

Author SHA1 Message Date
Michael Forney ee01b2f12b openbsd: Fix type of fts_compar 2026-04-03 04:03:42 -07:00
Michael Forney c2e8e4109f openbsd: Various portability fixes 2026-04-03 03:49:44 -07:00
Michael Forney a3ea5c71ea openbsd: Use cloudflare mirror
The fastly mirror is very slowly for me.
2026-03-12 23:44:08 -07:00
Michael Forney 2eddb78d1b Store dist files in config.distdir
This makes it easy to remove old distfiles with `git clean -f dist`.
2026-03-12 16:40:37 -07:00
Michael Forney ff1d7cf0fd openbsd: Update to 7.8 2026-03-04 15:54:45 -08:00
Michael Forney 06624ed786 openbsd: Update to 7.7 2025-04-29 18:08:11 -07:00
Michael Forney ac78d5370a openbsd: Build with -std=gnu17 to fix build with gcc 15.1.0 2025-04-29 01:13:05 -07:00
Michael Forney 95cf1ad5e0 Use our own pax 2025-04-28 14:21:54 -07:00
Michael Forney 5534966dac openbsd: Use _Noreturn instead of attribute for __dead 2024-10-10 23:15:48 -07:00
Michael Forney 0bb6cefb50 acme-client: Support certificate signatures with SHA384 and SHA512
It seems letsencrypt is now using SHA384.

Also, ignore expired certificates when extracting SAN entries. We
want to trigger renewal in this case rather than exiting with
failure.
2024-10-10 23:15:48 -07:00
hovercats 2f3d08a2e0 openbsd: fix url not working. closes #71 2024-01-01 18:59:37 +01:00
Michael Forney 0ae82dcc8b openbsd: Update to 7.3 2023-08-25 13:09:09 -07:00
Michael Forney ca8c261bcf openbsd: Add notime option to nc 2022-09-08 11:38:11 -07:00
Michael Forney c07852df81 openssh: Update to 9.0 2022-09-08 09:31:18 -07:00
Michael Forney 569b21ba94 openbsd: Update to 7.1 2022-09-06 23:42:08 -07:00
Michael Forney 2a1b8ab63f openbsd: Update to 7.0 2022-02-18 02:58:00 -08:00
Michael Forney 32023c3ff5 acme-client: Include PEM null terminator in buffer allocation 2021-05-14 23:25:50 -07:00
Michael Forney 7457008fe4 x509cert: Update to 0.2 2021-05-10 23:34:19 -07:00
Michael Forney 638ca3b1f4 acme-client: Port to BearSSL and x509cert 2021-05-06 02:23:45 -07:00
Michael Forney 13519fb0bf Revert "openbsd: Fix fetch script sys.tar.gz patterns"
This reverts commit 24300b7554.

These no longer use the ./ prefix in 6.9.
2021-05-04 22:34:28 -07:00
Michael Forney 93722c2dbe openbsd: subninja for rsync is no longer needed
rsync doesn't depend on MD4 from OpenSSL since 6d060d5c, so we don't
need the subninja.
2021-05-03 16:40:07 -07:00
Michael Forney a5c305dc39 openbsd: Use reallocarray from musl 2021-05-02 23:00:11 -07:00
Michael Forney dce7387ae2 openbsd: Update to 6.9 2021-05-01 01:48:08 -07:00
Michael Forney 1a213cc952 openbsd: doas: Use == -1 for error checking for consistency 2021-04-05 20:09:05 -07:00
Michael Forney 7286f7e8e7 openbsd: doas: Use PATH=/bin when cmd is not specified
This behavior matches what is documented doas(1) and was originally
changed in OpenBSD 6.6.

Take the opportunity to simplify handling of PATH a bit.
2021-04-05 20:07:42 -07:00
Michael Forney 24300b7554 openbsd: Fix fetch script sys.tar.gz patterns
OpenBSD 6.8's sys.tar.gz uses paths prefixed by ./, so 'sys/sys/*'
does not match in most pax implementations. bsdtar appears to
normalize the paths so this went unnoticed.
2020-11-28 15:19:36 -08:00
Michael Forney d6c984d896 openbsd: Update to 6.8 2020-10-19 14:59:25 -07:00
Michael Forney 1f2e769865 openbsd: Explicitly list the libc headers that are required
Previously, we just added the openbsd header directories to the
search path with -idirafter to prevent openbsd headers from being
used where we already have musl headers.

However, if the system had its own version of the headers (such as
sys/tree.h), those would get preferred over the openbsd versions,
which may result in build failures due to slight incompatibilities.

To fix this, just isolate the few headers we do need into their own
directory, and include it normally (with -I/-isystem).
2020-10-01 13:36:42 -07:00
Michael Forney 2f32b84cb2 openbsd: Fix a few warnings 2020-06-05 03:01:44 -07:00
Michael Forney d4297a13c8 Use -isystem to include library headers
This way, warnings from headers that come from another package (in
particular linux-headers) won't show up when they get included.

To make sure we still track dependencies, use -MD instead of -MMD.
2020-06-05 03:01:44 -07:00
Michael Forney bb8087edd2 openbsd: Update to 6.7 2020-05-19 14:09:57 -07:00
Michael Forney 6a6672c57e Detect sha256 tool automatically 2020-05-08 13:49:57 -07:00
Michael Forney f74127556d Detect decompression tool automatically
This fixes cross-compilation from macOS, whose bsdtar does support
xz through liblzma, but does not have xz(1).
2020-05-08 13:05:22 -07:00
Michael Forney 0dbae24a86 Address some shellcheck warnings 2020-04-19 02:13:23 -07:00
Michael Forney 6d060d5cc1 rsync: Add implementation of MD4 to drop libressl dependency 2020-04-15 22:17:35 -07:00
Michael Forney 7a6fd386c2 acme-client: Fix build with old bison versions 2020-04-15 20:27:02 -07:00
Michael Forney ea72d6bab9 Use main compression tool instead of *cat variants 2020-04-15 19:09:56 -07:00
Michael Forney 3c7d1aadfb Allow overriding sha256 command through SHA256SUM
This way, oasis can be bootstrapped on other operating systems by
setting SHA256SUM='shasum -a 256'.
2020-04-15 19:09:56 -07:00
Michael Forney 5891d59419 openbsd: Fix tar patch to default to stdin
This can cause a segfault.
2020-01-17 01:03:11 -08:00
Michael Forney 7a114f9909 openbsd: Fix pax -p flag with symlinks 2020-01-10 21:40:44 -08:00
Michael Forney 815a6ee0db openbsd: Update .gitignore 2019-12-09 01:19:17 -08:00
Michael Forney ed4cf4f990 openbsd: Build nc against libtls-bearssl 2019-12-04 01:11:35 -08:00
Michael Forney 001f7af9b5 Build nc from openbsd sources instead of libressl 2019-12-04 01:11:35 -08:00
Michael Forney 0d1023ae1f acme-client: Build in a separate package directory 2019-12-04 00:52:51 -08:00
Michael Forney 4154ce4dd0 openbsd: Remove yacc in favor of byacc 2019-10-26 21:48:17 -07:00
Michael Forney 2cc03eb01e openbsd: Update to 6.6 2019-10-17 21:49:17 -07:00
Michael Forney af514c16aa openbsd: Include sys/sysmacros.h if necessary 2019-08-06 11:53:03 -07:00
Michael Forney fe0aae18e5 Use no-op static assert for defining away macros
Empty top-level declarations aren't allowed in ISO C.
2019-06-27 14:33:51 -07:00
Michael Forney 9a9f25b61b openbsd: Fix a few portability issues 2019-06-15 20:30:36 -07:00
Michael Forney cb743d8979 openbsd: Build rsync 2019-06-14 13:22:20 -07:00