blob: 96f0c06b9ed05a4d3fa0a4dfbdad6fd85aed082d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: Makefile,v 1.5 2008/06/20 01:09:41 joerg Exp $
#
DISTNAME= git-1.5.0.3
PKGNAME= ${DISTNAME:S/git/gitweb/}
CATEGORIES= www
MASTER_SITES= http://www.kernel.org/pub/software/scm/git/
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
EXTRACT_USING= gtar
USE_TOOLS+= gmake perl:run
BUILD_TARGET= gitweb/gitweb.cgi
MAKE_FLAGS= prefix=${PREFIX}
MAKE_FLAGS+= GITWEB_FAVICON=/gitweb/git-favicon.png
MAKE_FLAGS+= GITWEB_CONFIG=${GITWEB_CONFIG}
MAKE_FLAGS+= GITWEB_CSS=/gitweb/gitweb.css
MAKE_FLAGS+= GITWEB_HOMETEXT=${GITWEB_HTDOCS}/indextext.html
MAKE_FLAGS+= GITWEB_LOGO=/gitweb/git-logo.png
MAKE_FLAGS+= PERL_PATH=${PERL5:Q}
GITWEB_CONFIG= ${PKG_SYSCONFDIR}/gitweb.conf
GITWEB_CGIBIN= ${PREFIX}/libexec/cgi-bin
GITWEB_HTDOCS= ${PREFIX}/share/httpd/htdocs/gitweb
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 \
share/doc/gitweb \
${GITWEB_EGDIR} ${GITWEB_HTDOCS}
do-install:
${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} ${DESTDIR}${GITWEB_HTDOCS}
.endfor
${INSTALL_DATA} ${WRKSRC}/gitweb/README \
${DESTDIR}${PREFIX}/share/doc/gitweb
${INSTALL_DATA} ${FILESDIR}/gitweb.conf ${DESTDIR}${GITWEB_EGDIR}
.include "../../mk/bsd.pkg.mk"
|