pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/nginx Full DESTDIR support.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e03aba0d6b68
branches:  trunk
changeset: 537159:e03aba0d6b68
user:      ghen <ghen%pkgsrc.org@localhost>
date:      Fri Jan 04 11:48:12 2008 +0000

description:
Full DESTDIR support.

diffstat:

 www/nginx/Makefile |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r 4c0e52a4a094 -r e03aba0d6b68 www/nginx/Makefile
--- a/www/nginx/Makefile        Fri Jan 04 11:45:42 2008 +0000
+++ b/www/nginx/Makefile        Fri Jan 04 11:48:12 2008 +0000
@@ -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 @@
 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,%%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"
 



Home | Main Index | Thread Index | Old Index