pkgsrc/www/gitweb/Makefile

55 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.21 2014/01/01 11:14:38 adam Exp $
2013-09-09 16:07:58 +02:00
.include "../../devel/git/Makefile.version"
DISTNAME= git-${GIT_VERSION}
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
#DEPENDS+= apache{,2,22}-[0-9]*:../../www/apache22
2013-09-09 16:07:58 +02:00
DEPENDS+= git-base>=${GIT_VERSION}:../../devel/git-base
DEPENDS+= {perl>=5.15.8,p5-Time-HiRes>=1.9725}:../../time/p5-Time-HiRes
2013-09-09 16:07:58 +02:00
DISTINFO_FILE= ${.CURDIR}/../../devel/git-base/distinfo
Changes 1.7.9.3: * "git p4" (in contrib/) submit the changes to a wrong place when the "--use-client-spec" option is set. * The config.mak.autogen generated by optional autoconf support tried to link the binary with -lintl even when libintl.h is missing from the system. * When the filter driver exits before reading the content before the main git process writes the contents to be filtered to the pipe to it, the latter could be killed with SIGPIPE instead of ignoring such an event as an error. * "git add --refresh <pathspec>" used to warn about unmerged paths outside the given pathspec. * The bulk check-in codepath in "git add" streamed contents that needs smudge/clean filters without running them, instead of punting and delegating to the codepath to run filters after slurping everything to core. * "git branch --with $that" assumed incorrectly that the user will never ask the question with nonsense value in $that. * "git bundle create" produced a corrupt bundle file upon seeing commits with excessively long subject line. * When a remote helper exits before reading the blank line from the main git process to signal the end of commands, the latter could be killed with SIGPIPE. Instead we should ignore such event as a non-error. * The commit log template given with "git merge --edit" did not have a short instructive text like what "git commit" gives. * "git rev-list --verify-objects -q" omitted the extra verification it needs to do over "git rev-list --objects -q" by mistake. * "gitweb" used to drop warnings in the log file when "heads" view is accessed in a repository whose HEAD does not point at a valid branch. * An invalid regular expression pattern given by an end user made "gitweb" to return garbled response.
2012-03-09 18:02:14 +01:00
USE_TOOLS+= gmake perl:run
BUILD_DIRS= gitweb
BUILD_TARGET= 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
# Apache wants files in ${PREFIX}/share/httpd/htdocs/gitweb
GITWEB_HTDOCS= ${PREFIX}/share/examples/gitweb/htdocs
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 \
2008-06-20 03:09:05 +02:00
share/doc/gitweb \
${GITWEB_EGDIR} ${GITWEB_HTDOCS}
do-install:
2008-06-20 03:09:05 +02:00
${INSTALL_SCRIPT} ${WRKSRC}/gitweb/gitweb.cgi ${DESTDIR}${GITWEB_CGIBIN}
.for f in git-favicon.png git-logo.png gitweb.css
Update to 1.7.3.4. Most importantly: commit 3017ed62f47ce14a959e2d315c434d4980cf4243 Author: Jakub Narebski <jnareb@gmail.com> Date: Wed Dec 15 00:34:01 2010 +0100 gitweb: Introduce esc_attr to escape attributes of HTML elements It is needed only to escape attributes of handcrafted HTML elements, and not those generated using CGI.pm subroutines / methods for HTML generation. While at it, add esc_url and esc_html where needed, and prefer to use CGI.pm HTML generating methods than handcrafted HTML code. Most of those are probably unnecessary (could be exploited only by person with write access to gitweb config, or at least access to the repository). This fixes CVE-2010-3906 Reported-by: Emanuele Gentili <e.gentili@tigersecurity.it> Helped-by: John 'Warthog9' Hawley <warthog9@kernel.org> Helped-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com> and lesser changes: 3017ed6 gitweb: Introduce esc_attr to escape attributes of HTML elements d48b284 perl: bump the required Perl version to 5.8 from 5.6.[21] d8a9480 gitweb: Don't die_error in git_tag after already printing headers 22e5e58 Typos in code comments, an error message, documentation 497d9c3 gitweb: clarify search results page when no matching commit found 0b45010 gitweb: Fix typo in run() subroutine 7f425db gitweb: allow configurations that change with each request 61bf126 gitweb: move highlight config out of guess_file_syntax() 109988f gitweb: fix esc_url 869d588 gitweb: Move evaluate_gitweb_config out of run_request 7064994 gitweb/Makefile: fix typo in gitweb.min.css rule 5ed2ec1 gitweb: Return or exit after done serving request ad709ea gitweb: Fix typo in hash key name in %opts in git_header_html 45aa989 gitweb: Run in FastCGI mode if gitweb script has .fcgi extension 18d0532 gitweb: Move static files into seperate subdirectory 04794fd gitweb: Use @diff_opts while using format-patch a0446e7 gitweb: Add support for FastCGI, using CGI::Fast c2394fe gitweb: Put all per-connection code in run() subroutine 592ea41 gitweb: Refactor syntax highlighting support b331fe5 gitweb: Syntax highlighting support 152d943 gitweb: Create install target for gitweb in Makefile 8515392 gitweb: Improve installation instructions in gitweb/INSTALL ee1d8ee gitweb: Silence 'Variable VAR may be unavailable' warnings efb2d0c gitweb: Move generating page title to separate subroutine 7a59745 gitweb: Add custom error handler using die_error c42b00c gitweb: Use nonlocal jump instead of 'exit' in die_error 377bee3 gitweb: href(..., -path_info => 0|1) 8de096b gitweb: simplify gitweb.min.* generation and clean-up rules e391859 gitweb: update INSTALL to use shorter make target a8ab675 gitweb: add documentation to INSTALL regarding gitweb.js bb4bbf7 Gitweb: add autoconfigure support for minifiers 0e6ce21 Gitweb: add support for minifying gitweb.css 890a13a Sync with 1.7.0.4 7a49c25 gitweb: git_get_project_config requires only $git_dir, not also $projec 9be3614 gitweb: Fix project-specific feature override behavior 964ad92 gitweb multiple project roots documentation 1df4876 gitweb: Protect escaping functions against calling on undef 453541f gitweb: esc_html (short) error message in die_error e6e592d gitweb: Die if there are parsing errors in config file 57017b3 gitweb: Simplify (and fix) chop_str aa14013 gitweb: Add optional extra parameter to die_error, for extended explanaion 1ee4b4e gitweb: add a "string" variant of print_sort_th 0cf207f gitweb: add a "string" variant of print_local_time 24d4afc gitweb: Check that $site_header etc. are defined before using them 62331ef gitweb: Makefile improvements b62a1a9 gitweb: Load checking b2c2e4c gitweb.js: Workaround for IE8 bug
2010-12-17 02:19:17 +01:00
${INSTALL_DATA} ${WRKSRC}/gitweb/static/${f} ${DESTDIR}${GITWEB_HTDOCS}
.endfor
${INSTALL_DATA} ${WRKSRC}/gitweb/README \
2008-06-20 03:09:05 +02:00
${DESTDIR}${PREFIX}/share/doc/gitweb
${INSTALL_DATA} ${FILESDIR}/gitweb.conf ${DESTDIR}${GITWEB_EGDIR}
.include "../../mk/bsd.pkg.mk"