| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 18.10.1 | 8 | ~amd64 ~x86 | 0 |
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit git-r3
DESCRIPTION="GitLab Pages daemon used to serve static websites for GitLab users"
HOMEPAGE="https://gitlab.com/gitlab-org/gitlab-pages"
EGIT_REPO_URI="https://gitlab.com/gitlab-org/${PN}.git"
EGIT_COMMIT="v${PV}"
LICENSE="MIT"
RESTRICT="mirror"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="systemd"
RESTRICT="network-sandbox"
DEPEND="
>=dev-lang/go-1.22
acct-user/gitlab-pages"
RDEPEND="${DEPEND}"
BDEPEND=""
src_install() {
exeinto /opt/gitlab/${PN}
doexe gitlab-pages
insinto /opt/gitlab/${PN}
doins README.md
if use systemd; then
insinto /etc/systemd/system/${PN}.d
doins "${FILESDIR}/${PN}.conf"
systemd_dounit "${FILESDIR}/${PN}.service"
else
doconfd "${FILESDIR}"/${PN}.confd
doinitd "${FILESDIR}"/${PN}.initd
fi
}
pkg_postinst() {
elog
elog "This package was added to the gitlab overlay in January 2021. It installs"
elog "the binary /opt/gitlab/${PN}/gitlab-pages and was never tested/used"
elog "by the overlay maintainer. -- Good Luck!"
elog
elog "Read <gitlab-base-dir>/doc/administration/pages/source.md and "
elog "/opt/gitlab/${PN}/README.md on how to set up GitLab Pages."
elog
if use systemd; then
elog "Edit /etc/systemd/system/${PN}.d/${PN}.conf and adjust"
elog "the settings for the ${PN}.service unit."
else
elog "Edit /etc/conf.d/${PN} and adjust"
elog "the settings for the /etc/init.d/${PN} service."
fi
}
>=dev-lang/go-1.22 acct-user/gitlab-pages
>=dev-lang/go-1.22 acct-user/gitlab-pages