NetBSD doas reddit / BSD ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-19 18:56 Hello. I tried compiling OpenDoas on NetBSD (from github source) and it failed with the following error: make: "/home/jan/OpenDoas/bsd.prog.mk" line 47: Missing dependency operator make: Fatal errors encountered -- cannot continue make: stopped in /home/jan/OpenDoas Is there anything I can to about it? (I tried gmake and smake; neither worked) ---------------------------------------------------------------------- [deleted] · 2019-06-19 19:03 Have you tried looking at line 47 of the makefile in question? ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-19 19:09 Yes, but I don't know how Makefiles work... \-include ${OBJS:.o=.d} ${OPENBSD:.o=.d} ---------------------------------------------------------------------- [deleted] · 2019-06-19 19:17 [This might help](http://nuclear.mutantstargoat.com/articles/make/). ---------------------------------------------------------------------- sehnsuchtbsd · 2019-06-20 07:35 OpenDoas is **not** simply *"a portable version of doas"*, it is the generic *Linux* port (currently mainained by Duncan Overbruck, a major Void Linux developer); opendoas required a not negligible amount of [p atching](https://github.com/nholstein/OpenDoas/pull/4/commits/861d30f4 b90c5312b33358caea08e8e26fc24818) on the [original sources](http://cvsweb.openbsd.org/cgi-bin/cvsweb/src/usr.bin/doas/) before ever being of any use on Linux. Similarly, here you can see the independent [FreeBSD port](https://www.freshports.org/security/doas), by Jess Smith: porting doas to FreeBSD was not devoid of patching either, as you can see [here](https://github.com/slicer69/doas/commit/d55af6cdf4267e6e1cf b43b408d893b52c763c07) To sum up, if you want doas on NetBSD, you'll have to *port* it, no way out...baring in mind that the `persist` func is not going to work since at the moment no kernel supports the `TIOCCHKVERAUTH` ioctl on tty(4) but kOpenBSD. ---------------------------------------------------------------------- PitifulView · 2019-06-20 09:26 Also keep in mind 'make' in linux and in netbsd are two different programs, mentally translate any linux guides to use "gmake" instead. ---------------------------------------------------------------------- joed_ · 2019-06-20 11:04 That's for GNU make not Open/Net/FreeBSD make. ---------------------------------------------------------------------- daemonpenguin · 2019-06-20 11:24 The FreeBSD port by Jesse Smith is based on work done to port doas to NetBSD. So the FreeBSD port may still work on NetBSD. Or at least be closer than the Linux port: https://github.com/slicer69/doas Also, this port works on Linux too. It's not specific to just FreeBSD. ---------------------------------------------------------------------- CuBeRJAN3 · 2019-06-20 11:41 I guess I'll stick to sudo then :D... ---------------------------------------------------------------------- [deleted] · 2019-06-20 13:26 Oops. Sorry about that. ---------------------------------------------------------------------- m33-m33 · 2019-06-20 17:04 Ahem, hope it will not become the systemd of sudo ---------------------------------------------------------------------- sehnsuchtbsd · 2019-06-21 11:32 thanks for the heads up, I shall definitely attempt building J.Smiths' port on NetBSD, hopefully adjusting the makefile will sufficit ---------------------------------------------------------------------- daemonpenguin · 2019-06-24 22:27 For people interested in running doas on NetBSD, support has been added to the FreeBSD port to make doas run on NetBSD: https://github.com/slicer69/doas/releases/tag/6.0p4 ---------------------------------------------------------------------- sehnsuchtbsd · 2019-07-03 00:58 I can't really say how I'm thankful to you for suggesting me that NetBSD support had been finally officially introduced. I'm testing it right now on NetBSD-current/evbarm64 (a HardKernel Odroid H-2), it works flawlessly!! `/usr/pkg/bin/doas: setuid ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), dynamically linked, interpreter /usr/libexec/ld.elf_so, for NetBSD 8.99.48, not stripped` cc. u/CuBeRJAN3 ---------------------------------------------------------------------- daemonpenguin · 2019-07-03 13:33 I'm very happy to hear it.