Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions www-apps/gitea/Manifest
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
DIST gitea-1.23.8-funtoo-go-bundle-4bb3298c5daa97e0b669de6650995fc80e554219c5fa7140efea1b3bede7d43119bcf43a040d9f158410388e6c94ea7c345063d5884c60d5f3f5503c0cd6f0d1.tar.gz 512212243 BLAKE2B bf734e525c9155cc33ef76447b7288d5a15782527e3e7dbba583c1d41791afac518ce5051ff957b769ef98cba4658b4023049530e65b26ec63d8102cf11cceeb SHA512 2999b29934b6342a34b3fec340917f78a1cd515ebd5ef37233bd99611bcc3c6834867228d28dc2decd40e473a010b41f3195af26ad7650dd170bbc7a1c7d67a7
DIST gitea-1.24.5-136ec9e.tar.gz 6341602 BLAKE2B 0868ccedfb1294129cf272c828b3fabefc7ec5497c8f2b46db0d1d660043e697872bcc207a8635c08641f19bbb8d369f7e89e43d0d7f62a2d478a9744bfcc1d7 SHA512 d5f8f7d4ccb269f047d8c475109b1174e4e786795ff5b1eef434f9150920b4eba1df4fa7dd9d1f813a5f2823ff7c21ad1d73db878c6372b531f02edb416f34de
DIST gitea-1.24.5-mark-go-bundle-136ec9e.tar.xz 485588560 BLAKE2B 3c9e33b80e1fd4981131657c94a0d1fe63ffc5bb162e01858f978ac8fe854e26d3f3da3ed1fe32da217e1f1b5fd7a014d8e3df0f28bb02fe03edc3818bf86306 SHA512 89523fb37e268870bc806b5e7ac0133803c03ec0e9cb9f4bca2b9c83a6021b9be74441eb5dd54a62e681eef7ec72ccf91f32d10c4b3af0a6bbe2302e6a694007
DIST gitea-src-1.23.8.tar.gz 55482190 BLAKE2B de982508349191525eb8e6ef4ecb16544f5162a21c9b506f94630864e839debc4870a04776696aa29fbd52835cd27264bba5b63d86462b165a2869c0d3b09ac8 SHA512 81a69a9b786639a2080b1c3acc82c04146f1ab89e828c3a3447490b0632a3d3199b2c0927b833733cc498e2ebd049fecb00632b07d835fdb9ec9fa3a200e7080
1 change: 0 additions & 1 deletion www-apps/gitea/files/gitea.initd-r3
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/sbin/openrc-run
# Copyright 2016-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

description="Gitea, a self-hosted Git service"
Expand Down
97 changes: 97 additions & 0 deletions www-apps/gitea/gitea-1.24.5.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
# Distributed under the terms of the GNU General Public License v2
# Autogen by MARK Devkit

EAPI=7
FILECAPS=( -m 711 cap_net_bind_service+ep usr/bin/gitea )
inherit fcaps go-module tmpfiles systemd flag-o-matic user

DESCRIPTION="A painless self-hosted Git service"
HOMEPAGE="https://gitea.com https://github.com/go-gitea/gitea"
SRC_URI="
https://api.github.com/repos/go-gitea/gitea/tarball/v1.24.5 -> gitea-1.24.5-136ec9e.tar.gz
mirror://macaroni/gitea-1.24.5-mark-go-bundle-136ec9e.tar.xz -> gitea-1.24.5-mark-go-bundle-136ec9e.tar.xz"
SLOT="0"
KEYWORDS="*"
DOCS=(
custom/conf/app.example.ini
CHANGELOG.md
CONTRIBUTING.md
README.md
)
IUSE="systemd"
# Commons depends
CDEPEND="sys-libs/pam
"
BDEPEND="dev-lang/go
"
RDEPEND="${CDEPEND}
dev-vcs/git

"
DEPEND="${CDEPEND}
"

post_src_unpack() {
mv go-gitea-gitea-* ${S}
}


pkg_setup() {
enewgroup git
enewuser git -1 /bin/bash /var/lib/gitea git
}
src_prepare() {
default
sed -i -e "s#^MODE = console#MODE = file#" custom/conf/app.example.ini || die
}
src_configure() {
# bug 832756 - PIE build issues
filter-flags -fPIE
filter-ldflags -fPIE -pie
}
src_compile() {
local gitea_tags
local -a gitea_settings makeenv
gitea_tags="bindata,pam,sqlite,sqlite_unlock_notify"
gitea_settings=(
"-X code.gitea.io/gitea/modules/setting.CustomConf=/etc/gitea/app.ini"
"-X code.gitea.io/gitea/modules/setting.CustomPath=/var/lib/gitea/custom"
"-X code.gitea.io/gitea/modules/setting.AppWorkPath=/var/lib/gitea"
)
makeenv=(
LDFLAGS="-extldflags \"${LDFLAGS}\" ${gitea_settings[*]}"
TAGS="${gitea_tags}"
)
# Use variable STORED_VERSION_FILE (the "${S}/VERSION" file) to set version,
# and prevent executing git command when it's not a live version.
makeenv+=( GITHUB_REF_NAME="" )
env "${makeenv[@]}" emake backend
}
src_install() {
dobin gitea
einstalldocs
newconfd "${FILESDIR}/gitea.confd-r1" gitea
if use systemd ; then
systemd_newunit "${FILESDIR}"/gitea.service-r4 gitea.service
else
newinitd "${FILESDIR}/gitea.initd-r3" gitea
fi
newtmpfiles - gitea.conf <<-EOF
d /run/gitea 0755 git git
EOF
insinto /etc/gitea
newins custom/conf/app.example.ini app.ini
fowners root:git /etc/gitea/{,app.ini}
fperms g+w,o-rwx /etc/gitea/{,app.ini}
diropts -m0750 -o git -g git
keepdir /var/lib/gitea /var/lib/gitea/custom /var/lib/gitea/data
keepdir /var/log/gitea
}
pkg_postinst() {
fcaps_pkg_postinst
tmpfiles_process gitea.conf
}



# vim: filetype=ebuild
Loading