366cb45d9a
== ChangeLog v1.2.3 == 14 files changed, 183 insertions(+), 26 deletions(-) This patch updates us to git 2.25.1, augments our tests, adds support for lzip and zstd, and fixes a crash in when following logs. == ChangeLog v1.2.2 == 38 files changed, 264 insertions(+), 153 deletions(-) In terms of features, this release adds support for per-repository overrides of the enable-blame command, since git-blame can be expensive on huge repos. == ChangeLog v1.2.1 == 6 files changed, 465 insertions(+), 39 deletions(-) Notable Changes: * The authentication filters have been revamped, and a new one using file-based access lists has been added. * A bug fix for the cached rc file for the snapshot-prefix. * A fix for a critical directory traversal vulnerability, when `enable-http-clone=1` is not turned off, discovered by Jann Horn. This is pretty nasty and all users must update immediately. == ChangeLog v1.2 == 41 files changed, 1000 insertions(+), 497 deletions(-) Notable Changes: * Update to git 2.18. * Proper age sorting of repositories. * Print symlink content properly. * Numerous fixes to our cache system, addressing issues experienced on high- volume sites like kernel.org. * A new view for git-blame, showing the latest commit for each line of a given file. * Annotated tags are now printed in a slightly darker color. * The prefix for snapshots can now be controlled from the configuration file via repo.snapshot-prefix=, rather than only using the repo's basename. This is useful for serving, say, linux-4.17.7.tar.gz from a repository called linux-stable.git. * The snapshot tarball compression types now control which archives are allowed to be served, instead of merely controlling what was shown as a link on the webpage. This allows sitemasters to keep their cache size under control and also prohibit the use of expensive compression routines. * Signatures can now be added for snapshot tarballs through the use of git notes. Details are found in the cgitrc(5) man page: https://git.zx2c4.com/cgit/tree/cgitrc.5.txt?id=22583c4992852fff08559c35fde7bf6f673d1644#n770 * The extra-head-content= option was added for appending additional meta-tags to the <head> section, such as those required for the `go get` utility. * Numerous important bug fixes, crash fixes, memory leak fixes, and compiler fixes.
55 lines
1.9 KiB
Makefile
55 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2020/03/31 13:59:32 roy Exp $
|
|
|
|
DISTNAME= cgit-1.2.3
|
|
CATEGORIES= www
|
|
MASTER_SITES= https://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.25.1
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} git-${GIT_VER}${EXTRACT_SUFX}
|
|
SITES.git-${GIT_VER}${EXTRACT_SUFX}= http://hjemli.net/git/git/snapshot/
|
|
|
|
HOMEPAGE= https://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
|
|
|
|
MAKE_ENV.SunOS+= NEEDS_LIBICONV=YesPlease
|
|
|
|
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 "../../converters/libiconv/buildlink3.mk"
|
|
.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"
|