purge gitea #13
10 changed files with 0 additions and 217 deletions
|
@ -1,11 +0,0 @@
|
|||
*gitea-1.5.1 (05 Sep 2018)
|
||||
|
||||
05 Sep 2018; <manuel@gentoo.org> +gitea-1.5.1.ebuild:
|
||||
www-apps/gitea: Add ebuild for version 1.5.1.
|
||||
|
||||
*gitea-1.5.0 (01 Sep 2018)
|
||||
|
||||
01 Sep 2018; <manuel@gentoo.org> +files/app.ini, +files/gitea.confd,
|
||||
+files/gitea.initd-r1, +files/gitea.logrotated, +files/gitea.service,
|
||||
+gitea-1.5.0.ebuild, +metadata.xml:
|
||||
www-apps/gitea: Add ebuild for version 1.5.0.
|
|
@ -1,11 +0,0 @@
|
|||
AUX app.ini 67 BLAKE2B 4ec7b8217486047b419202b3a8a7172ac21ae0e5ad9224cd4f010be730ac5cda9d05bf06dcba2d06f8809900094b3b007ef98dd4ea20a125fb7d3db279f53e4a SHA512 93f6f7cf49dd1ece56f7da711adbb58cc38a503527aeea140837d74456ee6f550a089e897d9cb94382e1eb3f5a5cbe4a61362534463eada08a91f314da0f2108
|
||||
AUX gitea.confd 74 BLAKE2B 656800d35c8f0075005e7e9e5c804292f9884663f89f653426064a20cfbcb518f736bd94947a03bce5adad670fb6150d93026999d6d5395f37a85666b6663a2f SHA512 3e05bad19cd924c4375d9ca6fc57142ba4b5ec897a1c789c3fc9710dfcfee209a199c95040eece089ad93e0357486ab98fad0c448a61e318646b7a71845e9a25
|
||||
AUX gitea.initd-r1 688 BLAKE2B eb2341dee53f3fd92c49137855615d9ae7ca77efc396e2d2ed8b624ed2776c7522455a469c00172ecbbe2151ccab476baa0c779baf8a39f63348bdc7ebbd29c2 SHA512 4a6bba463c9abafcb6fc9f3854efd1a69fb3b213c2b34ff6a233f90db535c2ab0f375a0809e4c4be6651ed60d7696a54148a5ee9192567d70ca6a5203a8d3266
|
||||
AUX gitea.logrotated 87 BLAKE2B 373830ddd6eed0ce2f0f7b1dab14e4a253e5a56a73f477cfadbc6deec373846d4df2d697735391581771699d5a6513acb0e14a446873de01eba10d19e3a6bd88 SHA512 798f3fc33026f19dd31ffa78b9b1ed313d7b82b19c047f509e896c1798b2925a1bb7c4998d98a6b47e728979bf7132fb1c2a80eb7fda096a763d6791631cb6d4
|
||||
AUX gitea.service 472 BLAKE2B 4c728e2987d0c0a86e65d4b9c1a59f6193ff8a3f9b066991a06f495ad1c5586b3497c71fca1cce5b65f167af09343e7bf3215ee5e8fdefa539e384198d2d88d6 SHA512 6666fe3b4cdbb78a58db4a6bf47a15e6be9ab30b666c6eb77a9e8a002d8c0abd510fc75ef463a11ee6892ab12c98943774616072cb64fd9f2fa42ff8f676aa95
|
||||
DIST gitea-1.5.0.tar.gz 18847969 BLAKE2B 59da59a3d08c64c066204f4764f14c4b257495aba7800e9d6ebfcab5ad12402ce6cd17f14ec2187f994b46d83cf587422d7b711ceea4a99cc366105bd374daa1 SHA512 06cbcadc138496abf500b8d219d0770c5f6b8af419f9c3733596ee7e20cb50235815433979b2b1daa0a6117e6eb84de9678667236549e018079c49b793f22d68
|
||||
DIST gitea-1.5.1.tar.gz 18843260 BLAKE2B 0c9e0e82de91938c6c8e64a2b3ff56d16a5bdde105e934dd29923f99185e924493239c00dab5fb1af83e3973be23f2e53729831a77a509bd626d4796ba794e56 SHA512 16d10d98caf377d3bd5b4933316290e853a8fc46f5fdb3c206b9607750b5bdbdfd5c50bf8dd59906d7476d0e9211a67332eb4b780d8d37cdfb1c0bc3141ceed7
|
||||
EBUILD gitea-1.5.0.ebuild 1892 BLAKE2B 09a05d287962d04ac368be5a9a20f65d1310231a55e90e10fb3dc9d2da79aaf94a16bf24a1f4d6be7cc27be4130a7e2edcf91fc05cad6c20077a98c09123e3b7 SHA512 aa22f9c026cb5741679c1fa8783ac9aceb1ff413d96e4a422e7f21ae5fd4ab12872b330fd58b790a9cfcf121a519a73a44016270a6919b1cd076a6ca70693998
|
||||
EBUILD gitea-1.5.1.ebuild 1892 BLAKE2B 09a05d287962d04ac368be5a9a20f65d1310231a55e90e10fb3dc9d2da79aaf94a16bf24a1f4d6be7cc27be4130a7e2edcf91fc05cad6c20077a98c09123e3b7 SHA512 aa22f9c026cb5741679c1fa8783ac9aceb1ff413d96e4a422e7f21ae5fd4ab12872b330fd58b790a9cfcf121a519a73a44016270a6919b1cd076a6ca70693998
|
||||
MISC ChangeLog 393 BLAKE2B eb6676c026e3f303c23faf9a66261a394768a94f663eb0e0b5b41aa11097e3726b24006a01227ec6081f857e575b2f5cdd7b3da618de41df673e33878a55bb68 SHA512 d71088a75680a04a0767a013b7a28b586fc206301ba6651507b89a6efc0216efe5d635aba6c27775f6356dfe012374015e0c0e32a4bb564c0f8f9d91cdf4561d
|
||||
MISC metadata.xml 246 BLAKE2B 291057fd61e77f8d99f9518e3f709d79ab79ac5ac5ce1387d27a26cec6272698fe6bda7cfacaeb203411413ed003c71cdaead8316cd9e5a2c1ce1056637eaee4 SHA512 9af718c7e0ca960324b9fc168e85824099a5434a322d7da78dabc90b8cd3be2201a3eb321facd0df575fa1d0865c1f80280d290589f0ff1d27bdef575297abb7
|
|
@ -1,4 +0,0 @@
|
|||
[log]
|
||||
MODE = file
|
||||
LEVEL = Info
|
||||
ROOT_PATH = /var/log/gitea
|
|
@ -1,2 +0,0 @@
|
|||
# arguments for gitea
|
||||
command_args="--config /var/lib/gitea/conf/app.ini"
|
|
@ -1,25 +0,0 @@
|
|||
#!/sbin/openrc-run
|
||||
# Copyright 2016-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="Gitea, a self-hosted Git service"
|
||||
pidfile=${pidfile:-"/run/${SVCNAME}/${SVCNAME}.pid"}
|
||||
user=${user:-git}
|
||||
group=${group:-git}
|
||||
|
||||
command="/usr/bin/gitea web"
|
||||
command_args="${command_args:--config /var/lib/gitea/conf/app.ini}"
|
||||
command_background="true"
|
||||
start_stop_daemon_args="--user ${user} --group ${group} \
|
||||
-e GITEA_WORK_DIR=/var/lib/gitea
|
||||
--stdout /var/log/${SVCNAME}/${SVCNAME}.log \
|
||||
--stderr /var/log/${SVCNAME}/${SVCNAME}.log"
|
||||
|
||||
depend() {
|
||||
need net
|
||||
after net
|
||||
}
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${user}":"${group}" "${pidfile%/*}"
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
/var/log/gitea/* {
|
||||
su git git
|
||||
missingok
|
||||
size 5M
|
||||
rotate 3
|
||||
compress
|
||||
copytruncate
|
||||
}
|
|
@ -1,26 +0,0 @@
|
|||
[Unit]
|
||||
Description=Gitea service
|
||||
Documentation=https://gitea.io
|
||||
|
||||
AssertPathIsDirectory=/var/lib/gitea
|
||||
AssertPathIsReadWrite=/var/lib/gitea
|
||||
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
After=mysqld.service
|
||||
Requires=mysqld.service
|
||||
|
||||
[Service]
|
||||
User=git
|
||||
Group=git
|
||||
|
||||
Environment="GITEA_CUSTOM=/var/lib/gitea"
|
||||
WorkingDirectory=/var/lib/gitea
|
||||
ExecStart=/usr/bin/gitea web -c /var/lib/gitea/conf/app.ini
|
||||
|
||||
Restart=always
|
||||
PrivateTmp=true
|
||||
Nice=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,61 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit user systemd golang-build golang-vcs-snapshot
|
||||
|
||||
EGO_PN="code.gitea.io/gitea"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
|
||||
DESCRIPTION="A painless self-hosted Git service, written in Go"
|
||||
HOMEPAGE="https://github.com/go-gitea/gitea"
|
||||
SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-go/go-bindata"
|
||||
RDEPEND="dev-vcs/git"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup git
|
||||
enewuser git -1 /bin/bash /var/lib/gitea git
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
|
||||
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
|
||||
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN} || die
|
||||
dobin gitea
|
||||
insinto /var/lib/gitea/conf
|
||||
newins custom/conf/app.ini.sample app.ini.example
|
||||
popd || die
|
||||
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
|
||||
newconfd "${FILESDIR}"/gitea.confd gitea
|
||||
keepdir /var/log/gitea /var/lib/gitea/data
|
||||
fowners -R git:git /var/log/gitea /var/lib/gitea/
|
||||
systemd_dounit "${FILESDIR}/gitea.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
|
||||
elog "No app.ini found, copying initial config over"
|
||||
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
|
||||
chown git:git /var/lib/gitea/conf/app.ini
|
||||
else
|
||||
elog "app.ini found, please check example file for possible changes"
|
||||
ewarn "Please note that environment variables have been changed:"
|
||||
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
|
||||
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
|
||||
fi
|
||||
}
|
|
@ -1,61 +0,0 @@
|
|||
# Copyright 1999-2018 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
inherit user systemd golang-build golang-vcs-snapshot
|
||||
|
||||
EGO_PN="code.gitea.io/gitea"
|
||||
KEYWORDS="~amd64 ~arm"
|
||||
|
||||
DESCRIPTION="A painless self-hosted Git service, written in Go"
|
||||
HOMEPAGE="https://github.com/go-gitea/gitea"
|
||||
SRC_URI="https://github.com/go-gitea/gitea/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
DEPEND="dev-go/go-bindata"
|
||||
RDEPEND="dev-vcs/git"
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup git
|
||||
enewuser git -1 /bin/bash /var/lib/gitea git
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i -e "s/\"main.Version.*$/\"main.Version=${PV}\"/"\
|
||||
-e "s/-ldflags '-s/-ldflags '/" src/${EGO_PN}/Makefile || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} generate
|
||||
TAGS="bindata pam sqlite" LDFLAGS="" CGO_LDFLAGS="-fno-PIC" GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" emake -C src/${EGO_PN} build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
pushd src/${EGO_PN} || die
|
||||
dobin gitea
|
||||
insinto /var/lib/gitea/conf
|
||||
newins custom/conf/app.ini.sample app.ini.example
|
||||
popd || die
|
||||
newinitd "${FILESDIR}"/gitea.initd-r1 gitea
|
||||
newconfd "${FILESDIR}"/gitea.confd gitea
|
||||
keepdir /var/log/gitea /var/lib/gitea/data
|
||||
fowners -R git:git /var/log/gitea /var/lib/gitea/
|
||||
systemd_dounit "${FILESDIR}/gitea.service"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
if [[ ! -e "${EROOT}/var/lib/gitea/conf/app.ini" ]]; then
|
||||
elog "No app.ini found, copying initial config over"
|
||||
cp "${FILESDIR}"/app.ini "${EROOT}"/var/lib/gitea/conf/ || die
|
||||
chown git:git /var/lib/gitea/conf/app.ini
|
||||
else
|
||||
elog "app.ini found, please check example file for possible changes"
|
||||
ewarn "Please note that environment variables have been changed:"
|
||||
ewarn "GITEA_WORK_DIR is set to /var/lib/gitea (previous value: unset)"
|
||||
ewarn "GITEA_CUSTOM is set to '\$GITEA_WORK_DIR/custom' (previous: /var/lib/gitea)"
|
||||
fi
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<upstream>
|
||||
<remote-id type="github">go-gitea/gitea</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue