https://github.com/phokz/mod-auth-external Use to authorize against unix groups: Require unix-group grp1 grp2
Created attachment 589162 [details] Ebuild for package
Created attachment 589164 [details] files/10_mod_authz_unixgroup.conf
Craig, since this pkg is from the same place as mod_authnz_external I figured you might want to maintain this pkg?
Comment on attachment 589162 [details] Ebuild for package ># Copyright 1999-2019 Gentoo Authors ># Distributed under the terms of the GNU General Public License v2 > >EAPI=6 >inherit apache-module > >if [[ ${PV} == *9999 ]] ; then > EGIT_REPO_URI="https://github.com/phokz/mod-auth-external.git" Github URIs do not require the ".git" suffix these days. > inherit git-r3 > S="${WORKDIR}/${P}/mod_authnz_external" >else > SRC_URI="https://github.com/phokz/mod-auth-external/archive/${P}.tar.gz" > KEYWORDS="amd64 x86" Straight to stable? > S="${WORKDIR}/mod-auth-external-${P}" >fi > >DESCRIPTION="An Apache2 authentication DSO using external programs" >HOMEPAGE="https://github.com/phokz/mod-auth-external" > >LICENSE="Apache-1.1" >SLOT="2" Why have this specific SLOT when you can start at "0"? >IUSE="" No need to set an empty IUSE >need_apache2_4 > >DOCFILES="CHANGES INSTALL README NOTICE" > >APACHE2_MOD_CONF="10_${PN}" >APACHE2_MOD_DEFINE="AUTHNZ_EXTERNAL" > >pkg_setup() { > _init_apache2 > _init_apache2_late Those are marked "INTERNAL" in depend.apache.eclass. According to that eclass they should not be used directly. >}
(In reply to Jeroen Roovers from comment #4) > Comment on attachment 589162 [details] > Ebuild for package > > ># Copyright 1999-2019 Gentoo Authors > ># Distributed under the terms of the GNU General Public License v2 > > > >EAPI=6 > >inherit apache-module > > > >if [[ ${PV} == *9999 ]] ; then > > EGIT_REPO_URI="https://github.com/phokz/mod-auth-external.git" > > Github URIs do not require the ".git" suffix these days. > > > inherit git-r3 > > S="${WORKDIR}/${P}/mod_authnz_external" > >else > > SRC_URI="https://github.com/phokz/mod-auth-external/archive/${P}.tar.gz" > > KEYWORDS="amd64 x86" > > Straight to stable? > > > S="${WORKDIR}/mod-auth-external-${P}" > >fi > > > >DESCRIPTION="An Apache2 authentication DSO using external programs" > >HOMEPAGE="https://github.com/phokz/mod-auth-external" > > > >LICENSE="Apache-1.1" > >SLOT="2" > > Why have this specific SLOT when you can start at "0"? > > >IUSE="" > > No need to set an empty IUSE > > >need_apache2_4 > > > >DOCFILES="CHANGES INSTALL README NOTICE" > > > >APACHE2_MOD_CONF="10_${PN}" > >APACHE2_MOD_DEFINE="AUTHNZ_EXTERNAL" > > > >pkg_setup() { > > _init_apache2 > > _init_apache2_late > > Those are marked "INTERNAL" in depend.apache.eclass. According to that > eclass they should not be used directly. > > >} I modelled this ebuild after mod_authnz_external as this pkg comes from the same source. All your points above comes from that ebuild, I hope Craig can respond to them?
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c96c2de5113e1c6d4741c4c1f9df4256e7210bc2 commit c96c2de5113e1c6d4741c4c1f9df4256e7210bc2 Author: Craig Andrews <candrews@gentoo.org> AuthorDate: 2019-09-06 14:42:31 +0000 Commit: Craig Andrews <candrews@gentoo.org> CommitDate: 2019-09-06 14:43:06 +0000 www-apache/mod_authz_unixgroup: An Apache2 authorization DSO using unix groups Closes: https://bugs.gentoo.org/693592 Package-Manager: Portage-2.3.75, Repoman-2.3.17 Signed-off-by: Craig Andrews <candrews@gentoo.org> www-apache/mod_authz_unixgroup/Manifest | 1 + .../files/10_mod_authz_unixgroup.conf | 11 ++++++++ www-apache/mod_authz_unixgroup/metadata.xml | 11 ++++++++ .../mod_authz_unixgroup-1.1.0.ebuild | 32 ++++++++++++++++++++++ .../mod_authz_unixgroup-9999.ebuild | 32 ++++++++++++++++++++++ 5 files changed, 87 insertions(+)