summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <hans@degraaff.org>2020-06-28 08:37:32 +0200
committerHans de Graaff <hans@degraaff.org>2020-06-28 08:37:32 +0200
commitc0c735d5bef75904199f4d74d599e75d624ee9d3 (patch)
tree1ca4a68b9bf8082d718a624a9709de5d87e7703b /www-apache
parentsys-fs/zfstools: add ruby27 (diff)
downloadgraaff-c0c735d5bef75904199f4d74d599e75d624ee9d3.tar.gz
graaff-c0c735d5bef75904199f4d74d599e75d624ee9d3.tar.bz2
graaff-c0c735d5bef75904199f4d74d599e75d624ee9d3.zip
www-apache/mod_auth_mellon: initial import of 0.16.0
Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Hans de Graaff <hans@degraaff.org>
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_auth_mellon/Manifest1
-rw-r--r--www-apache/mod_auth_mellon/files/10_mod_auth_mellon.conf66
-rw-r--r--www-apache/mod_auth_mellon/metadata.xml13
-rw-r--r--www-apache/mod_auth_mellon/mod_auth_mellon-0.16.0.ebuild52
4 files changed, 132 insertions, 0 deletions
diff --git a/www-apache/mod_auth_mellon/Manifest b/www-apache/mod_auth_mellon/Manifest
new file mode 100644
index 00000000..af03d982
--- /dev/null
+++ b/www-apache/mod_auth_mellon/Manifest
@@ -0,0 +1 @@
+DIST v0_16_0.tar.gz 916782 BLAKE2B 9e16e7a272a04a599e4159a0eace8be7a814e57fd85415bec188bba58c870ec1799590def09ae5a29a9c763bd79ebecaaee9c5cc37caa8e7ce6e6ce2b8bceb56 SHA512 9d914185c53a4ae9da200a99bfa2427db45e5c8d2788f41e92032211407a12d516d5b45658a79a7969867df72d8abb2aa1392c74c0d9af5063e2b30163ccdc32
diff --git a/www-apache/mod_auth_mellon/files/10_mod_auth_mellon.conf b/www-apache/mod_auth_mellon/files/10_mod_auth_mellon.conf
new file mode 100644
index 00000000..ea1d991a
--- /dev/null
+++ b/www-apache/mod_auth_mellon/files/10_mod_auth_mellon.conf
@@ -0,0 +1,66 @@
+###########################################################################
+# Global configuration for mod_auth_mellon. This configuration is shared by
+# every virtual server and location in this instance of apache.
+###########################################################################
+
+# MellonCacheSize sets the maximum number of sessions which can be active
+# at once. When mod_auth_mellon reaches this limit, it will begin removing
+# the least recently used sessions. The server must be restarted before any
+# changes to this option takes effect.
+# Default: MellonCacheSize 100
+MellonCacheSize 100
+
+# MellonCacheEntrySize sets the maximum size for a single session entry in
+# bytes. When mod_auth_mellon reaches this limit, it cannot store any more
+# data in the session and will return an error. The minimum entry size is
+# 65536 bytes, values lower than that will be ignored and the minimum will
+# be used.
+# Default: MellonCacheEntrySize 196608
+
+# MellonLockFile is the full path to a file used for synchronizing access
+# to the session data. The path should only be used by one instance of
+# apache at a time. The server must be restarted before any changes to this
+# option takes effect.
+# Default: MellonLockFile "/var/run/mod_auth_mellon.lock"
+MellonLockFile "/var/run/mod_auth_mellon.lock"
+
+# MellonPostDirectory is the full path of a directory where POST requests
+# are saved during authentication. This directory must writable by the
+# Apache user. It should not be writable (or readable) by other users.
+# Default: None
+# Example: MellonPostDirectory "/var/cache/mod_auth_mellon_postdata"
+
+# MellonPostTTL is the delay in seconds before a saved POST request can
+# be flushed.
+# Default: MellonPostTTL 900 (15 mn)
+MellonPostTTL 900
+
+# MellonPostSize is the maximum size for saved POST requests
+# Default: MellonPostSize 1048576 (1 MB)
+MellonPostSize 1048576
+
+# MellonPostCount is the maximum amount of saved POST requests
+# Default: MellonPostCount 100
+MellonPostCount 100
+
+# MellonDiagnosticsFile If Mellon was built with diagnostic capability
+# then diagnostic is written here, it may be either a filename or a pipe.
+# If it's a filename then the resulting path is relative to the ServerRoot.
+# If the value is preceeded by the pipe character "|" it should be followed
+# by a path to a program to receive the log information on its standard input.
+# This is a server context directive, hence it may be specified in the
+# main server config area or within a <VirtualHost> directive.
+# Default: logs/mellon_diagnostics
+#MellonDiagnosticsFile logs/mellon_diagnostics
+
+# MellonDiagnosticsEnable If Mellon was built with diagnostic capability
+# then this is a list of words controlling diagnostic output.
+# Currently only On and Off are supported.
+# This is a server context directive, hence it may be specified in the
+# main server config area or within a <VirtualHost> directive.
+# Default: Off
+#MellonDiagnosticsEnable Off
+
+###########################################################################
+# End of global configuration for mod_auth_mellon.
+###########################################################################
diff --git a/www-apache/mod_auth_mellon/metadata.xml b/www-apache/mod_auth_mellon/metadata.xml
new file mode 100644
index 00000000..9b8f7c2c
--- /dev/null
+++ b/www-apache/mod_auth_mellon/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">latchset/mod_auth_mellon</remote-id>
+ </upstream>
+ <use>
+ <flag name="diagnostics">Enable ability to collect diagnostics</flag>
+ </use>
+</pkgmetadata>
diff --git a/www-apache/mod_auth_mellon/mod_auth_mellon-0.16.0.ebuild b/www-apache/mod_auth_mellon/mod_auth_mellon-0.16.0.ebuild
new file mode 100644
index 00000000..e0cb6344
--- /dev/null
+++ b/www-apache/mod_auth_mellon/mod_auth_mellon-0.16.0.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools apache-module
+
+MY_PV=${PV//./_}
+
+SRC_URI="https://github.com/latchset/mod_auth_mellon/archive/v${MY_PV}.tar.gz"
+KEYWORDS="~amd64"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+DESCRIPTION="An Apache module with a simple SAML 2.0 service provider"
+HOMEPAGE="https://github.com/latchset/mod_auth_mellon"
+
+LICENSE="GPL-2+"
+SLOT="0"
+IUSE="diagnostics"
+need_apache2_4
+
+CDEPEND="net-misc/curl dev-libs/openssl:0= "
+DEPEND+=" virtual/pkgconfig"
+
+DOCFILES="ECP.rst NEWS README.md"
+
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="AUTH_MELLON"
+
+
+pkg_setup() {
+ _init_apache2
+ _init_apache2_late
+}
+
+src_prepare() {
+ eapply_user
+
+ eautoreconf
+
+ econf $(use_enable diagnostics)
+}
+
+src_compile() {
+ # Use -j1 to ensure that the apxs step is run first
+ emake -j1
+}
+
+src_install() {
+ apache-module_src_install
+
+ newbin mellon_create_metadata.sh mellon_create_metadata
+}