This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/www-apps/simpleid/simpleid-9999-r1.ebuild

62 lines
1.3 KiB
Bash
Raw Normal View History

2018-06-22 11:29:21 +02:00
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit git-r3
KEYWORDS=""
DESCRIPTION="A simple, personal OpenID provider written in PHP"
HOMEPAGE="http://simpleid.koinic.net/"
EGIT_REPO_URI="https://github.com/simpleid/simpleid.git"
LICENSE="GPL-2"
SLOT="2"
IUSE="nginx"
RDEPEND=">=dev-lang/php-7.1.18:*
>=dev-php/spyc-0.6.1
>=dev-php/symfony-console-2.7.9-r1
nginx? ( >=www-servers/nginx-1.12.2-r1:* )"
DEPEND="${RDEPEND}"
src_unpack() {
git-r3_src_unpack
}
src_install() {
2018-06-22 11:38:57 +02:00
mkdir -p cache/simpleid
2018-06-22 11:29:21 +02:00
if use nginx; then
2018-06-22 11:38:57 +02:00
fowners nginx:nginx cache/simpleid
2018-06-22 11:29:21 +02:00
fi
2018-06-22 11:38:57 +02:00
insinto /var/cache
doins cache/simpleid
2018-06-22 11:29:21 +02:00
2018-06-22 11:38:57 +02:00
mkdir -p identities/simpleid
insinto /etc
doins identities/simpleid
2018-06-22 11:29:21 +02:00
2018-06-22 11:38:57 +02:00
mkdir -p store/simpleid
2018-06-22 11:29:21 +02:00
if use nginx; then
2018-06-22 11:38:57 +02:00
fowners nginx:nginx store/simpleid
2018-06-22 11:29:21 +02:00
fi
2018-06-22 11:38:57 +02:00
insinto /var/db
doins store/simpleid
2018-06-22 11:29:21 +02:00
mv www/config.php{.dist,}
insinto /usr/share/webapps/simpleid
doins -r www
dodoc README.md identities/example*
}
pkg_postinst() {
elog "Read https://simpleid.koinic.net/docs/2/installing/#directories carefully"
elog "to learn how to proceed with the installation."
if use nginx; then
einfo "The cache directory is: /var/cache/simpleid"
einfo "The identities directory is: /etc/simpleid"
einfo "The store directory is: /var/db/simpleid"
fi
}