From 6b1ef0de68f877bdeb673a032e6f332166876389 Mon Sep 17 00:00:00 2001 From: tastytea Date: Fri, 22 Jun 2018 11:29:21 +0200 Subject: [PATCH] added simpleid-9999-r1 --- www-apps/simpleid/metadata.xml | 3 ++ www-apps/simpleid/simpleid-9999-r1.ebuild | 55 +++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 www-apps/simpleid/simpleid-9999-r1.ebuild diff --git a/www-apps/simpleid/metadata.xml b/www-apps/simpleid/metadata.xml index 2891eadb9..1d50c59d1 100644 --- a/www-apps/simpleid/metadata.xml +++ b/www-apps/simpleid/metadata.xml @@ -13,4 +13,7 @@ https://simpleid.koinic.net/docs/2/ https://github.com/simpleid/simpleid/issues + + Adds support for nginx + diff --git a/www-apps/simpleid/simpleid-9999-r1.ebuild b/www-apps/simpleid/simpleid-9999-r1.ebuild new file mode 100644 index 000000000..34ff683bc --- /dev/null +++ b/www-apps/simpleid/simpleid-9999-r1.ebuild @@ -0,0 +1,55 @@ +# 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() { + mkdir -p /var/cache/simpleid + if use nginx; then + fowners nginx:nginx /var/cache/simpleid + fi + + mkdir -p /etc/simpleid + + mkdir -p /var/db/simpleid + if use nginx; then + fowners nginx:nginx /var/db/simpleid + fi + + 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 +}