head 1.2; access; symbols pkgsrc-2026Q1:1.2.0.8 pkgsrc-2026Q1-base:1.2 pkgsrc-2025Q4:1.2.0.6 pkgsrc-2025Q4-base:1.2 pkgsrc-2025Q3:1.2.0.4 pkgsrc-2025Q3-base:1.2 pkgsrc-2025Q2:1.2.0.2 pkgsrc-2025Q2-base:1.2; locks; strict; comment @# @; 1.2 date 2025.06.25.17.00.10; author schmonz; state Exp; branches; next 1.1; commitid bHrfNDsItQ5Qhi0G; 1.1 date 2025.05.15.18.13.52; author schmonz; state Exp; branches; next ; commitid JDyjGnMiu2NQ02VF; desc @@ 1.2 log @prefork: support PKGMANDIR. @ text @$NetBSD: patch-Makefile,v 1.1 2025/05/15 18:13:52 schmonz Exp $ Support PKGMANDIR, and skip catpages. --- Makefile.orig 2024-10-29 13:40:43.000000000 +0000 +++ Makefile @@@@ -3,6 +3,7 @@@@ DESTDIR ?= / PREFIX ?= /usr +PKGMANDIR ?= man NROFF ?= nroff # @@@@ -16,18 +17,16 @@@@ NROFF ?= nroff # CFLAGS+= -Wno-unused-parameter -Wsign-compare # CFLAGS+= -Werror -all: prefork prefork.0 +all: prefork clean: rm -f prefork prefork.o prefork.0 install: umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/libexec - umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/man8 - umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/cat8 + umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/$(PKGMANDIR)/man8 install -c -m755 prefork $(DESTDIR)/$(PREFIX)/libexec - install -c -m644 prefork.8 $(DESTDIR)/$(PREFIX)/man/man8/ - install -c -m644 prefork.0 $(DESTDIR)/$(PREFIX)/man/cat8/ + install -c -m644 prefork.8 $(DESTDIR)/$(PREFIX)/$(PKGMANDIR)/man8/ prefork.0: prefork.8 $(NROFF) -mandoc prefork.8 > $@@ @ 1.1 log @Add prefork: Utility to prefork inetd-style wait services prefork is a utility to prefork inetd-style wait services which itself runs as an inetd-style wait service. prefork expects to be passed file descriptor zero (0) as a listening socket on which accept(2) can be called and will spawn children, passing them file descriptor zero (0) under the expectation that these children will service the incoming connexions. The children should then service connexions by calling accept(2) on the socket. @ text @d1 1 a1 1 $NetBSD$ d3 1 a3 1 Don't build or install catpages. d5 1 a5 1 --- Makefile.orig 2025-05-15 18:02:23.019642424 +0000 d7 9 a15 1 @@@@ -16,7 +16,7 @@@@ NROFF ?= nroff d24 1 a24 1 @@@@ -24,10 +24,8 @@@@ clean: d27 1 a27 1 umask 022 && mkdir -p $(DESTDIR)/$(PREFIX)/man/man8 d29 1 d31 1 a31 1 install -c -m644 prefork.8 $(DESTDIR)/$(PREFIX)/man/man8/ d33 1 @