diff options
author | jlam <jlam@pkgsrc.org> | 2002-09-09 17:13:32 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-09-09 17:13:32 +0000 |
commit | 0355adfc82c295a02d43be15e7ccba1a7970b527 (patch) | |
tree | 71754bb0e6e0a7457523120517b1750e9ded5587 /www/bozohttpd/Makefile | |
parent | 6cd70da11685cfe526db67122b42027a1bb45a06 (diff) | |
download | pkgsrc-0355adfc82c295a02d43be15e7ccba1a7970b527.tar.gz |
Directly replace the "/usr/pkg" reference in the man page with "${PREFIX}"
in the package Makefile in one step instead of three.
Diffstat (limited to 'www/bozohttpd/Makefile')
-rw-r--r-- | www/bozohttpd/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
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" |