Commit 0d830174 authored by pi's avatar pi
Browse files

New port: devel/gitblit

Gitblit is an open-source, pure Java stack for managing, viewing,
and serving Git repositories. It's designed primarily as a tool for
small workgroups who want to host centralized repositories.

Gitblit WAR is what you should download if you already have a servlet
container available that you wish to use. Jetty 6/7/8 and Tomcat
6/7 are known to work. Generally, any Servlet 2.5 or Servlet 3.0
container should work.

Gitblit can be used as a dumb repository viewer with no administrative
controls or user accounts. Gitblit can be used as a complete Git
stack for cloning, pushing, and repository access control. Gitblit
can be used without any other Git tooling (including actual Git)
or it can cooperate with your established tools.

WWW: http://gitblit.com/

PR:		203072
Submitted by:	Dusan Vejnovic <freebsd@dussan.org>
parent 1625d700
......@@ -673,6 +673,7 @@
SUBDIR += git-modes
SUBDIR += git-review
SUBDIR += git-subversion
SUBDIR += gitblit
SUBDIR += gitflow
SUBDIR += gitg
SUBDIR += gitg0
......
# Created by: Dusan Vejnovic <freebsd@dussan.org>
# $FreeBSD$
PORTNAME= gitblit
PORTVERSION= 1.7.1
CATEGORIES= devel java
MASTER_SITES= http://dl.bintray.com/${PORTNAME}/releases/
EXTRACT_SUFX= .war
#DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
MAINTAINER= freebsd@dussan.org
COMMENT= Open-source servlet for Git repositories
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/WEB-INF/LICENSE
CONFLICTS= ${PORTNAME}-go-[0-9]*
NO_ARCH= yes
NO_BUILD= yes
USERS= www
GROUPS= www
USE_JAVA= yes
JAVA_VERSION= 1.7+
SUB_FILES= pkg-message
PLIST_SUB+= GB_DATAHOME=${PREFIX}/${PORTNAME} \
GB_GROUP=${GROUPS} \
GB_HOME=${GB_HOME} \
GB_USER=${USERS}
OPTIONS_RADIO= SQL WEBSERVER
OPTIONS_SINGLE= TOMCAT
OPTIONS_RADIO_SQL= REDIS
OPTIONS_RADIO_WEBSERVER=APACHE HIAWATHA LIGHTTPD NGINX
OPTIONS_SINGLE_TOMCAT= TOMCAT6 TOMCAT7 TOMCAT8
HIAWATHA_DESC= Hiawatha server support
NGINX_DESC= Nginx server support
TOMCAT8_DESC= Tomcat 8.x support
OPTIONS_DEFAULT= TOMCAT7
REDIS_RUN_DEPENDS= redis-server:databases/redis
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MAPACHE}
USE_APACHE_RUN= 22+
.elif ${PORT_OPTIONS:MLIGHTTPD}
RUN_DEPENDS+= lighttpd:www/lighttpd
.elif ${PORT_OPTIONS:MHIAWATHA}
RUN_DEPENDS+= hiawatha:www/hiawatha
.elif ${PORT_OPTIONS:MNGINX}
RUN_DEPENDS+= nginx:www/nginx
.endif
.if ${PORT_OPTIONS:MTOMCAT6}
GB_HOME= ${PREFIX}/apache-tomcat-6.0/webapps/${PORTNAME}
RUN_DEPENDS+= ${PREFIX}/etc/rc.d/tomcat6:www/tomcat6
.elif ${PORT_OPTIONS:MTOMCAT7}
GB_HOME= ${PREFIX}/apache-tomcat-7.0/webapps/${PORTNAME}
RUN_DEPENDS+= ${PREFIX}/etc/rc.d/tomcat7:www/tomcat7
.elif ${PORT_OPTIONS:MTOMCAT8}
GB_HOME= ${PREFIX}/apache-tomcat-8.0/webapps/${PORTNAME}
RUN_DEPENDS+= ${PREFIX}/etc/rc.d/tomcat8:www/tomcat8
.endif
do-extract:
${MKDIR} ${WRKSRC}
${TAR} xf ${DISTDIR}/${DISTFILES} -C ${WRKSRC}/
do-install:
${MKDIR} ${STAGEDIR}${GB_HOME}
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${GB_HOME})
${CHMOD} -R 644 ${STAGEDIR}${GB_HOME}
${MKDIR} ${STAGEDIR}${PREFIX}/${PORTNAME}
(cd ${STAGEDIR}${GB_HOME}/WEB-INF/data && \
${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/${PORTNAME})
(cd ${STAGEDIR}${PREFIX}/${PORTNAME} && ${FIND} . -type f \
-not -name '*.gitignore' -exec ${MV} '{}' '{}'.sample \;)
.include <bsd.port.mk>
SHA256 (gitblit-1.7.1.war) = 6699499098fa2abb5d99756c019f485aa70068575ac0bf7255626871417d2881
SIZE (gitblit-1.7.1.war) = 39082209
************************************************************************
By default, Gitblit stores all data (users, settings,
repositories, etc) in ${contextFolder}/WEB-INF/data.
Specifying an alternate "baseFolder" allows for simple
upgrades in the future.
You can specify "baseFolder":
- via GITBLIT_HOME, or
- via web.xml, or
- via JNDI.
For value of "baseFolder" use value "/usr/local/gitblit".
You can login with the default administrator credentials:
admin / admin
!!!MAKE SURE TO CHANGE THE ADMINISTRATOR USERNAME AND/OR PASSWORD!!!
More informations:
http://gitblit.com/setup_war.html
************************************************************************
Gitblit is an open-source, pure Java stack for managing, viewing,
and serving Git repositories. It's designed primarily as a tool for
small workgroups who want to host centralized repositories.
Gitblit WAR is what you should download if you already have a servlet
container available that you wish to use. Jetty 6/7/8 and Tomcat
6/7 are known to work. Generally, any Servlet 2.5 or Servlet 3.0
container should work.
Gitblit can be used as a dumb repository viewer with no administrative
controls or user accounts. Gitblit can be used as a complete Git
stack for cloning, pushing, and repository access control. Gitblit
can be used without any other Git tooling (including actual Git)
or it can cooperate with your established tools.
WWW: http://gitblit.com/
This diff is collapsed.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment