From e47765ed9ec9779ba194ee02bf1149d3b1922250 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Tue, 10 May 2022 10:35:46 +0100 Subject: [PATCH] Config files live in /usr/local/etc on FreeBSD Signed-off-by: Doug Rabson --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 7eca8784..d899c78a 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,11 @@ GPGME_ENV := CGO_CFLAGS="$(shell gpgme-config --cflags 2>/dev/null)" CGO_LDFLAGS # The following variables very roughly follow https://www.gnu.org/prep/standards/standards.html#Makefile-Conventions . DESTDIR ?= PREFIX ?= /usr/local +ifeq ($(shell uname -s),FreeBSD) +CONTAINERSCONFDIR ?= /usr/local/etc/containers +else CONTAINERSCONFDIR ?= /etc/containers +endif REGISTRIESDDIR ?= ${CONTAINERSCONFDIR}/registries.d SIGSTOREDIR ?= /var/lib/containers/sigstore BINDIR ?= ${PREFIX}/bin