Commit Graph

11 Commits

Author SHA1 Message Date
Michael Forney
6415dc98e7 openbsd: Update to 6.2 2017-10-10 03:22:25 -07:00
Michael Forney
892d26c839 Check for negative snprintf return value 2017-10-07 13:27:36 -07:00
Michael Forney
c6e40d94f2 openbsd: Build nc 2017-06-19 23:25:40 -07:00
Michael Forney
4c2436940b openbsd: Allow using BearSSL for SHA512 2017-05-27 19:51:08 -07:00
Michael Forney
73c0a90073 openbsd: Use provided recallocarray instead of patching with explicit_bzero
When I originally looked at this, I only saw the malloc-internal
implementation, but it looks like they have left the original standalone
recallocarray.c implementation.
2017-05-02 23:22:02 -07:00
Michael Forney
42568142cd openbsd: Update to 6.1 2017-04-14 12:23:06 -07:00
Michael Forney
c01252ab1f openbsd/doas: Call openlog to set syslog identity 2017-03-26 21:02:07 -07:00
Michael Forney
f2cb609387 openbsd/doas: Use CLOCK_BOOTTIME for timestamp files
This way, we take in to account time while the system is suspended.
2017-03-09 08:27:45 -08:00
Michael Forney
5d3147c14f openbsd/doas: Implement persist feature
Pull some patches from openbsd-current, implementing persist using
timestamp files in /run/doas.
2017-02-28 22:53:38 -08:00
Michael Forney
6dfea0c1af openbsd: Build doas
Use a simple sp_pwd comparison for now. Later, I might consider
implementing something similar to BSD auth for oasis.
2017-02-26 17:20:57 -08:00
Michael Forney
293f5a93b7 Move to flat package hierarchy
Note to self: never try to move submodules again

To migrate your existing submodules (more or less):

	set -x
	set -e

	mkdir .git/modules/pkg
	for old in */*/src ; do
	        new="pkg/${old#*/}"
	        if ! [ -f "$old/.git" ] || [ "${old%%/*}" = pkg ] ; then
			continue
		fi
		git -C ".git/modules/$old" config core.worktree "../../../../../$new"
		rmdir "$new"
		mv "$old" "$new"
	        sed -e "s,$old,$new," "$new/.git" > "$new/.git.tmp"
	        mv "$new/.git.tmp" "$new/.git"
		mkdir ".git/modules/${new%/src}"
	        mv ".git/modules/$old" ".git/modules/$new"

		rm "${old%/src}"/*.ninja
		mv "${old%/src}"/*.tar.{gz,xz,bz2} "${new%/src}/"
		rmdir "${old%/src}" || true
	done
	sed -e 's,^\[submodule "[^/]*/,[submodule "pkg/,' .git/config > .git/config.tmp
	mv .git/config.tmp .git/config
2016-12-13 23:10:30 -08:00