$OpenBSD: patch-Makefile_in,v 1.2 2005/12/14 06:02:09 jolan Exp $
--- Makefile.in.orig	Tue Aug 12 05:12:11 2003
+++ Makefile.in	Mon Nov 28 10:58:59 2005
@@ -1,7 +1,7 @@
 # $Id: patch-Makefile_in,v 1.2 2005/12/14 06:02:09 jolan Exp $
 
 CC=@CC@
-CFLAGS=@CFLAGS@ @DEFS@ -D_BSD_SOURCE
+CFLAGS=@CFLAGS@ @DEFS@ -D_BSD_SOURCE -DSYSCONFDIR="\"@sysconfdir@\""
 LDFLAGS=@LDFLAGS@
 LIBS=@LIBS@
 
@@ -60,8 +60,12 @@ install_sbin:
 	$(INSTALL) $(OUTPUT) $(DESTDIR)$(sbindir)
 
 install_man:
+	$(RM) $(OUTPUT).8.tmp
+	sed -e "s;/etc/pop3;@sysconfdir@/pop3;g" \
+	    -e "s;/etc/akpop3d;@sysconfdir@/akpop3d;g" \
+	    $(OUTPUT).8 > $(OUTPUT).8.tmp
 	mkdir -p $(DESTDIR)$(mandir)/man8
-	$(INSTALL) $(OUTPUT).8 $(DESTDIR)$(mandir)/man8
+	$(INSTALL) $(OUTPUT).8.tmp $(DESTDIR)$(mandir)/man8/$(OUTPUT).8
 #	$(GZIP) $(DESTDIR)$(mandir)/man8/$(OUTPUT).8
 
 install_init:
