diff options
author | itojun <itojun@pkgsrc.org> | 2001-02-06 12:55:42 +0000 |
---|---|---|
committer | itojun <itojun@pkgsrc.org> | 2001-02-06 12:55:42 +0000 |
commit | 7bf3b64d596e74774841c0504c66633378259375 (patch) | |
tree | 61d8cf4e1385b5b4024312ec95b040e62880206a /www/apache6 | |
parent | 6735ee8ba07e4fba0730b34ac8eafcc89d903252 (diff) | |
download | pkgsrc-7bf3b64d596e74774841c0504c66633378259375.tar.gz |
slightly better way to handle -p1 patches
Diffstat (limited to 'www/apache6')
-rw-r--r-- | www/apache6/Makefile | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/www/apache6/Makefile b/www/apache6/Makefile index f4e130f859c..ba8f0b3efc1 100644 --- a/www/apache6/Makefile +++ b/www/apache6/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.23 2001/02/06 12:50:19 itojun Exp $ +# $NetBSD: Makefile,v 1.24 2001/02/06 12:55:42 itojun Exp $ # # The fourth number in the PKGNAME version indicates a NetBSD pkg revision # (to indicate changes in the shipped third party patches such as the mod_ssl @@ -30,12 +30,6 @@ HOMEPAGE= http://httpd.apache.org/ CONFLICTS= apache-*modssl-* apache6-* CONFLICTS= apache-* -.if defined(PATCH_DEBUG) || defined(PKG_VERBOSE) -PATCH_DIST_ARGS1= -d ${WRKSRC} -E -p1 -.else -PATCH_DIST_ARGS1= -d ${WRKSRC} --forward --quiet -E -p1 -.endif - EXTRACT_ONLY= ${DISTFILES:N*.gif:N*.diff.gz} HAS_CONFIGURE= # defined CONFIGURE_SCRIPT= ${WRKSRC}/configure.v6 @@ -111,8 +105,9 @@ pre-patch: post-patch: for i in apache-1.3.17-v6-20010206a.diff.gz; do \ - ${GZCAT} ${_DISTDIR}/$$i | ${PATCH} ${PATCH_DIST_ARGS1} \ - || ( ${ECHO} Patch $$i failed ; exit 1 ) ; \ + ${GZCAT} ${_DISTDIR}/$$i | \ + ${PATCH} ${PATCH_DIST_ARGS:C/-p0/-p1/} \ + || ( ${ECHO} Patch $$i failed ; exit 1 ) ; \ done ${CHMOD} +x ${CONFIGURE_SCRIPT} |