$OpenBSD: patch-man_Makefile_in,v 1.1 2005/11/25 09:08:01 sturm Exp $
--- man/Makefile.in.orig	Thu Nov  3 15:21:10 2005
+++ man/Makefile.in	Thu Nov  3 15:24:35 2005
@@ -539,13 +539,21 @@ uninstall-man: uninstall-man5 uninstall-
 
 
 install-data-hook:
-	@list="$(man_MANS)"; \
+	@list="$(man5_MANS)"; \
 	for p in $$list; do \
-		pa=$(DESTDIR)$(mandir)/man8/`echo $$p|sed '$(transform)'`; \
-		echo chown $(BINARY_OWNER) $$pa; \
-		chown $(BINARY_OWNER) $$pa; \
-		echo chgrp $(SETUID_GROUP) $$pa; \
-		chgrp $(SETUID_GROUP) $$pa; \
+		pa=$(DESTDIR)$(man5dir)/`echo $$p|sed '$(transform)'`; \
+		echo chown $(MANOWN) $$pa; \
+		chown $(MANOWN) $$pa; \
+		echo chgrp $(MANGRP) $$pa; \
+		chgrp $(MANGRP) $$pa; \
+	done
+	@list="$(man8_MANS)"; \
+	for p in $$list; do \
+		pa=$(DESTDIR)$(man8dir)/`echo $$p|sed '$(transform)'`; \
+		echo chown $(MANOWN) $$pa; \
+		chown $(MANOWN) $$pa; \
+		echo chgrp $(MANGRP) $$pa; \
+		chgrp $(MANGRP) $$pa; \
 	done
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
 # Otherwise a system limit (for SysV at least) may be exceeded.
