mirror of
https://github.com/skeeto/endlessh.git
synced 2025-12-08 14:13:23 +00:00
Three notes on OpenBSD.
This commit is contained in:
21
README.md
21
README.md
@@ -108,5 +108,26 @@ to remove GCC-specific options. For example, on Solaris:
|
||||
The feature test macros on these systems isn't reliable, so you may also
|
||||
need to use `-D__EXTENSIONS__` in `CFLAGS`.
|
||||
|
||||
### OpenBSD
|
||||
|
||||
The man page needs to go into a different path for OpenBSD's `man` command:
|
||||
|
||||
```
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 119347a..dedf69d 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -14,8 +14,8 @@ endlessh: endlessh.c
|
||||
install: endlessh
|
||||
install -d $(DESTDIR)$(PREFIX)/bin
|
||||
install -m 755 endlessh $(DESTDIR)$(PREFIX)/bin/
|
||||
- install -d $(DESTDIR)$(PREFIX)/share/man/man1
|
||||
- install -m 644 endlessh.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
||||
+ install -d $(DESTDIR)$(PREFIX)/man/man1
|
||||
+ install -m 644 endlessh.1 $(DESTDIR)$(PREFIX)/man/man1/
|
||||
|
||||
clean:
|
||||
rm -rf endlessh
|
||||
```
|
||||
|
||||
[np]: https://nullprogram.com/blog/2019/03/22/
|
||||
|
||||
Reference in New Issue
Block a user