mirror of
https://github.com/containers/netavark.git
synced 2026-02-05 15:45:47 +01:00
This mostly amounts to throwing a sensible error in cases where the setting is enabled and the user has requested ports be forwarded. There are no tests at present because firewalld 2.3.x is currently restricted to Rawhide, and is required for effective testing. A manpage has also been added with details on how to work with the StrictForwardPorts setting (as well as some other tidbits on firewalld + Podman integration). Signed-off-by: Matt Heon <mheon@redhat.com>
29 lines
561 B
Makefile
29 lines
561 B
Makefile
PREFIX ?= /usr/local
|
|
DATADIR ?= ${PREFIX}/share
|
|
MANDIR ?= $(DATADIR)/man
|
|
GO ?= go
|
|
GOMD2MAN ?= go-md2man
|
|
|
|
docs: $(patsubst %.md,%,$(wildcard *.[0-9].md))
|
|
|
|
%.1: %.1.md
|
|
$(GOMD2MAN) -in $^ -out $@
|
|
|
|
%.7: %.7.md
|
|
$(GOMD2MAN) -in $^ -out $@
|
|
|
|
.PHONY: .install.md2man
|
|
.install.md2man:
|
|
$(GO) install github.com/cpuguy83/go-md2man/v2@latest
|
|
|
|
.PHONY: install
|
|
install:
|
|
install -d ${DESTDIR}/${MANDIR}/man1
|
|
install -m 0644 *.1 ${DESTDIR}/${MANDIR}/man1
|
|
install -d ${DESTDIR}/${MANDIR}/man7
|
|
install -m 0644 *.7 ${DESTDIR}/${MANDIR}/man7
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
$(RM) *.1
|