diff options
author | jlam <jlam> | 2002-09-09 17:13:32 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-09-09 17:13:32 +0000 |
commit | ed550bbcfa31b82b517e71e4ade2099b9f57389f (patch) | |
tree | 71754bb0e6e0a7457523120517b1750e9ded5587 /www/bozohttpd | |
parent | bcc3ed758d4119a4e1716ee4e1cfbe9b7aa7c410 (diff) | |
download | pkgsrc-ed550bbcfa31b82b517e71e4ade2099b9f57389f.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')
-rw-r--r-- | www/bozohttpd/Makefile | 14 | ||||
-rw-r--r-- | www/bozohttpd/distinfo | 3 | ||||
-rw-r--r-- | www/bozohttpd/patches/patch-ab | 24 |
3 files changed, 8 insertions, 33 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" diff --git a/www/bozohttpd/distinfo b/www/bozohttpd/distinfo index 08e029babf5..7b0b93c5a7d 100644 --- a/www/bozohttpd/distinfo +++ b/www/bozohttpd/distinfo @@ -1,5 +1,4 @@ -$NetBSD: distinfo,v 1.17 2002/08/25 21:52:00 jlam Exp $ +$NetBSD: distinfo,v 1.18 2002/09/09 17:13:33 jlam Exp $ SHA1 (bozohttpd-5.14.tar.bz2) = ce4eeb87b8005b4eac5d52c8647c0ed3cae9f56e Size (bozohttpd-5.14.tar.bz2) = 21666 bytes -SHA1 (patch-ab) = 706f678d56bbedd1b2f02f543c265d48dae8011d diff --git a/www/bozohttpd/patches/patch-ab b/www/bozohttpd/patches/patch-ab deleted file mode 100644 index ce776824eed..00000000000 --- a/www/bozohttpd/patches/patch-ab +++ /dev/null @@ -1,24 +0,0 @@ -$NetBSD: patch-ab,v 1.12 2002/08/25 21:52:01 jlam Exp $ - ---- bozohttpd.8.in.orig Fri Aug 23 15:43:44 2002 -+++ bozohttpd.8.in Fri Aug 23 15:48:04 2002 -@@ -197,8 +197,8 @@ - .Xr inetd.conf 5 - entry would be: - .Bd -literal --www stream tcp nowait:600 httpd /usr/pkg/libexec/bozohttpd bozohttpd /var/www --www stream tcp6 nowait:600 httpd /usr/pkg/libexec/bozohttpd bozohttpd /var/www -+www stream tcp nowait:600 httpd @PREFIX@/libexec/bozohttpd bozohttpd /var/www -+www stream tcp6 nowait:600 httpd @PREFIX@/libexec/bozohttpd bozohttpd /var/www - .Ed - .Pp - This would serve web pages from -@@ -218,7 +218,7 @@ - .Pp - To configure set of virtual hosts, one would use an entry like: - .Bd -literal --www stream tcp nowait:600 httpd /usr/pkg/libexec/bozohttpd bozohttpd -v /var/vroot /var/www -+www stream tcp nowait:600 httpd @PREFIX@/libexec/bozohttpd bozohttpd -v /var/vroot /var/www - .Ed - .Pp - and inside |