From a24a3f38fc297479873cdbe5c93fec4226e2fdbf Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Sun, 12 May 2024 23:42:34 +0200 Subject: Port to FreeBSD --- Makefile | 2 +- README.md | 4 ++++ configure | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b28ae64..f4d88d4 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# Portable makefile supporting OpenBSD and GNU/Linux. +# Portable makefile supporting OpenBSD, FreeBSD, and GNU/Linux. PREFIX = /usr/local INSTALL = install diff --git a/README.md b/README.md index ea8ff0b..2fabd4f 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,10 @@ On OpenBSD you can install the dependencies using `pkg_add(1)`: $ doas pkg_add postgresql-server postgresql-client +On FreeBSD you can install the dependencies using `pkg-install(8)`: + + $ sudo pkg install postgresql16-server postgresql16-client + On Void Linux you can install the dependencies using `xbps-install(1)`: $ sudo xbps-install -S dash postgresql postgresql-client diff --git a/configure b/configure index 9a1e936..c9b0f50 100755 --- a/configure +++ b/configure @@ -10,6 +10,11 @@ case "$( uname )" in echo 'BINGRP = bin' 1>&3 echo 'MANGRP = bin' 1>&3 ;; + FreeBSD) + echo 'BINGRP = wheel' 1>&3 + echo 'MANDIR = share/man/man' 1>&3 + echo 'MANGRP = wheel' 1>&3 + ;; Linux) echo 'BINMODE = 755' 1>&3 echo 'MANMODE = 644' 1>&3 -- cgit v1.2.3