summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apache')
-rw-r--r--www-apache/mod_auth_pam/ChangeLog112
-rw-r--r--www-apache/mod_auth_pam/Manifest45
-rw-r--r--www-apache/mod_auth_pam/files/10_mod_auth_pam.conf37
-rw-r--r--www-apache/mod_auth_pam/files/apache2.pam6
-rw-r--r--www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r13
-rw-r--r--www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r23
-rw-r--r--www-apache/mod_auth_pam/files/mod_auth_pam-1.1.1-service_name.patch66
-rw-r--r--www-apache/mod_auth_pam/metadata.xml8
-rw-r--r--www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r1.ebuild65
-rw-r--r--www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r2.ebuild65
10 files changed, 410 insertions, 0 deletions
diff --git a/www-apache/mod_auth_pam/ChangeLog b/www-apache/mod_auth_pam/ChangeLog
new file mode 100644
index 000000000000..bd883d91702d
--- /dev/null
+++ b/www-apache/mod_auth_pam/ChangeLog
@@ -0,0 +1,112 @@
+# ChangeLog for net-www/mod_auth_pam
+# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_pam/ChangeLog,v 1.1 2007/07/29 16:15:21 phreak Exp $
+
+*mod_auth_pam-1.1.1-r1 (29 Jul 2007)
+
+ 29 Jul 2007; Christian Heim <phreak@gentoo.org> +files/apache2.pam,
+ +files/mod_auth_pam-1.1.1-service_name.patch, +files/10_mod_auth_pam.conf,
+ +metadata.xml, +mod_auth_pam-1.1.1-r1.ebuild,
+ +mod_auth_pam-1.1.1-r2.ebuild:
+ Moving net-www/mod_auth_pam to www-apache/mod_auth_pam (#81244).
+
+ 29 Jun 2007; Luca Longinotti <chtekk@gentoo.org> files/apache2.pam,
+ metadata.xml:
+ Fix DOS line endings.
+
+ 14 Jun 2007; Christian Heim <phreak@gentoo.org>
+ files/10_mod_auth_pam.conf:
+ Document "AuthBasicAuthoritative Off" in the configuration examples.
+
+ 14 Jun 2007; Christian Heim <phreak@gentoo.org> files/apache2.pam:
+ Fixing apache2.pam as pointed out in #155050 (thanks to candrews at
+ integralblue.com).
+
+ 12 May 2007; Luca Longinotti <chtekk@gentoo.org>
+ -files/10_mod_auth_pam_ap1.conf,
+ -files/mod_auth_pam-1.1.1-compile-fix.patch, mod_auth_pam-1.1.1-r1.ebuild,
+ mod_auth_pam-1.1.1-r2.ebuild:
+ Remove Apache1 support, fix Apache2 support.
+
+ 20 Jan 2007; Christian Heim <phreak@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild, mod_auth_pam-1.1.1-r2.ebuild:
+ Remove unneeded RESTRICT="nomirror".
+
+*mod_auth_pam-1.1.1-r2 (15 Jan 2007)
+
+ 15 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ files/mod_auth_pam-1.1.1-compile-fix.patch,
+ +files/mod_auth_pam-1.1.1-service_name.patch,
+ mod_auth_pam-1.1.1-r1.ebuild, +mod_auth_pam-1.1.1-r2.ebuild:
+ Misc fixes, add service name specification support for Apache2, fixes bug
+ #133134.
+
+ 14 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ Uniform install usage.
+
+ 14 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ -files/1.1.1-r1/10_mod_auth_pam.conf, files/10_mod_auth_pam.conf,
+ -files/1.1.1-r1-1/10_mod_auth_pam.conf, +files/10_mod_auth_pam_ap1.conf,
+ -files/mod_auth_pam-1.1.1-gentoo.diff, mod_auth_pam-1.1.1-r1.ebuild:
+ Cleanup.
+
+ 04 Jun 2006; Michael Stewart <vericgar@gentoo.org>
+ -mod_auth_pam-1.1.1.ebuild:
+ Remove old-style ebuilds
+
+ 21 Mar 2006; Joseph Jezak <josejx@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ Marked ppc stable for bug #125167. Thanks to mabi for testing.
+
+ 16 Mar 2006; Krzysiek Pawlik <nelchael@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ Stable on x86, see bug #125167.
+
+ 08 Oct 2005; Bryan Østergaard <kloeri@gentoo.org> files/apache2.pam:
+ Remove pam_console reference, bug 98454.
+
+ 05 May 2005; Sven Wegener <swegener@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ Added missing parentheses to SRC_URI.
+
+ 25 Feb 2005; Benedikt Boehm <hollow@gentoo.org>
+ +files/1.1.1-r1-1/10_mod_auth_pam.conf, mod_auth_pam-1.1.1-r1.ebuild:
+ fixed 1.3 support
+
+ 25 Feb 2005; Benedikt Boehm <hollow@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ fixed minor bugs
+
+ 17 Feb 2005; Benedikt Boehm <hollow@gentoo.org>
+ +files/mod_auth_pam-1.1.1-compile-fix.patch,
+ -files/mod_auth_pam-1.1.1-r1-gentoo.diff, mod_auth_pam-1.1.1-r1.ebuild,
+ mod_auth_pam-1.1.1.ebuild:
+ fixed bug #81044. cleaned up and fixed 1.1.1-r1
+
+ 23 Jan 2005; Christian Parpart <trapni@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ code cleanup; added missing need_apache2
+
+ 23 Jan 2005; Christian Parpart <trapni@gentoo.org>
+ mod_auth_pam-1.1.1-r1.ebuild:
+ -m adding ~amd64 to keywords
+
+ 13 Oct 2004; Christian Parpart <trapni@gentoo.org> :
+ fixed bug, that prevented the modules to be installed;
+ minor typo fix that caused apache2.pam not beeing installed
+
+ 04 Sep 2004; Pieter Van den Abeele <pvdabeel@gentoo.org>
+ mod_auth_pam-1.1.1.ebuild:
+ Masked mod_auth_pam-1.1.1.ebuild stable for ppc
+
+ 23 Jun 2004; Chuck Short <zul@gentoo.org> files/apache2.pam,
+ files/mod_auth_pam-1.1.1-gentoo.diff:
+ Added missing files.
+
+*mod_auth_pam-1.1.1 (14 Jun 2004)
+
+ 14 Jun 2004; Chuck Short <zul@gentoo.org> mod_auth_pam-1.1.1.ebuild,
+ files/10_mod_auth_pam.conf:
+ Initial ebuild, closes #28114.
+
diff --git a/www-apache/mod_auth_pam/Manifest b/www-apache/mod_auth_pam/Manifest
new file mode 100644
index 000000000000..28f7390ffba9
--- /dev/null
+++ b/www-apache/mod_auth_pam/Manifest
@@ -0,0 +1,45 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 10_mod_auth_pam.conf 1025 RMD160 b9e57e20819fc4ae5a68a73e8c749118c79d80d9 SHA1 22eafe53e55ea35d41c196291a88d999ff1200a7 SHA256 899a2927f8fcff638705ea60a0a0e4764a2f70482b1da00454a9f626c00bf0d2
+MD5 b2061e68ba24c4e621b32d711b2c5823 files/10_mod_auth_pam.conf 1025
+RMD160 b9e57e20819fc4ae5a68a73e8c749118c79d80d9 files/10_mod_auth_pam.conf 1025
+SHA256 899a2927f8fcff638705ea60a0a0e4764a2f70482b1da00454a9f626c00bf0d2 files/10_mod_auth_pam.conf 1025
+AUX apache2.pam 193 RMD160 a7fef247ec9ea0f201d87140b107c42a9ed0979e SHA1 0a832eb9e850bad4a172b18a8f368183aa253820 SHA256 f849e877a0a7bd23e2d0ce747d674a5a5ace7da603c90a36a468a83fb123aee1
+MD5 423d18894914e70111b6036d0cfd5fc9 files/apache2.pam 193
+RMD160 a7fef247ec9ea0f201d87140b107c42a9ed0979e files/apache2.pam 193
+SHA256 f849e877a0a7bd23e2d0ce747d674a5a5ace7da603c90a36a468a83fb123aee1 files/apache2.pam 193
+AUX mod_auth_pam-1.1.1-service_name.patch 1644 RMD160 3a85398814be77c2f111b5a6ad447ac5f9442fd2 SHA1 e7bbd920d2da8fda63288488f7a0d367cdd1e05b SHA256 a3b5ebfa4533815dc6c9eb86d28eb8e6a4cd4959cd6d77d90774dc0c63efc023
+MD5 231d4fb9a632f6b129bf065fcf03c4b2 files/mod_auth_pam-1.1.1-service_name.patch 1644
+RMD160 3a85398814be77c2f111b5a6ad447ac5f9442fd2 files/mod_auth_pam-1.1.1-service_name.patch 1644
+SHA256 a3b5ebfa4533815dc6c9eb86d28eb8e6a4cd4959cd6d77d90774dc0c63efc023 files/mod_auth_pam-1.1.1-service_name.patch 1644
+DIST mod_auth_pam-2.0-1.1.1.tar.gz 11456 RMD160 4dbc4daae2e696b44767577d63ccf24aec397f2c SHA1 9c7f5c552490d5d26e64401987291046714b870e SHA256 21c55e3a3539e05782654d4dc6f12345b0a4eac29425c20c41f540260866977b
+EBUILD mod_auth_pam-1.1.1-r1.ebuild 1568 RMD160 1dbb358f8d3f67b289a8efcc3b8c2055c94aadcd SHA1 89cf63f193989a6a3359970b6e1ae4f73f416d50 SHA256 06308fd0fe6e50497c13de62f911a4cfe9c4c78fdb9844ec98348bbda6c9fc52
+MD5 3cc61af136111f0873baafb6f3402b95 mod_auth_pam-1.1.1-r1.ebuild 1568
+RMD160 1dbb358f8d3f67b289a8efcc3b8c2055c94aadcd mod_auth_pam-1.1.1-r1.ebuild 1568
+SHA256 06308fd0fe6e50497c13de62f911a4cfe9c4c78fdb9844ec98348bbda6c9fc52 mod_auth_pam-1.1.1-r1.ebuild 1568
+EBUILD mod_auth_pam-1.1.1-r2.ebuild 1544 RMD160 6f428a6bb5bd4e0614088d7217c8ce54a68c907f SHA1 17f2866b9bd4537286f7307a5b31656223c6a49e SHA256 5953f7d08790ca88cd44e394ee036200afedc6c604fd040452af6682eec9f927
+MD5 1b3ee6be5905bfc9e23a9fd771905d41 mod_auth_pam-1.1.1-r2.ebuild 1544
+RMD160 6f428a6bb5bd4e0614088d7217c8ce54a68c907f mod_auth_pam-1.1.1-r2.ebuild 1544
+SHA256 5953f7d08790ca88cd44e394ee036200afedc6c604fd040452af6682eec9f927 mod_auth_pam-1.1.1-r2.ebuild 1544
+MISC ChangeLog 4060 RMD160 a6d6656a76158c799520b1385c83af4f42ef6d3f SHA1 71f456796bde448b907e097dba7041bb99b01421 SHA256 476e9d8942468d2a07733df1bc34aace6ac0f00e26b9f59b23c5f7f9bd984167
+MD5 a20829b6f60a107aa45437324eef76c0 ChangeLog 4060
+RMD160 a6d6656a76158c799520b1385c83af4f42ef6d3f ChangeLog 4060
+SHA256 476e9d8942468d2a07733df1bc34aace6ac0f00e26b9f59b23c5f7f9bd984167 ChangeLog 4060
+MISC metadata.xml 229 RMD160 bb816bd761846ad578f8c1521a1f1ec6297410f4 SHA1 92fdbcb6a85ece96506733ad67a5e4e74a58a529 SHA256 8e1aafc5385805d45759406a60df79f0ce88aa1df1a58d44b596405d64c9226d
+MD5 17bfbf436c6d4afc4dea019597d048d1 metadata.xml 229
+RMD160 bb816bd761846ad578f8c1521a1f1ec6297410f4 metadata.xml 229
+SHA256 8e1aafc5385805d45759406a60df79f0ce88aa1df1a58d44b596405d64c9226d metadata.xml 229
+MD5 49900d6fb41df415b014223fd0810f57 files/digest-mod_auth_pam-1.1.1-r1 265
+RMD160 c8e2a0326e86b920e5a1eb120dd923ca3a618cc5 files/digest-mod_auth_pam-1.1.1-r1 265
+SHA256 bba5e29ae8b31f6dfcc058ff10ef6e528d57056ef718748920ac96288f17ec0d files/digest-mod_auth_pam-1.1.1-r1 265
+MD5 49900d6fb41df415b014223fd0810f57 files/digest-mod_auth_pam-1.1.1-r2 265
+RMD160 c8e2a0326e86b920e5a1eb120dd923ca3a618cc5 files/digest-mod_auth_pam-1.1.1-r2 265
+SHA256 bba5e29ae8b31f6dfcc058ff10ef6e528d57056ef718748920ac96288f17ec0d files/digest-mod_auth_pam-1.1.1-r2 265
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.5 (GNU/Linux)
+
+iD8DBQFGrL0lyuNVb5qfaOYRAvmnAKDG0x09LdTlwb6fGHa2G54+4kGvhACgroau
+t22Lb99yw8kKAEI+sfFntx4=
+=vNNj
+-----END PGP SIGNATURE-----
diff --git a/www-apache/mod_auth_pam/files/10_mod_auth_pam.conf b/www-apache/mod_auth_pam/files/10_mod_auth_pam.conf
new file mode 100644
index 000000000000..afcc4ef8974c
--- /dev/null
+++ b/www-apache/mod_auth_pam/files/10_mod_auth_pam.conf
@@ -0,0 +1,37 @@
+<IfDefine AUTH_PAM>
+ <IfModule !mod_auth_pam.c>
+ LoadModule auth_pam_module modules/mod_auth_pam.so
+ </IfModule>
+ <IfModule !mod_auth_sys_group.c>
+ LoadModule auth_sys_group_module modules/mod_auth_sys_group.so
+ </IfModule>
+</IfDefine>
+
+### EXAMPLE 1: authentificate against a single PAM account
+###
+# <IfModule mod_auth_pam.c>
+# AuthPAM_Enabled on
+#
+# # If you want to make mod_auth_pam work with apache-2.2, please uncomment
+# # the following line:
+# AuthBasicAuthoritative Off
+# AuthType Basic
+# AuthName "secure area"
+# Require user webmaster
+# </IfModule>
+
+### EXAMPLE 2: authentificate against a a PAM group, so, that each user
+### beeing in this group may access this "secure area"
+###
+# <IfModule mod_auth_sys_group.c>
+# AuthPAM_Enabled on
+#
+# # If you want to make mod_auth_pam work with apache-2.2, please uncomment
+# # the following line:
+# AuthBasicAuthoritative Off
+# AuthType Basic
+# AuthName "secure area"
+# Require group staff
+# </IfModule>
+
+# vim:syntax=apache
diff --git a/www-apache/mod_auth_pam/files/apache2.pam b/www-apache/mod_auth_pam/files/apache2.pam
new file mode 100644
index 000000000000..a17959a3929f
--- /dev/null
+++ b/www-apache/mod_auth_pam/files/apache2.pam
@@ -0,0 +1,6 @@
+#%PAM-1.0
+auth include system-auth
+auth required pam_nologin.so
+account include system-auth
+password include system-auth
+session include system-auth
diff --git a/www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r1 b/www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r1
new file mode 100644
index 000000000000..c6afce1046ca
--- /dev/null
+++ b/www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r1
@@ -0,0 +1,3 @@
+MD5 ab873520ddd2fee7d480dfd53e464e0a mod_auth_pam-2.0-1.1.1.tar.gz 11456
+RMD160 4dbc4daae2e696b44767577d63ccf24aec397f2c mod_auth_pam-2.0-1.1.1.tar.gz 11456
+SHA256 21c55e3a3539e05782654d4dc6f12345b0a4eac29425c20c41f540260866977b mod_auth_pam-2.0-1.1.1.tar.gz 11456
diff --git a/www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r2 b/www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r2
new file mode 100644
index 000000000000..c6afce1046ca
--- /dev/null
+++ b/www-apache/mod_auth_pam/files/digest-mod_auth_pam-1.1.1-r2
@@ -0,0 +1,3 @@
+MD5 ab873520ddd2fee7d480dfd53e464e0a mod_auth_pam-2.0-1.1.1.tar.gz 11456
+RMD160 4dbc4daae2e696b44767577d63ccf24aec397f2c mod_auth_pam-2.0-1.1.1.tar.gz 11456
+SHA256 21c55e3a3539e05782654d4dc6f12345b0a4eac29425c20c41f540260866977b mod_auth_pam-2.0-1.1.1.tar.gz 11456
diff --git a/www-apache/mod_auth_pam/files/mod_auth_pam-1.1.1-service_name.patch b/www-apache/mod_auth_pam/files/mod_auth_pam-1.1.1-service_name.patch
new file mode 100644
index 000000000000..82529db2c0ff
--- /dev/null
+++ b/www-apache/mod_auth_pam/files/mod_auth_pam-1.1.1-service_name.patch
@@ -0,0 +1,66 @@
+--- mod_auth_pam.c 2002-08-24 16:22:23.000000000 +0200
++++ mod_auth_pam.c 2004-10-27 16:48:50.000000000 +0200
+@@ -126,6 +126,9 @@
+ * fall through but return "access denied" instead
+ * Defaults to off
+ *
++ * AuthPAM_Service <service> The PAM-service to be used for authentication.
++ * Defaults to "apache2"
++ *
+ * AuthPAM_Authorative on|off DEPRECATED
+ */
+
+@@ -146,12 +149,12 @@
+
+ /* change this to 0 on RedHat 4.x */
+ #define PAM_STRE_NEEDS_PAMH 1
+-#define VERSION "2.0-1.1"
++#define VERSION "2.0-1.1e"
+
+ module auth_pam_module;
+
+ static const char
+- *pam_servicename = "httpd",
++ *pam_servicename = "apache2",
+ *valid_user = "valid-user";
+
+ typedef struct {
+@@ -190,6 +193,7 @@
+ * username (defaults to 0) */
+ enabled; /* 1 to use mod_auth_pam, 0 otherwise
+ * (defaults to 1) */
++ const char* pam_servicename;
+ } auth_pam_dir_config;
+
+ static
+@@ -214,6 +218,7 @@
+ new->fail_delay = 0; /* 0 ms */
+ new->fall_through = 0; /* off */
+ new->enabled = 1; /* on */
++ new->pam_servicename = pam_servicename;
+ return new;
+ }
+
+@@ -237,6 +242,11 @@
+ "on|off - determines if PAM authentication is enabled. "
+ "(default is on.)"),
+
++ AP_INIT_TAKE1("AuthPAM_Service",
++ ap_set_string_slot, (void *) APR_OFFSETOF(auth_pam_dir_config, pam_servicename),
++ OR_AUTHCFG,
++ "PAM-service to be used for authentication"),
++
+ {NULL}
+ };
+
+@@ -341,7 +351,7 @@
+ userinfo.name = r->user;
+
+ /* initialize pam */
+- if ((res = pam_start(pam_servicename,
++ if ((res = pam_start(conf->pam_servicename,
+ userinfo.name,
+ &conv_info,
+ &pamh)) != PAM_SUCCESS) {
+
+
diff --git a/www-apache/mod_auth_pam/metadata.xml b/www-apache/mod_auth_pam/metadata.xml
new file mode 100644
index 000000000000..a1f5ceff2352
--- /dev/null
+++ b/www-apache/mod_auth_pam/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+ <maintainer>
+ <email>apache-bugs@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r1.ebuild b/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r1.ebuild
new file mode 100644
index 000000000000..a6145fbfee78
--- /dev/null
+++ b/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r1.ebuild,v 1.1 2007/07/29 16:15:21 phreak Exp $
+
+inherit eutils apache-module
+
+DESCRIPTION="PAM authentication module for Apache."
+HOMEPAGE="http://pam.sourceforge.net/mod_auth_pam/"
+SRC_URI="http://pam.sourceforge.net/mod_auth_pam/dist/${PN}-2.0-${PV}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ppc ~sparc x86"
+IUSE=""
+
+DEPEND="sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+APXS2_ARGS="-c ${PN}.c -lpam"
+APACHE2_EXECFILES=".libs/mod_auth_sys_group.so"
+
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="AUTH_PAM"
+
+DOCFILES="INSTALL README doc/*"
+
+need_apache
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ sed -i -e 's/servicename = "httpd"/servicename = "apache2"/' "${PN}.c"
+}
+
+src_compile() {
+ apache-module_src_compile
+ ${APXS2} -c mod_auth_sys_group.c
+}
+
+src_install() {
+ apache-module_src_install
+ insinto /etc/pam.d
+ newins "${FILESDIR}/apache2.pam" apache2
+}
+
+pkg_postinst() {
+ apache-module_pkg_postinst
+
+ local gid=`grep ^shadow: /etc/group | cut -d: -f3`
+ einfo
+ einfo "If the system is configured with the shadow authentication method"
+ einfo "the following commands must be executed by root to make /etc/shadow"
+ einfo "accessible by the Apache webserver:"
+ einfo
+ if [[ -z "${gid}" ]] ; then
+ einfo " # groupadd shadow"
+ einfo " # gpasswd -a apache shadow"
+ fi
+ einfo " # chgrp shadow /etc/shadow"
+ einfo " # chmod 640 /etc/shadow"
+ einfo
+}
diff --git a/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r2.ebuild b/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r2.ebuild
new file mode 100644
index 000000000000..fd90201ff756
--- /dev/null
+++ b/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r2.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_pam/mod_auth_pam-1.1.1-r2.ebuild,v 1.1 2007/07/29 16:15:21 phreak Exp $
+
+inherit eutils apache-module
+
+DESCRIPTION="PAM authentication module for Apache."
+HOMEPAGE="http://pam.sourceforge.net/mod_auth_pam/"
+SRC_URI="http://pam.sourceforge.net/mod_auth_pam/dist/${PN}-2.0-${PV}.tar.gz"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE=""
+
+DEPEND="sys-libs/pam"
+RDEPEND="${DEPEND}"
+
+APXS2_ARGS="-c ${PN}.c -lpam"
+APACHE2_EXECFILES=".libs/mod_auth_sys_group.so"
+
+APACHE2_MOD_CONF="10_${PN}"
+APACHE2_MOD_DEFINE="AUTH_PAM"
+
+DOCFILES="INSTALL README doc/*"
+
+need_apache
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-service_name.patch"
+}
+
+src_compile() {
+ apache-module_src_compile
+ ${APXS2} -c mod_auth_sys_group.c
+}
+
+src_install() {
+ apache-module_src_install
+ insinto /etc/pam.d
+ newins "${FILESDIR}/apache2.pam" apache2
+}
+
+pkg_postinst() {
+ apache-module_pkg_postinst
+
+ local gid=`grep ^shadow: /etc/group | cut -d: -f3`
+ einfo
+ einfo "If the system is configured with the shadow authentication method"
+ einfo "the following commands must be executed by root to make /etc/shadow"
+ einfo "accessible by the Apache webserver:"
+ einfo
+ if [[ -z "${gid}" ]] ; then
+ einfo " # groupadd shadow"
+ einfo " # gpasswd -a apache shadow"
+ fi
+ einfo " # chgrp shadow /etc/shadow"
+ einfo " # chmod 640 /etc/shadow"
+ einfo
+}