summaryrefslogtreecommitdiff
path: root/www/nginx
diff options
context:
space:
mode:
authorghen <ghen@pkgsrc.org>2008-01-04 11:48:12 +0000
committerghen <ghen@pkgsrc.org>2008-01-04 11:48:12 +0000
commitf95a36d0dfc169c6402e7e10a27a8fb54e48cf2c (patch)
tree42f21aad89f4ddd396bb1ee7a583b2681be6eadd /www/nginx
parent872b64c4bb8aee891eee5fae2f4253eb48b0c515 (diff)
downloadpkgsrc-f95a36d0dfc169c6402e7e10a27a8fb54e48cf2c.tar.gz
Full DESTDIR support.
Diffstat (limited to 'www/nginx')
-rw-r--r--www/nginx/Makefile12
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"