28be8408e5
Changes: * BREAKING * Hide some user information via API if user doesn't have enough permission (#8655) (#8658) * BUGFIXES * Fix milestone close timestamp (#8728) (#8731) * Fix deadline on update issue or PR via API (#8699) * Fix 'New Issue Missing Milestone Comment' (#8678) (#8682) * Fix 500 when getting user as unauthenticated user (#8653) (#8662) * Use AppSubUrl for more redirections (#8647) (#8652) * Add SubURL to redirect path (#8632) (#8634) (#8640) * Fix #8582 by handling empty repos (#8587) (#8593) * Fix bug on pull requests when transfer head repository (#8571) * Add missed close in ServeBlobLFS (#8527) (#8543) * Return false if provided branch name is empty for IsBranchExist (#8485) (#8492) * Create .ssh dir as necessary (#8369) (#8486) (#8489) * Restore functionality for early gits (#7775) (#8476) * Add check for empty set when dropping indexes during migration (#8475) * Ensure Request Body Readers are closed in LFS server (#8454) (#8459) * Ensure that LFS files are relative to the LFS content path (#8455) (#8458) * SECURITY * Ignore mentions for users with no access (#8395) (#8484) * TESTING * Update heatmap fixtures to restore tests (#8615) (#8617)
93 lines
2.5 KiB
Makefile
93 lines
2.5 KiB
Makefile
# $NetBSD: Makefile,v 1.15 2019/11/01 17:52:38 nia Exp $
|
|
|
|
DISTNAME= gitea-1.9.5
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=go-gitea/}
|
|
CATEGORIES= www
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
|
|
|
MAINTAINER= tuxillo@quantumachine.net
|
|
HOMEPAGE= https://gitea.io/
|
|
COMMENT= Compact self-hosted Git service
|
|
LICENSE= mit
|
|
|
|
GO_DIST_BASE= ${DISTNAME}
|
|
GO_SRCPATH= code.gitea.io/gitea
|
|
|
|
.include "options.mk"
|
|
|
|
.if !empty(GO_TAGS)
|
|
GO_BUILD_PATTERN+= -tags "${GO_TAGS}"
|
|
.endif
|
|
|
|
GO_BUILD_PATTERN+= ${GO_SRCPATH}
|
|
|
|
BUILD_DEFS+= VARBASE GITEA_USER GITEA_GROUP
|
|
|
|
EXTRACT_USING= bsdtar
|
|
USE_TOOLS+= pax
|
|
DEPENDS+= git-base-[0-9]*:../../devel/git-base
|
|
|
|
EGDIR= ${PREFIX}/share/examples/gitea
|
|
|
|
OWN_DIRS_PERMS+= ${VARBASE}/log/gitea ${GITEA_USER} ${GITEA_GROUP} 0755
|
|
OWN_DIRS_PERMS+= ${VARBASE}/db/gitea ${GITEA_USER} ${GITEA_GROUP} 0755
|
|
OWN_DIRS_PERMS+= ${PKG_SYSCONFDIR}/conf ${GITEA_USER} ${GITEA_GROUP} 0755
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
GITEA_USER?= git
|
|
GITEA_GROUP?= git
|
|
|
|
PKG_GROUPS_VARS+= GITEA_GROUP
|
|
PKG_USERS_VARS+= GITEA_USER
|
|
|
|
PKG_SYSCONFSUBDIR= gitea
|
|
|
|
INSTALLATION_DIRS+= sbin share/gitea share/examples/gitea
|
|
|
|
PKG_GROUPS= ${GITEA_GROUP}
|
|
PKG_USERS= ${GITEA_USER}:${GITEA_GROUP}
|
|
|
|
PKG_SHELL.${GITEA_USER}= ${SH}
|
|
PKG_HOME.${GITEA_USER}= ${VARBASE}/db/gitea
|
|
|
|
SUBST_CLASSES+= fix-version
|
|
SUBST_STAGE.fix-version= pre-configure
|
|
SUBST_MESSAGE.fix-version= Fix the version number.
|
|
SUBST_FILES.fix-version= ${WRKSRC}/main.go
|
|
SUBST_SED.fix-version= -E 's\#^(var Version = )"[^"]+"\#\1"${PKGVERSION}"\#'
|
|
|
|
SUBST_CLASSES+= fix-var
|
|
SUBST_STAGE.fix-var= pre-configure
|
|
SUBST_MESSAGE.fix-var= Replace some vars
|
|
SUBST_FILES.fix-var= ${WRKDIR}/app.ini.sample
|
|
SUBST_VARS.fix-var= VARBASE GITEA_USER
|
|
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/conf
|
|
|
|
CONF_FILES_PERMS+= ${EGDIR}/app.ini.sample ${PKG_SYSCONFDIR}/conf/app.ini \
|
|
${GITEA_USER} ${GITEA_GROUP} 0600
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
FILES_SUBST+= GITEA_USER=${GITEA_USER}
|
|
FILES_SUBST+= GITEA_GROUP=${GITEA_GROUP}
|
|
FILES_SUBST+= GITEA_USER_HOME=${VARBASE}/db/gitea
|
|
FILES_SUBST+= GITEA_SHARE_DIR=${PREFIX}/share/gitea
|
|
|
|
RCD_SCRIPTS+= gitea
|
|
|
|
pre-patch:
|
|
${CP} ${FILESDIR}/app.ini.sample ${WRKDIR}/
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKDIR}/bin/gitea ${DESTDIR}${PREFIX}/sbin
|
|
cd ${WRKSRC}/options && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/gitea/options/
|
|
cd ${WRKSRC}/templates && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/gitea/templates/
|
|
cd ${WRKSRC}/public && ${PAX} -rw -pp . ${DESTDIR}${PREFIX}/share/gitea/public/
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKDIR}/app.ini.sample ${DESTDIR}${EGDIR}
|
|
|
|
.include "../../lang/go/go-package.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|