Index: head/www/gitea/Makefile =================================================================== --- head/www/gitea/Makefile (revision 469091) +++ head/www/gitea/Makefile (revision 469092) @@ -1,72 +1,71 @@ # Created by: Stefan Bethke # $FreeBSD$ PORTNAME= gitea DISTVERSIONPREFIX= v -DISTVERSION= 1.4.0 +DISTVERSION= 1.4.1 CATEGORIES= www MAINTAINER= stb@lassitu.de COMMENT= Compact self-hosted Git service LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= bash:shells/bash \ - git:devel/git +RUN_DEPENDS= git:devel/git USES= go USE_GITHUB= yes GH_ACCOUNT= go-gitea GO_PKGNAME= code.gitea.io/${PORTNAME} GO_TARGET= -tags "${GO_TAGS}" USE_RC_SUBR= gitea SUB_FILES+= app.ini.sample SUB_LIST+= GITUSER=${USERS} USERS= git GROUPS= git OPTIONS_DEFINE= CERT PAM SQLITE CERT_DESC= Automatic creation of self-signed certificates PAM_DESC= Authentication using PAM OPTIONS_DEFAULT= ${OPTIONS_DEFINE} CERT_VARS= GO_TAGS+=cert PAM_VARS= GO_TAGS+=pam SQLITE_VARS= GO_TAGS+=sqlite .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1100513 DAEMONARGS= -S -l \$${gitea_facility} -s \$${gitea_priority} -t \$${name} .else DAEMONARGS= -f .endif SUB_LIST+= DAEMONARGS="${DAEMONARGS}" post-patch: # Gitea releases don't supply the release version number; the # automatic method to obtain the version number in the Gitea build # system only works when sources are checked out from git. # See https://github.com/go-gitea/gitea/issues/1136#issuecomment-311622745 @${SED} -Ei .orig \ -e 's#^(var Version = )"[^"]+"#\1"${PORTVERSION}"#' \ ${GO_WRKSRC}/main.go do-install: ${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin @${MKDIR} ${STAGEDIR}${ETCDIR}/conf ${INSTALL_DATA} ${WRKDIR}/app.ini.sample ${STAGEDIR}${ETCDIR}/conf/app.ini.sample ${INSTALL_DATA} ${GO_WRKSRC}/custom/conf/app.ini.sample ${STAGEDIR}${ETCDIR}/conf/app.ini.defaults cd ${GO_WRKSRC} && ${COPYTREE_SHARE} "options public templates" ${STAGEDIR}${DATADIR} @${MKDIR} ${STAGEDIR}${DESTDIR}/var/db/${PORTNAME} @${MKDIR} ${STAGEDIR}${DESTDIR}/var/log/${PORTNAME} @${MKDIR} ${STAGEDIR}${DESTDIR}/var/run/${PORTNAME} .include Index: head/www/gitea/distinfo =================================================================== --- head/www/gitea/distinfo (revision 469091) +++ head/www/gitea/distinfo (revision 469092) @@ -1,3 +1,3 @@ -TIMESTAMP = 1522059802 -SHA256 (go-gitea-gitea-v1.4.0_GH0.tar.gz) = 8244a4b6385156275ffd70921d2562661c1ad96e580b4ca2ef52e7395b810f13 -SIZE (go-gitea-gitea-v1.4.0_GH0.tar.gz) = 14983167 +TIMESTAMP = 1525508297 +SHA256 (go-gitea-gitea-v1.4.1_GH0.tar.gz) = 93b1e8fbad78dffada0736a26760eda175169771a065ca8a101cfa0ed70ed310 +SIZE (go-gitea-gitea-v1.4.1_GH0.tar.gz) = 14978598 Index: head/www/gitea/files/app.ini.sample.in =================================================================== --- head/www/gitea/files/app.ini.sample.in (revision 469091) +++ head/www/gitea/files/app.ini.sample.in (revision 469092) @@ -1,83 +1,86 @@ # # Sample Configuration for Gitea using SQLite # # For information on the available settings, consult the online # documentation, or see the accompanying file app.ini.defaults, which # contains the settings incorporated into the gitea binary. # # This sample configuration runs Gitea with a local database. Before # running this configuration, make sure to change the SECRET_KEY and the # INTERNAL_TOKEN at the end of this file. SECRET_KEY is a password of your # choosing, INTERNAL_TOKEN is a 64-byte random number in BASE64 encoding. # Your can generate the token using for example: # openssl rand -base64 64 # # There are no pre-configured users; the first user to register becomes an # admin. In this sample configuration, the HTTP server only listens on # localhost. # # If you'd rather use the web-based installer, remove this conf/app.ini file # and make %%PREFIX%%/etc/gitea/conf writeable to the git user. APP_NAME = Gitea: Git with a cup of tea RUN_USER = %%GITUSER%% RUN_MODE = prod [database] DB_TYPE = sqlite3 HOST = 127.0.0.1:3306 NAME = gitea PASSWD = PATH = /var/db/gitea/gitea.db SSL_MODE = disable USER = root [indexer] ISSUE_INDEXER_PATH = /var/db/gitea/indexers/issues.bleve [log] ROOT_PATH = /var/log/gitea MODE = file LEVEL = Info [mailer] ENABLED = false [picture] AVATAR_UPLOAD_PATH = /var/db/gitea/data/avatars DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = false [repository] ROOT = /var/db/gitea/gitea-repositories +# Gitea's default is 'bash', so if you have bash installed, you can comment +# this out. +SCRIPT_TYPE = sh [repository.upload] TEMP_PATH = /var/db/gitea/data/tmp/uploads [security] INSTALL_LOCK = true INTERNAL_TOKEN = 1FFhAklka01JhgJTRUrFujWYiv4ijqcTIfXJ9o4n1fWxz+XVQdXhrqDTlsnD7fvz7gugdhgkx0FY2Lx6IBdPQw== SECRET_KEY = ChangeMeBeforeRunning [session] PROVIDER = file PROVIDER_CONFIG = /var/db/gitea/data/sessions [server] DOMAIN = localhost HTTP_ADDR = 127.0.0.1 HTTP_PORT = 3000 ROOT_URL = http://localhost:3000/ DISABLE_SSH = false SSH_DOMAIN = %(DOMAIN)s SSH_PORT = 22 OFFLINE_MODE = false APP_DATA_PATH = /var/db/gitea/data [service] REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = false DISABLE_REGISTRATION = false ENABLE_CAPTCHA = true REQUIRE_SIGNIN_VIEW = false