Index: www/gitlab/Makefile =================================================================== --- www/gitlab/Makefile +++ www/gitlab/Makefile @@ -4,6 +4,7 @@ PORTNAME= gitlab PORTVERSION= 9.3.10 DISTVERSIONPREFIX= v +PORTREVISION= 1 CATEGORIES= www devel MAINTAINER= tz@FreeBSD.org Index: www/gitlab/files/gitlab.in =================================================================== --- www/gitlab/files/gitlab.in +++ www/gitlab/files/gitlab.in @@ -37,8 +37,10 @@ stop_cmd="stop_gitlab" restart_cmd="restart_gitlab" -gitlab_enable=${gitlab_enable:-"NO"} -gitlab_authBackend=${gitlab_authBackend:-"http://127.0.0.1:8080"} +: ${gitlab_enable:="NO"} +: ${gitlab_authBackend:="http://127.0.0.1:8080"} +: ${gitlab_workhorse_tcp:="NO"} +: ${gitlab_workhorse_addr:="127.0.0.1:8181"} load_rc_config $name @@ -58,7 +60,12 @@ mail_room_pid_path="$pid_path/mail_room.pid" gitlab_workhorse_dir=$(cd $app_root/../gitlab-workhorse && pwd) gitlab_workhorse_pid_path="$pid_path/gitlab-workhorse.pid" -gitlab_workhorse_options="-listenUmask 0 -listenNetwork unix -listenAddr $socket_path/gitlab-workhorse.socket -authBackend $gitlab_authBackend -authSocket $rails_socket -documentRoot $app_root/public" +if checkyesno gitlab_workhorse_tcp; then + gitlab_workhorse_listen="-listenNetwork tcp -listenAddr $gitlab_workhorse_addr" +else + gitlab_workhorse_listen="-listenNetwork unix -listenAddr $socket_path/gitlab-workhorse.socket" +fi +gitlab_workhorse_options="-listenUmask 0 $gitlab_workhorse_listen -authBackend $gitlab_authBackend -authSocket $rails_socket -documentRoot $app_root/public" gitlab_workhorse_log="$app_root/log/gitlab-workhorse.log" gitlab_pages_enabled=false gitlab_pages_dir=$(cd $app_root/../gitlab-pages 2> /dev/null && pwd)