1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00
freebsd-ports/www/gitlab/Makefile
Sunpoet Po-Chuan Hsieh 9982216f6f Change RUN_DEPENDS from rubygem-gitlab_omniauth-ldap to rubygem-gitlab_omniauth-ldap1
- Bump PORTREVISION for dependency change
2017-06-08 14:08:03 +00:00

214 lines
10 KiB
Makefile

# Created by: Torsten Zuehlsdorff <tz@FreeBSD.org>
# $FreeBSD$
PORTNAME= gitlab
PORTVERSION= 8.17.6
DISTVERSIONPREFIX= v
PORTREVISION= 5
CATEGORIES= www devel
MAINTAINER= tz@FreeBSD.org
COMMENT= Web GUI for managing git repositories
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
OPTIONS_SINGLE= DATABASE
OPTIONS_SINGLE_DATABASE= PGSQL MYSQL
OPTIONS_DEFAULT= PGSQL
PGSQL_DESC= Default PostgreSQL support (preferred)
MYSQL_DESC= Optional MySQL support
BUILD_DEPENDS= gem:devel/ruby-gems
# the rubygems of RUN_DEPENDS matches the order of the Gemfile
# which makes maintaining this long list much easier!
# only rubygem-pg and rubygem-mysql are defined later as RUN_DEPENDS
# for the options
RUN_DEPENDS= git>=2.8.4:devel/git \
gitlab-shell>=4.1.1:devel/gitlab-shell\
gitlab-workhorse>=1.2.1:www/gitlab-workhorse \
redis>=2.8.23:databases/redis \
npm>=0:www/npm \
rubygem-rails4>=4.2.7.1:www/rubygem-rails4 \
rubygem-rails-deprecated_sanitizer>=1.0.3:devel/rubygem-rails-deprecated_sanitizer \
rubygem-responders>=2.0:www/rubygem-responders \
rubygem-sprockets3>=3.7:devel/rubygem-sprockets3 \
rubygem-default_value_for>=3.0.1:devel/rubygem-default_value_for \
rubygem-rugged>=0.24:devel/rubygem-rugged \
rubygem-devise>=4.2:devel/rubygem-devise \
rubygem-doorkeeper>=4.2.0:security/rubygem-doorkeeper \
rubygem-omniauth13>=1.3.2:security/rubygem-omniauth13 \
rubygem-omniauth-auth0>=1.4.1:net/rubygem-omniauth-auth0 \
rubygem-omniauth-azure-oauth2>=0.0.6:net/rubygem-omniauth-azure-oauth2 \
rubygem-omniauth-cas3>=1.1.2:security/rubygem-omniauth-cas3 \
rubygem-omniauth-facebook>=4.0.0:net/rubygem-omniauth-facebook \
rubygem-omniauth-github11>=1.1.1:net/rubygem-omniauth-github11 \
rubygem-omniauth-gitlab>=1.0.2:security/rubygem-omniauth-gitlab \
rubygem-omniauth-google-oauth2>=0.4.1:net/rubygem-omniauth-google-oauth2 \
rubygem-omniauth-saml>=1.7.0:security/rubygem-omniauth-saml \
rubygem-omniauth-shibboleth>=1.2.0:security/rubygem-omniauth-shibboleth \
rubygem-omniauth-twitter>=1.2.0:net/rubygem-omniauth-twitter \
rubygem-omniauth_crowd>=2.2.0:devel/rubygem-omniauth_crowd \
rubygem-omniauth-authentiq>=0.2.0:net/rubygem-omniauth-authentiq \
rubygem-rack-oauth2>=1.2.1:security/rubygem-rack-oauth2 \
rubygem-jwt>=1.5.6:www/rubygem-jwt \
rubygem-recaptcha>=3.0:devel/rubygem-recaptcha \
rubygem-akismet>=2.0:devel/rubygem-akismet \
rubygem-devise-two-factor>=3.0.0:security/rubygem-devise-two-factor \
rubygem-rqrcode-rails3>=0.1.7:www/rubygem-rqrcode-rails3 \
rubygem-attr_encrypted>=3.0.0:security/rubygem-attr_encrypted \
rubygem-u2f0>=0.2.1:net/rubygem-u2f0 \
rubygem-validates_hostname>=1.0.6:dns/rubygem-validates_hostname \
rubygem-browser>=2.2:www/rubygem-browser \
rubygem-gitlab_omniauth-ldap1>=1.2.1:net/rubygem-gitlab_omniauth-ldap1 \
rubygem-gollum-lib-gitlab>=4.2.0:www/rubygem-gollum-lib-gitlab \
rubygem-gollum-rugged_adapter>=0.4.2:www/rubygem-gollum-rugged_adapter \
rubygem-github-linguist>=4.7.0:textproc/rubygem-github-linguist \
rubygem-grape>=0.18.0:devel/rubygem-grape \
rubygem-grape-entity>=0.6.0:devel/rubygem-grape-entity \
rubygem-rack-cors>=0.4.0:www/rubygem-rack-cors \
rubygem-kaminari-rails4>=0.17.0:www/rubygem-kaminari-rails4 \
rubygem-hamlit>=2.6.1:www/rubygem-hamlit \
rubygem-carrierwave>=0.10.0:www/rubygem-carrierwave \
rubygem-dropzonejs-rails>=0.7.1:www/rubygem-dropzonejs-rails \
rubygem-fog-aws0>=0.9:net/rubygem-fog-aws0 \
rubygem-fog-core>=1.40:devel/rubygem-fog-core \
rubygem-fog-google>=0.3:net/rubygem-fog-google \
rubygem-fog-local>=0.3:net/rubygem-fog-local \
rubygem-fog-openstack>=0.1:net/rubygem-fog-openstack \
rubygem-fog-rackspace>=0.1.1:net/rubygem-fog-rackspace \
rubygem-google-api-client010>=0.8.6:devel/rubygem-google-api-client010 \
rubygem-unf>=0.1.4:textproc/rubygem-unf \
rubygem-seed-fu>=2.3.5:databases/rubygem-seed-fu \
rubygem-html-pipeline1>=1.11.0:textproc/rubygem-html-pipeline1 \
rubygem-deckar01-task_list1>=1.0.6:www/rubygem-deckar01-task_list1 \
rubygem-gitlab-markup>=1.5.1:textproc/rubygem-gitlab-markup \
rubygem-redcarpet>=3.3.3:textproc/rubygem-redcarpet \
rubygem-redcloth>=4.3.2:www/rubygem-redcloth \
rubygem-rdoc>=4.2:devel/rubygem-rdoc \
rubygem-org-ruby>=0.9.12:textproc/rubygem-org-ruby \
rubygem-creole>=0.5.0:textproc/rubygem-creole \
rubygem-wikicloth>=0.8.1:textproc/rubygem-wikicloth \
rubygem-asciidoctor>=1.5.2:textproc/rubygem-asciidoctor \
rubygem-asciidoctor-plantuml>=0.0.7:textproc/rubygem-asciidoctor-plantuml \
rubygem-rouge>=2.0:textproc/rubygem-rouge \
rubygem-truncato>=0.7.8:textproc/rubygem-truncato \
rubygem-nokogiri>=1.6.7.2:textproc/rubygem-nokogiri \
rubygem-diffy>=3.1.0:textproc/rubygem-diffy \
rubygem-unicorn>=5.1.0:www/rubygem-unicorn \
rubygem-unicorn-worker-killer>=0.4.4:www/rubygem-unicorn-worker-killer \
rubygem-state_machines-activerecord>=0.4.0:databases/rubygem-state_machines-activerecord \
rubygem-after_commit_queue>=1.3.0:databases/rubygem-after_commit_queue \
rubygem-acts-as-taggable-on>=4.0.0:www/rubygem-acts-as-taggable-on \
rubygem-sidekiq4>=4.2.7:devel/rubygem-sidekiq4 \
rubygem-sidekiq-cron04>=0.4.4:devel/rubygem-sidekiq-cron04 \
rubygem-redis-namespace>=1.5.2:databases/rubygem-redis-namespace \
rubygem-sidekiq-limit_fetch>=3.4:devel/rubygem-sidekiq-limit_fetch \
rubygem-httparty>=0.13.3:www/rubygem-httparty \
rubygem-rainbow>=2.1.0:devel/rubygem-rainbow \
rubygem-settingslogic>=2.0.9:devel/rubygem-settingslogic \
rubygem-version_sorter>=2.1.0:textproc/rubygem-version_sorter \
rubygem-redis-rails>=5.0.1:www/rubygem-redis-rails \
rubygem-redis>=3.2:databases/rubygem-redis \
rubygem-connection_pool>=2.0:net/rubygem-connection_pool \
rubygem-hipchat>=1.5.0:net-im/rubygem-hipchat \
rubygem-jira-ruby>=1.1.2:devel/rubygem-jira-ruby \
rubygem-gitlab-flowdock-git-hook>=1.0.1:www/rubygem-gitlab-flowdock-git-hook \
rubygem-gemnasium-gitlab-service>=0.2:devel/rubygem-gemnasium-gitlab-service \
rubygem-slack-notifier1>=1.5.1:devel/rubygem-slack-notifier1 \
rubygem-asana>=0.4.0:www/rubygem-asana \
rubygem-ruby-fogbugz>=0.2.1:devel/rubygem-ruby-fogbugz \
rubygem-kubeclient>=2.2.0:www/rubygem-kubeclient \
rubygem-d3_rails-rails4>=3.5.0:www/rubygem-d3_rails-rails4 \
rubygem-underscore-rails>=1.8.0:www/rubygem-underscore-rails \
rubygem-sanitize>=2.0:textproc/rubygem-sanitize \
rubygem-babosa>=1.0.2:textproc/rubygem-babosa \
rubygem-loofah>=2.0.3:textproc/rubygem-loofah \
rubygem-licensee>=8.0:devel/rubygem-licensee \
rubygem-rack-attack>=4.4.1:www/rubygem-rack-attack \
rubygem-ace-rails-ap>=4.1.0:www/rubygem-ace-rails-ap \
rubygem-mousetrap-rails>=1.4.6:www/rubygem-mousetrap-rails \
rubygem-charlock_holmes>=0.7.3:textproc/rubygem-charlock_holmes \
rubygem-oj2>=2.17.4:devel/rubygem-oj2 \
rubygem-chronic>=0.10.2:devel/rubygem-chronic \
rubygem-chronic_duration>=0.10.6:devel/rubygem-chronic_duration \
rubygem-webpack-rails>=0.9.9:www/rubygem-webpack-rails \
rubygem-rack-proxy>=0.6.0:www/rubygem-rack-proxy \
rubygem-sass-rails5>=5.0.6:textproc/rubygem-sass-rails5 \
rubygem-coffee-rails4>=4.1.0:devel/rubygem-coffee-rails4 \
rubygem-uglifier>=2.7.2:www/rubygem-uglifier \
rubygem-addressable>=2.3.8:www/rubygem-addressable \
rubygem-bootstrap-sass>=3.3.0:www/rubygem-bootstrap-sass \
rubygem-font-awesome-rails-rails4>=4.6.1:devel/rubygem-font-awesome-rails-rails4 \
rubygem-gemojione>=3:graphics/rubygem-gemojione \
rubygem-gon>=6.1.0:www/rubygem-gon \
rubygem-jquery-atwho-rails>=1.3.2:www/rubygem-jquery-atwho-rails \
rubygem-jquery-rails>=4.1.0:www/rubygem-jquery-rails \
rubygem-jquery-ui-rails5-rails4>=5.0.0:www/rubygem-jquery-ui-rails5-rails4 \
rubygem-request_store>=1.3:devel/rubygem-request_store \
rubygem-select2-rails3>=3.5.9:www/rubygem-select2-rails3 \
rubygem-virtus>=1.0.1:devel/rubygem-virtus \
rubygem-net-ssh>=3.0.1:security/rubygem-net-ssh \
rubygem-base32>=0.3.2:converters/rubygem-base32 \
rubygem-sentry-raven>=2.0.0:devel/rubygem-sentry-raven \
rubygem-premailer-rails>=1.9.0:mail/rubygem-premailer-rails \
rubygem-newrelic_rpm3>=3.16:devel/rubygem-newrelic_rpm3 \
rubygem-octokit>=4.6.2:net/rubygem-octokit \
rubygem-mail_room>=0.9.0:mail/rubygem-mail_room \
rubygem-email_reply_trimmer>=0.1:mail/rubygem-email_reply_trimmer \
rubygem-html2text>=0:textproc/rubygem-html2text \
rubygem-ruby-prof>=0.16.2:devel/rubygem-ruby-prof \
rubygem-oauth212>=1.2.0:net/rubygem-oauth212 \
rubygem-paranoia>=2.2:databases/rubygem-paranoia \
rubygem-health_check22>=2.2.0:devel/rubygem-health_check22 \
rubygem-vmstat>=2.3.0:sysutils/rubygem-vmstat \
rubygem-sys-filesystem>=1.1.6:sysutils/rubygem-sys-filesystem \
rubygem-rinku>=1.7.3:www/rubygem-rinku
PGSQL_RUN_DEPENDS= rubygem-pg>=0.18.2:databases/rubygem-pg
MYSQL_RUN_DEPENDS= rubygem-mysql2>=0.4.5:databases/rubygem-mysql2
USE_RUBY= yes
USE_RC_SUBR= gitlab
USE_GITHUB= yes
GH_ACCOUNT= gitlabhq
GH_PROJECT= gitlabhq
USERS= git
GROUPS= git
NO_ARCH= yes
NO_BUILD= yes
post-patch-MYSQL-on:
${ECHO} "gem 'mysql2', '>= 0.3.16', group: :mysql" >> ${WRKSRC}/Gemfile
${CP} ${WRKSRC}/config/database.yml.mysql ${WRKSRC}/config/database.yml.sample
post-patch-PGSQL-on:
${ECHO} "gem 'pg', '>= 0.18.2', group: :postgres" >> ${WRKSRC}/Gemfile
${CP} ${WRKSRC}/config/database.yml.postgresql ${WRKSRC}/config/database.yml.sample
do-install:
${FIND} ${WRKSRC} -name '*.orig' -delete
${FIND} ${WRKSRC} -name '*.bak' -delete
${FIND} ${WRKSRC} -name '*.gitkeep' -delete
${FIND} ${WRKSRC} -name '*.gitignore' -delete
${FIND} ${WRKSRC} -name "Gemfile.lock" -delete
${MV} ${WRKSRC}/config/gitlab.yml.example ${WRKSRC}/config/gitlab.yml.sample
${MV} ${WRKSRC}/config/unicorn.rb.example ${WRKSRC}/config/unicorn.rb.sample
${MV} ${WRKSRC}/config/resque.yml.example ${WRKSRC}/config/resque.yml.sample
${MV} ${WRKSRC}/config/secrets.yml.example ${WRKSRC}/config/secrets.yml.sample
${MV} ${WRKSRC}/config/initializers/rack_attack.rb.example ${WRKSRC}/config/initializers/rack_attack.rb.sample
${MV} ${WRKSRC}/lib/support/nginx/gitlab ${WRKSRC}/lib/support/nginx/gitlab.sample
${MV} ${WRKSRC}/lib/support/nginx/gitlab-ssl ${WRKSRC}/lib/support/nginx/gitlab-ssl.sample
${MKDIR} ${STAGEDIR}/home/git/repositories
${MKDIR} ${STAGEDIR}${PREFIX}/www/${PORTNAME}/public/assets
${MKDIR} ${STAGEDIR}${PREFIX}/www/${PORTNAME}/public/uploads
${MKDIR} ${STAGEDIR}${PREFIX}/www/${PORTNAME}/tmp/cache
${MKDIR} ${STAGEDIR}${PREFIX}/www/${PORTNAME}/tmp/sessions
(cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/www/${PORTNAME})
.include <bsd.port.mk>