From 0355adfc82c295a02d43be15e7ccba1a7970b527 Mon Sep 17 00:00:00 2001 From: jlam Date: Mon, 9 Sep 2002 17:13:32 +0000 Subject: Directly replace the "/usr/pkg" reference in the man page with "${PREFIX}" in the package Makefile in one step instead of three. --- www/bozohttpd/Makefile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'www/bozohttpd/Makefile') diff --git a/www/bozohttpd/Makefile b/www/bozohttpd/Makefile index 97fed7fd952..7724c478678 100644 --- a/www/bozohttpd/Makefile +++ b/www/bozohttpd/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2002/08/25 21:52:00 jlam Exp $ +# $NetBSD: Makefile,v 1.24 2002/09/09 17:13:32 jlam Exp $ # DISTNAME= bozohttpd-5.14 @@ -22,11 +22,11 @@ MAKE_ENV+= BINDIR=${PREFIX}/libexec MANDIR=${PREFIX}/man CPPFLAGS+= -DINET6 .endif -pre-patch: - ${MV} -f ${WRKSRC}/bozohttpd.8 ${WRKSRC}/bozohttpd.8.in - -post-patch: - ${SED} -e "s,@PREFIX@,${PREFIX},g" \ - ${WRKSRC}/bozohttpd.8.in > ${WRKSRC}/bozohttpd.8 +post-build: + cd ${WRKSRC}; for file in bozohttpd.8; do \ + ${SED} -e "s|/usr/pkg/|${PREFIX}/|g" \ + $${file} >> $${file}.fixed; \ + ${MV} -f $${file}.fixed $${file}; \ + done .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3