Update gitea 1.17.2 -> 1.17.3
Changelog: https://github.com/go-gitea/gitea/releases/tag/v1.17.3 Port changes: * Static assets location was changed from /usr/local/share/gitea/public/ to /var/www/gitea/public/; /usr/local/share/gitea/public is now a symlink to /var/www/gitea/public/. This makes serving static files by local http server easier. Idea from aisha@, help from sthen@, thanks! This change breaks port upgrade using 'pkg_add -u'; 'pkg_delete gitea; pkg_add gitea' is needed to upgrade the port.
This commit is contained in:
parent
866af1539b
commit
d6dc7af9ff
|
@ -1,6 +1,6 @@
|
|||
COMMENT = compact self-hosted Git service
|
||||
|
||||
VERSION = 1.17.2
|
||||
VERSION = 1.17.3
|
||||
DISTNAME = gitea-src-${VERSION}
|
||||
PKGNAME = gitea-${VERSION}
|
||||
|
||||
|
@ -20,10 +20,10 @@ MODULES = lang/go
|
|||
|
||||
GO_TAGS = sqlite sqlite_unlock_notify
|
||||
MODGO_FLAGS += -tags "${GO_TAGS}"
|
||||
MODGO_LDFLAGS += -X code.gitea.io/gitea/modules/setting.AppWorkPath=${PREFIX}/share/gitea
|
||||
MODGO_LDFLAGS += -X code.gitea.io/gitea/modules/setting.AppWorkPath=${LOCALBASE}/share/gitea
|
||||
MODGO_LDFLAGS += -X code.gitea.io/gitea/modules/setting.CustomConf=${SYSCONFDIR}/gitea/app.ini
|
||||
MODGO_LDFLAGS += -X code.gitea.io/gitea/modules/setting.CustomPath=${LOCALSTATEDIR}/gitea/custom
|
||||
MODGO_LDFLAGS += -X code.gitea.io/gitea/modules/setting.StaticRootPath=${PREFIX}/share/gitea
|
||||
MODGO_LDFLAGS += -X code.gitea.io/gitea/modules/setting.StaticRootPath=${LOCALBASE}/share/gitea
|
||||
MODGO_LDFLAGS += -X main.Version=${VERSION}
|
||||
MODGO_LDFLAGS += -X 'main.Tags=${GO_TAGS}'
|
||||
|
||||
|
@ -38,12 +38,15 @@ pre-configure:
|
|||
do-install:
|
||||
${INSTALL_PROGRAM} ${MODGO_WORKSPACE}/bin/gitea ${PREFIX}/sbin
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/gitea
|
||||
.for _d in custom/conf options public templates
|
||||
.for _d in custom/conf options templates
|
||||
cp -Rp ${WRKSRC}/${_d} ${PREFIX}/share/gitea
|
||||
.endfor
|
||||
${INSTALL_DATA_DIR} ${WRKINST}${VARBASE}/www/gitea
|
||||
cp -Rp ${WRKSRC}/public ${WRKINST}${VARBASE}/www/gitea
|
||||
ln -s ${VARBASE}/www/gitea/public ${PREFIX}/share/gitea/public
|
||||
|
||||
post-install:
|
||||
@find ${WRKINST} -type f \
|
||||
\( -name '*.beforesubst' -o -name '*.orig' \) -delete
|
||||
@find ${WRKINST}/ -type f \
|
||||
\( -name '*.beforesubst' -o -name '*${PATCHORIG}' \) -delete
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
SHA256 (gitea-src-1.17.2.tar.gz) = pDg+HC3dbWf0RxoLvBtIOaFauP1pUYBOG+Q9cinh3lg=
|
||||
SIZE (gitea-src-1.17.2.tar.gz) = 52668293
|
||||
SHA256 (gitea-src-1.17.3.tar.gz) = NUkEgKt5OETo751UHcocPH7lEIgyBf6Rl/Nz0nbNH3g=
|
||||
SIZE (gitea-src-1.17.3.tar.gz) = 52711597
|
||||
|
|
1990
www/gitea/pkg/PLIST
1990
www/gitea/pkg/PLIST
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user