summaryrefslogtreecommitdiff
path: root/www/gitweb
diff options
context:
space:
mode:
Diffstat (limited to 'www/gitweb')
-rw-r--r--www/gitweb/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/www/gitweb/Makefile b/www/gitweb/Makefile
index bea3e7eba17..96f0c06b9ed 100644
--- a/www/gitweb/Makefile
+++ b/www/gitweb/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2008/04/30 13:38:16 jmmv Exp $
+# $NetBSD: Makefile,v 1.5 2008/06/20 01:09:41 joerg Exp $
#
DISTNAME= git-1.5.0.3
@@ -10,6 +10,8 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://git.or.cz/
COMMENT= Web interface for GIT repositories
+PKG_DESTDIR_SUPPORT= user-destdir
+
DEPENDS+= apache{,2,22}-[0-9]*:../../www/apache22
DEPENDS+= scm${DISTNAME:S/-/>=/}:../../devel/scmgit
@@ -33,18 +35,17 @@ GITWEB_EGDIR= ${PREFIX}/share/examples/gitweb
CONF_FILES= ${GITWEB_EGDIR}/gitweb.conf ${PKG_SYSCONFDIR}/gitweb.conf
MESSAGE_SUBST+= CONFFILE=${PKG_SYSCONFDIR}/gitweb.conf
-INSTALLATION_DIRS= libexec/cgi-bin share/httpd/htdocs
+INSTALLATION_DIRS= libexec/cgi-bin share/httpd/htdocs \
+ share/doc/gitweb \
+ ${GITWEB_EGDIR} ${GITWEB_HTDOCS}
do-install:
- ${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${GITWEB_CGIBIN}
- ${INSTALL_DATA_DIR} ${GITWEB_HTDOCS}
+ ${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${DESTDIR}${GITWEB_CGIBIN}
.for f in git-favicon.png git-logo.png gitweb.css
- ${INSTALL_DATA} ${WRKSRC}/gitweb/${f} ${GITWEB_HTDOCS}
+ ${INSTALL_DATA} ${WRKSRC}/gitweb/${f} ${DESTDIR}${GITWEB_HTDOCS}
.endfor
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gitweb
${INSTALL_DATA} ${WRKSRC}/gitweb/README \
- ${PREFIX}/share/doc/gitweb
- ${INSTALL_DATA_DIR} ${GITWEB_EGDIR}
- ${INSTALL_DATA} ${FILESDIR}/gitweb.conf ${GITWEB_EGDIR}
+ ${DESTDIR}${PREFIX}/share/doc/gitweb
+ ${INSTALL_DATA} ${FILESDIR}/gitweb.conf ${DESTDIR}${GITWEB_EGDIR}
.include "../../mk/bsd.pkg.mk"