diff options
author | ghen <ghen> | 2008-01-04 11:48:12 +0000 |
---|---|---|
committer | ghen <ghen> | 2008-01-04 11:48:12 +0000 |
commit | c997f3ff6ab88168ceb272d6078c76c2d2a07b26 (patch) | |
tree | 42f21aad89f4ddd396bb1ee7a583b2681be6eadd | |
parent | bbfda848299b7feec4e35ab093fe77c88e82201e (diff) | |
download | pkgsrc-c997f3ff6ab88168ceb272d6078c76c2d2a07b26.tar.gz |
Full DESTDIR support.
-rw-r--r-- | www/nginx/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/www/nginx/Makefile b/www/nginx/Makefile index 80231282b60..fa3cfa4b75c 100644 --- a/www/nginx/Makefile +++ b/www/nginx/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2007/12/11 09:12:26 ghen Exp $ +# $NetBSD: Makefile,v 1.2 2008/01/04 11:48:12 ghen Exp $ DISTNAME= nginx-0.5.33 CATEGORIES= www @@ -8,6 +8,8 @@ MAINTAINER= ghen@NetBSD.org HOMEPAGE= http://nginx.net/ COMMENT= Lightweight HTTP server and mail proxy server +PKG_DESTDIR_SUPPORT= user-destdir + USE_PKGLOCALEDIR= yes HAS_CONFIGURE= yes CONFIGURE_ARGS+= --with-ld-opt=-L${PREFIX}/lib\ -Wl,-R${PREFIX}/lib @@ -47,12 +49,12 @@ SUBST_SED.paths= -e 's,%%PKG_SYSCONFDIR%%,${PKG_SYSCONFDIR},g' SUBST_SED.paths+= -e 's,%%NGINX_LOGDIR%%,${NGINX_LOGDIR},g' do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${PREFIX}/sbin/nginx + ${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx .for file in ${EGFILES} - ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${EGDIR}/conf/${file} + ${INSTALL_DATA} ${WRKSRC}/conf/${file} ${DESTDIR}${EGDIR}/conf/${file} .endfor - ${INSTALL_DATA} ${WRKSRC}/html/50x.html ${EGDIR}/html/50x.html - ${INSTALL_DATA} ${WRKSRC}/html/index.html ${EGDIR}/html/index.html + ${INSTALL_DATA} ${WRKSRC}/html/50x.html ${DESTDIR}${EGDIR}/html/50x.html + ${INSTALL_DATA} ${WRKSRC}/html/index.html ${DESTDIR}${EGDIR}/html/index.html .include "options.mk" |