Files
gentoo-overlay/net-misc/reposilite/reposilite-3.5.9.ebuild
2024-03-29 17:38:01 +01:00

40 lines
813 B
Bash

EAPI="7"
#inherit systemd
DESCRIPTION="Lightweight and easy-to-use repository management software for Maven"
HOMEPAGE="https://github.com/dzikoysk/reposilite"
SRC_URI="https://maven.reposilite.com/releases/com/${PN}/${PN}/${PV}/${P}-all.jar -> ${P}.jar"
SLOT="0"
LICENSE="Apache-2.0"
KEYWORDS="amd64"
S="${WORKDIR}"
RDEPEND="
>=virtual/jre-11
acct-group/reposilite
acct-user/reposilite
"
DEPEND="${RDEPEND}"
src_install() {
insinto "/usr/lib/${PN}"
newins "${DISTDIR}/${P}.jar" "${PN}.jar"
newinitd "${FILESDIR}/${PN}.initd" ${PN}
newconfd "${FILESDIR}/${PN}.confd" ${PN}
#systemd_dounit "${FILESDIR}/${PN}.service"
diropts -m 0750 -o ${PN} -g ${PN}
dodir /etc/${PN}
keepdir /var/lib/${PN}
keepdir /var/log/${PN}
insinto /etc/${PN}
doins "${FILESDIR}/configuration.cdn"
}