c8dfd79e27
Changelog: == ChangeLog v0.12 == 49 files changed, 1073 insertions(+), 2145 deletions(-) Changes: * Uses internally Git 2.7.0. * Show remote refs in branch switcher combobox. * Add sample post-receive hook in /contrib. * Add HTML escaping to filters. * Add "enable-follow-links" option to have the log UI behave the same way as "git log --follow", as well as updating the diffand commit UIs. * Errors are now cached under the dynamic-ttl setting. * Simplified filters and converters. * Add "enable-html-serving" to turn on serving of HTML mimetypes from the /plain handler, to prevent against stored XSS. * /blob no longer takes a mimetype query string parameter. Bug fixes: * Always honor repo.hide and repo.ignore. * Ensure /about/ always has a trailing slash to keep other links consistent internally. * Unit test stability improvements. * Numerous internal cleanups. * Always send HTTP headers even on error messages. * Cleaner mimetype parsing. * Multiple resource leaks plugged. * Do not allow header injection. * Fix integer/buffer overflow. * Fix several crashes. * Return 404 when no repositories are found. == ChangeLog v0.11.2 == 22 files changed, 444 insertions(+), 92 deletions(-) Additions: * New sample filter: filters/gentoo-ldap-authentication.lua This filter shows how you might use lualdap for real authentication. Changes: * Uses internally Git 2.3.2 * No longer display blank links for submodules when there's no way of resolving the submodule location. Bug fixes: * Numerous code quality fixes from sparse * Take into account leading slashes when comptuing links * Set up environment variables before making clone urls == ChangeLog v0.11.1 == 10 files changed, 127 insertions(+), 113 deletions(-) Changes: * Uses internally Git 2.3.1 * Optimized commit and tag parsing * The sample simple-authentication.lua has been hardened Bug fixes: * When clicking on an owner in the index, use the right query string for searching * When filtering in the index, make the sorting links point to the same filtered page of results * Also, the same as above, but with pagination links * F_SETLK is now used to avoid creating stale lock files == ChangeLog v0.11.0 == 31 files changed, 328 insertions(+), 211 deletions(-) Features: * "stat-only" diff type, for kernel.org, where diff's can become huge * Show rel='vcs-git' on clone URL attributes * Add rel-vcs microformat links to HTML <head> section * Add "owner-filter" option, for filtering the owner column in the index * Snapshots now have HTTP ETags, for better caching * repo.hide and repo.ignore can now be specified for changing repository visibility Changes: * Rebased on Git 2.3.0 * Match more Markdown extensions * Tooltips now show absolute time for relative date markers * Use git's built-in ident line splitting algorithm instead * The patch output now matches git's format Bug fixes: * More constification * Documentation fixes * Libravatar now uses HTTPS correctly * Be sure README exists before displaying * Remove trailing slash when .git is removed from links
52 lines
1.8 KiB
Makefile
52 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.5 2016/01/31 08:47:45 ryoon Exp $
|
|
|
|
DISTNAME= cgit-0.12
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://git.zx2c4.com/cgit/snapshot/
|
|
EXTRACT_SUFX= .tar.xz
|
|
# cgit builds its own libgit using a known-good version
|
|
# check release notes or README when updating the package
|
|
GIT_VER= 2.7.0
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} git-${GIT_VER}${EXTRACT_SUFX}
|
|
SITES.git-${GIT_VER}${EXTRACT_SUFX}= http://hjemli.net/git/git/snapshot/
|
|
|
|
HOMEPAGE= http://git.zx2c4.com/cgit/
|
|
COMMENT= Fast web interface for git
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
USE_TOOLS+= gmake
|
|
MAKE_FLAGS+= GIT_VER=${GIT_VER}
|
|
BUILD_MAKE_FLAGS+= CGIT_CONFIG=${PKG_SYSCONFDIR}/cgitrc
|
|
|
|
CGIT_CONFIG= ${PKG_SYSCONFDIR}/cgitrc
|
|
CGIT_CGIBIN= ${PREFIX}/libexec/cgi-bin
|
|
CGIT_FILTERS= ${PREFIX}/libexec/cgit/filters
|
|
CGIT_HTDOCS= ${PREFIX}/share/httpd/htdocs/cgit
|
|
CGIT_EGDIR= ${PREFIX}/share/examples
|
|
|
|
CONF_FILES= ${CGIT_EGDIR}/cgitrc ${CGIT_CONFIG}
|
|
INSTALLATION_DIRS= libexec/cgi-bin \
|
|
libexec/cgit/filters \
|
|
share/httpd/htdocs/cgit \
|
|
share/examples
|
|
post-extract:
|
|
rm -r ${WRKSRC}/git && mv ${WRKDIR}/git-${GIT_VER} ${WRKSRC}/git
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/cgit ${DESTDIR}${CGIT_CGIBIN}/cgit.cgi
|
|
${INSTALL_DATA} ${WRKSRC}/cgit.png ${DESTDIR}${CGIT_HTDOCS}/cgit.png
|
|
${INSTALL_DATA} ${WRKSRC}/cgit.css ${DESTDIR}${CGIT_HTDOCS}/cgit.css
|
|
${INSTALL_DATA} ${WRKSRC}/cgitrc ${DESTDIR}${CGIT_EGDIR}/cgitrc
|
|
${INSTALL_SCRIPT} ${WRKSRC}/filters/commit-links.sh \
|
|
${DESTDIR}${CGIT_FILTERS}/commit-links.sh
|
|
${INSTALL_SCRIPT} ${WRKSRC}/filters/syntax-highlighting.sh \
|
|
${DESTDIR}${CGIT_FILTERS}/syntax-highlighting.sh
|
|
|
|
.include "../../devel/gettext-lib/buildlink3.mk"
|
|
.include "../../devel/zlib/buildlink3.mk"
|
|
.include "../../security/openssl/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|