pkgsrc-Bugs archive

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

pkg/50178: www/gitweb: gitweb.js is not generate



>Number:         50178
>Category:       pkg
>Synopsis:       www/gitweb: gitweb.js is not generate
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Aug 26 18:00:00 +0000 2015
>Originator:     NONAKA Kimihiro
>Release:        pkgsrc-HEAD 20150826
>Organization:
>Environment:
NetBSD koharu.myhome.nonakap.org 7.99.21 NetBSD 7.99.21 (KOHARU) #3180: Wed Aug 26 00:09:27 JST 2015  nonaka%koharu.myhome.nonakap.org@localhost:/home/snapshot/NetBSD/20150822/obj.NetBSD-amd64/amd64/sys/arch/amd64/compile/KOHARU amd64
>Description:
gitweb.js is required by gitweb.cgi.
But gitweb.js is not generate and install.
>How-To-Repeat:
1) cd pkgsrc/www/gitweb && make install.
2) See /usr/pkg/libexec/cgi-bin/gitweb.cgi.

> # URI of gitweb.js (JavaScript code for gitweb)
> our $javascript = "static/gitweb.js";
>Fix:
Please apply the following patch.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/www/gitweb/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile	31 Jul 2015 12:57:23 -0000	1.30
+++ Makefile	26 Aug 2015 07:55:12 -0000
@@ -15,13 +15,14 @@
 USE_TOOLS+=	perl:run
 
 BUILD_DIRS=	gitweb
-BUILD_TARGET=	gitweb.cgi
+BUILD_TARGET=	gitweb.cgi static/gitweb.js
 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+=	GITWEB_JS=/gitweb/gitweb.js
 MAKE_FLAGS+=	PERL_PATH=${PERL5:Q}
 
 GITWEB_CONFIG=	${PKG_SYSCONFDIR}/gitweb.conf
@@ -38,7 +39,7 @@
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${DESTDIR}${GITWEB_CGIBIN}
-.for f in git-favicon.png git-logo.png gitweb.css
+.for f in git-favicon.png git-logo.png gitweb.css gitweb.js
 	${INSTALL_DATA} ${WRKSRC}/gitweb/static/${f} ${DESTDIR}${GITWEB_HTDOCS}
 .endfor
 	${INSTALL_DATA} ${WRKSRC}/gitweb/README \
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/www/gitweb/PLIST,v
retrieving revision 1.3
diff -u -r1.3 PLIST
--- PLIST	5 Mar 2010 16:12:07 -0000	1.3
+++ PLIST	26 Aug 2015 07:55:12 -0000
@@ -5,3 +5,4 @@
 share/examples/gitweb/htdocs/git-favicon.png
 share/examples/gitweb/htdocs/git-logo.png
 share/examples/gitweb/htdocs/gitweb.css
+share/examples/gitweb/htdocs/gitweb.js



Home | Main Index | Thread Index | Old Index