Date: Wed, 9 Jul 2008 15:56:33 GMT From: Martin Sugioarto <martin.sugioarto@udo.edu> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/125441: Update port: devel/git gitweb support added. Message-ID: <200807091556.m69FuXQ0033170@www.freebsd.org> Resent-Message-ID: <200807091600.m69G04Yx046745@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 125441 >Category: ports >Synopsis: Update port: devel/git gitweb support added. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jul 09 16:00:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Martin Sugioarto >Release: 7-STABLE >Organization: >Environment: FreeBSD zelda.local 7.0-STABLE FreeBSD 7.0-STABLE #1: Sun Jun 22 12:20:55 CEST 2008 root@zelda.local:/usr/obj/usr/src/sys/ZELDA amd64 >Description: This fix will allow to use gitweb easier. The precompiled CGI file and other resources are copied into EXAMPLESDIR/gitweb. pkg-message explains how to do the simple modifications. Changes Makefile: - set revision 1 - gitweb directory copy to EXAMPLESDIR/gitweb - cat pkg-message to screen after install Added pkg-message. Changes pkg-plist: - gitweb files and directories >How-To-Repeat: >Fix: diff -ruN /usr/ports/devel/git/Makefile git/Makefile --- /usr/ports/devel/git/Makefile 2008-06-23 01:20:33.000000000 +0200 +++ git/Makefile 2008-07-09 17:34:30.000000000 +0200 @@ -7,6 +7,7 @@ PORTNAME= git PORTVERSION= 1.5.6 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://www.kernel.org/pub/software/scm/git/ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \ @@ -237,10 +238,24 @@ ${INSTALL_SCRIPT} ${WRKSRC}/contrib/fast-import/git-p4 \ ${PREFIX}/bin/ + @${ECHO_MSG} "===> Installing gitweb files" + ${MKDIR} ${EXAMPLESDIR}/gitweb + ${INSTALL_DATA} ${WRKSRC}/gitweb/INSTALL ${EXAMPLESDIR}/gitweb/ + ${INSTALL_DATA} ${WRKSRC}/gitweb/README ${EXAMPLESDIR}/gitweb/ + ${INSTALL_DATA} ${WRKSRC}/gitweb/git-favicon.png ${EXAMPLESDIR}/gitweb/ + ${INSTALL_DATA} ${WRKSRC}/gitweb/git-logo.png ${EXAMPLESDIR}/gitweb/ + ${INSTALL_DATA} ${WRKSRC}/gitweb/gitweb.css ${EXAMPLESDIR}/gitweb/ + ${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${EXAMPLESDIR}/gitweb/ + @${ECHO_MSG} "===> Updating ${SHELLS}" @${CP} ${SHELLS} ${SHELLS}.bak @(${GREP} -v ${PREFIX}/bin/git-shell ${SHELLS}.bak; \ ${ECHO_CMD} ${PREFIX}/bin/git-shell) > ${SHELLS} @${RM} ${SHELLS}.bak + @${ECHO} "" + @${ECHO} "" + @${CAT} ${PKGMESSAGE} | ${SED} -e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' + @${ECHO} "" + .include <bsd.port.post.mk> diff -ruN /usr/ports/devel/git/pkg-message git/pkg-message --- /usr/ports/devel/git/pkg-message 1970-01-01 01:00:00.000000000 +0100 +++ git/pkg-message 2008-07-09 17:20:22.000000000 +0200 @@ -0,0 +1,10 @@ +In the directory %%EXAMPLESDIR%%/gitweb you can find all files to +make gitweb work as a public repository on the web. + +All you have to do to make gitweb work is: +1) Copy the files %%EXAMPLESDIR%%/gitweb/git* to a directory on + your web server (e.g. Apache2) in which you are able to execute + CGI-scripts. +2) In gitweb.cgi, adjust the variable $projectroot to point to + your git repository (that is where you have your *.git project + directories). diff -ruN /usr/ports/devel/git/pkg-plist git/pkg-plist --- /usr/ports/devel/git/pkg-plist 2008-06-23 01:20:33.000000000 +0200 +++ git/pkg-plist 2008-07-09 17:51:03.000000000 +0200 @@ -222,3 +222,11 @@ @dirrm share/git-core/templates/info @dirrm share/git-core/templates @dirrm share/git-core +%%EXAMPLESDIR%%/gitweb/INSTALL +%%EXAMPLESDIR%%/gitweb/README +%%EXAMPLESDIR%%/gitweb/git-favicon.png +%%EXAMPLESDIR%%/gitweb/git-logo.png +%%EXAMPLESDIR%%/gitweb/gitweb.cgi +%%EXAMPLESDIR%%/gitweb/gitweb.css +@dirrm %%EXAMPLESDIR%%/gitweb +@dirrm %%EXAMPLESDIR%% >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807091556.m69FuXQ0033170>