2020-10-08 23:21:07 +02:00
|
|
|
# Copyright 1999-2020 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI="7"
|
|
|
|
|
|
|
|
inherit systemd
|
|
|
|
|
|
|
|
DESCRIPTION="Reposilite - Simple Maven Repository hosting"
|
|
|
|
HOMEPAGE="https://reposilite.com/"
|
|
|
|
#SRC_URI=""
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
DEPEND=""
|
|
|
|
RDEPEND="acct-user/reposilite
|
|
|
|
app-emulation/docker
|
|
|
|
"
|
|
|
|
|
|
|
|
S="${WORKDIR}"
|
|
|
|
|
|
|
|
src_prepare() {
|
|
|
|
sed -e "s/<VERSION>/${PV}/g" "${FILESDIR}/reposilite.sh" > "${T}/reposilite.sh"
|
|
|
|
|
|
|
|
eapply_user
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
exeinto /usr/bin
|
|
|
|
doexe "${T}/reposilite.sh"
|
|
|
|
|
|
|
|
systemd_dounit "${FILESDIR}/${PN}.service"
|
|
|
|
|
|
|
|
insinto "/etc/reposilite"
|
|
|
|
doins "${FILESDIR}/app.ini"
|
2020-10-08 23:49:55 +02:00
|
|
|
newins "${FILESDIR}/reposilite-2.9.1.cdn" reposilite.cdn
|
2020-10-08 23:21:07 +02:00
|
|
|
|
|
|
|
fowners reposilite /etc/reposilite
|
|
|
|
fperms 0700 /etc/reposilite
|
|
|
|
fowners reposilite:reposilite /etc/reposilite/app.ini /etc/reposilite/reposilite.cdn
|
|
|
|
fperms 0600 /etc/reposilite/app.ini /etc/reposilite/reposilite.cdn
|
|
|
|
}
|