summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'www-apache/mod_auth_nufw')
-rw-r--r--www-apache/mod_auth_nufw/ChangeLog34
-rw-r--r--www-apache/mod_auth_nufw/Manifest34
-rw-r--r--www-apache/mod_auth_nufw/files/50_mod_auth_nufw.conf18
-rw-r--r--www-apache/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.03
-rw-r--r--www-apache/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch21
-rw-r--r--www-apache/mod_auth_nufw/metadata.xml9
-rw-r--r--www-apache/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild73
7 files changed, 192 insertions, 0 deletions
diff --git a/www-apache/mod_auth_nufw/ChangeLog b/www-apache/mod_auth_nufw/ChangeLog
new file mode 100644
index 000000000000..a223564ac849
--- /dev/null
+++ b/www-apache/mod_auth_nufw/ChangeLog
@@ -0,0 +1,34 @@
+# ChangeLog for net-www/mod_auth_nufw
+# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_auth_nufw/ChangeLog,v 1.1 2007/07/29 16:07:35 phreak Exp $
+
+ 29 Jul 2007; Christian Heim <phreak@gentoo.org>
+ +files/50_mod_auth_nufw.conf,
+ +files/mod_auth_nufw-2.2.0-configure_in.patch, +metadata.xml,
+ +mod_auth_nufw-2.2.0.ebuild:
+ Moving net-www/mod_auth_nufw to www-apache/mod_auth_nufw (#81244). Fixing
+ metadata.xml.
+
+ 28 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ mod_auth_nufw-2.2.0.ebuild:
+ Fix apr dep.
+
+ 15 Jan 2007; Luca Longinotti <chtekk@gentoo.org>
+ mod_auth_nufw-2.2.0.ebuild:
+ WANT_* unneeded (defaults to latest), fix alphabetical ordering of deps.
+
+ 15 Jan 2007; Cedric Krier <cedk@gentoo.org> mod_auth_nufw-2.2.0.ebuild:
+ Fix arp slotting
+
+ 13 Jan 2007; Luca Longinotti <chtekk@gentoo.org> metadata.xml,
+ mod_auth_nufw-2.2.0.ebuild:
+ This is an Apache module, add apache as herd. Cleanup, don't need to add the
+ apache2 USE flag, eclass does that.
+
+*mod_auth_nufw-2.2.0 (31 Dec 2006)
+
+ 31 Dec 2006; Cedric Krier <cedk@gentoo.org> +files/50_mod_auth_nufw.conf,
+ +files/mod_auth_nufw-2.2.0-configure_in.patch, +metadata.xml,
+ +mod_auth_nufw-2.2.0.ebuild:
+ New ebuild for bug #138500
+
diff --git a/www-apache/mod_auth_nufw/Manifest b/www-apache/mod_auth_nufw/Manifest
new file mode 100644
index 000000000000..843ec6ba624d
--- /dev/null
+++ b/www-apache/mod_auth_nufw/Manifest
@@ -0,0 +1,34 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 50_mod_auth_nufw.conf 593 RMD160 e3bd71372572ece8431cf766532cdfac6931a673 SHA1 967e41ba64b9c6788241b5525d38b68b35f00823 SHA256 b785a3a180313d484d2076092e21eb3d1909d20c6838758fc02b08e4cc5502de
+MD5 40a36aa1ef23bb3707651ea3bf10853f files/50_mod_auth_nufw.conf 593
+RMD160 e3bd71372572ece8431cf766532cdfac6931a673 files/50_mod_auth_nufw.conf 593
+SHA256 b785a3a180313d484d2076092e21eb3d1909d20c6838758fc02b08e4cc5502de files/50_mod_auth_nufw.conf 593
+AUX mod_auth_nufw-2.2.0-configure_in.patch 1937 RMD160 caeb6b9c6ead11bf9ee53836799441779b43cd7f SHA1 d28bfc59f40126479d101a2be74625193c23fa6e SHA256 c02cea50dde1c26ceeef3dcbf66508d02d648493cd7f780711068a26e3577e2a
+MD5 fb078cf917fe304f04ed71b4042d91ae files/mod_auth_nufw-2.2.0-configure_in.patch 1937
+RMD160 caeb6b9c6ead11bf9ee53836799441779b43cd7f files/mod_auth_nufw-2.2.0-configure_in.patch 1937
+SHA256 c02cea50dde1c26ceeef3dcbf66508d02d648493cd7f780711068a26e3577e2a files/mod_auth_nufw-2.2.0-configure_in.patch 1937
+DIST mod_auth_nufw-2.2.0.tar.gz 42703 RMD160 75469adb58e24dd06837eea1256cf2069e76ac93 SHA1 46a37b29d5c2e1bce320505cd8221a582d3cc0d8 SHA256 e97379c4b032bb8109df048ca675646ff9c9df934c3089c882ba2f1fef49e173
+EBUILD mod_auth_nufw-2.2.0.ebuild 1738 RMD160 46a72a575f94338b80c2f3bee1bd0e8ed25d9565 SHA1 62bed6ae4ce0e777958e9c24235e9386f8270aa8 SHA256 eb50ac4461be8fdd67e9e3e47a5ad2dd6e3031eb1cc5e73908f7c89461d9f198
+MD5 b40941b5ae68d081b4a76005e9fa5eb8 mod_auth_nufw-2.2.0.ebuild 1738
+RMD160 46a72a575f94338b80c2f3bee1bd0e8ed25d9565 mod_auth_nufw-2.2.0.ebuild 1738
+SHA256 eb50ac4461be8fdd67e9e3e47a5ad2dd6e3031eb1cc5e73908f7c89461d9f198 mod_auth_nufw-2.2.0.ebuild 1738
+MISC ChangeLog 1286 RMD160 b7aa3e7852bdb41a747f44b03ba310e97795b553 SHA1 2122e4a9b69421b57d8017a6ca858825565d81fd SHA256 112113aa10fa3cc579373b2d27f33ba2bdbb9d01fea0a5ee03b50a7401926bae
+MD5 0270b789ec9d75351fc05bd4e60fd5ef ChangeLog 1286
+RMD160 b7aa3e7852bdb41a747f44b03ba310e97795b553 ChangeLog 1286
+SHA256 112113aa10fa3cc579373b2d27f33ba2bdbb9d01fea0a5ee03b50a7401926bae ChangeLog 1286
+MISC metadata.xml 298 RMD160 42658edeb89d62bf18bc9562280953153dcb182a SHA1 d9e6e505b41289470f4f5ff83db6768b0dbda994 SHA256 3f0c5e1607b53756bf87acea7196a98866f254aaec52a86001eb949d3d96bccc
+MD5 6139eed6578304a312c52508728fde77 metadata.xml 298
+RMD160 42658edeb89d62bf18bc9562280953153dcb182a metadata.xml 298
+SHA256 3f0c5e1607b53756bf87acea7196a98866f254aaec52a86001eb949d3d96bccc metadata.xml 298
+MD5 2bd7a0b4020a8dd098d0de86ec309ce1 files/digest-mod_auth_nufw-2.2.0 256
+RMD160 b5c1c516320c8dd74c0e591014b8b4c28c5d4177 files/digest-mod_auth_nufw-2.2.0 256
+SHA256 0575961c3411e6e8adfb250393a98eb6588757cf24b22a22b5b41c3e055bf872 files/digest-mod_auth_nufw-2.2.0 256
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.5 (GNU/Linux)
+
+iD8DBQFGrLtSyuNVb5qfaOYRAocAAKCouaaPF149/sDxZfOryc2wvAZG0ACdHIgV
+4ixJzvAdKdRrne0HYEFA2To=
+=xe3P
+-----END PGP SIGNATURE-----
diff --git a/www-apache/mod_auth_nufw/files/50_mod_auth_nufw.conf b/www-apache/mod_auth_nufw/files/50_mod_auth_nufw.conf
new file mode 100644
index 000000000000..3b0aa0dc3f06
--- /dev/null
+++ b/www-apache/mod_auth_nufw/files/50_mod_auth_nufw.conf
@@ -0,0 +1,18 @@
+<IfDefine AUTH_NUFW>
+ <IfModule !mod_auth_nufw.c>
+ LoadModule mod_auth_nufw extramodules/mod_auth_nufw.so
+ </IfModule>
+</IfDefine>
+
+<IfModule mod_auth_nufw.c>
+
+#
+#This module allows for a totally transparent, and strict, identification of users.
+#It uses Nufw as backend, performs SQL requests on the Nufw-fed SQL tables, and
+#optionnaly resolves numeric userids through a LDAP directory.
+#It also features LDAP basic caching features.
+#This module is probably of no use if not used with Nufw, as it lays
+#on a database constantly up-to-date with user network activity.
+#
+
+</IfModule>
diff --git a/www-apache/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.0 b/www-apache/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.0
new file mode 100644
index 000000000000..e71942da8bf6
--- /dev/null
+++ b/www-apache/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.0
@@ -0,0 +1,3 @@
+MD5 759cf9af2b5c847de7025c4e0184e5ff mod_auth_nufw-2.2.0.tar.gz 42703
+RMD160 75469adb58e24dd06837eea1256cf2069e76ac93 mod_auth_nufw-2.2.0.tar.gz 42703
+SHA256 e97379c4b032bb8109df048ca675646ff9c9df934c3089c882ba2f1fef49e173 mod_auth_nufw-2.2.0.tar.gz 42703
diff --git a/www-apache/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch b/www-apache/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch
new file mode 100644
index 000000000000..22232bce97d2
--- /dev/null
+++ b/www-apache/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch
@@ -0,0 +1,21 @@
+diff -ur mod_auth_nufw-2.2.0/configure.in mod_auth_nufw-2.2.0.new/configure.in
+--- mod_auth_nufw-2.2.0/configure.in 2006-05-12 09:22:02.000000000 +0200
++++ mod_auth_nufw-2.2.0.new/configure.in 2006-06-29 19:39:22.000000000 +0200
+@@ -3,12 +3,12 @@
+ AC_PROG_CC
+
+ AC_ARG_WITH(apxs, --with-apxs Path to Apache's apxs command, test $withval = no || APXS=$withval)
+-AC_ARG_WITH(apache20, [--with-apache20 Compile module for Apache 2.0], apache_20="yes",apache_20="")
+-AC_ARG_WITH(apache22, [--with-apache22 Compile module for Apache 2.2], apache_22="yes",apache_22="")
++AC_ARG_WITH(apache20, [--with-apache20 Compile module for Apache 2.0], apache_20=$withval,apache_20="")
++AC_ARG_WITH(apache22, [--with-apache22 Compile module for Apache 2.2], apache_22=$withval,apache_22="")
+
+-AC_ARG_WITH(mysql, [--with-mysql Use Mysql as backend (PostgreSQL is selected if not Mysql)],db_mysql="yes", db_mysql="")
+-AC_ARG_WITH(ldap-uids, [--with-ldap-uids Resolve numeric uids on a ldap tree],ldap_uid="yes", ldap_uid="")
+-AC_ARG_WITH(ldap-uids-cache, [--with-ldap-uids-cache Cache numeric resolution of uids on a ldap tree],ldap_uid_cache="yes", ldap_uid_cache="")
++AC_ARG_WITH(mysql, [--with-mysql Use Mysql as backend (PostgreSQL is selected if not Mysql)],db_mysql=$withval, db_mysql="")
++AC_ARG_WITH(ldap-uids, [--with-ldap-uids Resolve numeric uids on a ldap tree],ldap_uid=$withval, ldap_uid="")
++AC_ARG_WITH(ldap-uids-cache, [--with-ldap-uids-cache Cache numeric resolution of uids on a ldap tree],ldap_uid_cache=$withval, ldap_uid_cache="")
+ #, test $withval = yes && DB_TYPE_MYSQL=1)
+ #AC_ARG_WITH(sdk-directory, --with-sdk-headers Specify the path to the LDAP SDK header files)
+ #AC_ARG_WITH(sdk-directory, --with-sdk-libs Specify the path to the LDAP SDK libraries)
diff --git a/www-apache/mod_auth_nufw/metadata.xml b/www-apache/mod_auth_nufw/metadata.xml
new file mode 100644
index 000000000000..8590a64186dd
--- /dev/null
+++ b/www-apache/mod_auth_nufw/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+ <maintainer>
+ <email>cedk@gentoo.org</email>
+ </maintainer>
+ <longdescription>A NuFW authentication module for apache</longdescription>
+</pkgmetadata>
diff --git a/www-apache/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild b/www-apache/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild
new file mode 100644
index 000000000000..1ec1a80cc613
--- /dev/null
+++ b/www-apache/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild
@@ -0,0 +1,73 @@
+# 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_nufw/mod_auth_nufw-2.2.0.ebuild,v 1.1 2007/07/29 16:07:35 phreak Exp $
+
+inherit eutils apache-module autotools
+
+DESCRIPTION="A NuFW authentication module for Apache."
+HOMEPAGE="http://www.inl.fr/mod-auth-nufw.html"
+SRC_URI="http://software.inl.fr/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="ldap mysql postgres"
+
+DEPEND="=dev-libs/apr-0*
+ ldap? ( net-nds/openldap )
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )"
+RDEPEND="${DEPEND}"
+
+APACHE2_MOD_FILE="mod_auth_nufw.so"
+
+APACHE1_MOD_CONF="50_${PN}"
+APACHE1_MOD_DEFINE="AUTH_NUFW"
+
+APACHE2_MOD_CONF="50_${PN}"
+APACHE2_MOD_DEFINE="AUTH_NUFW"
+
+DOCFILES="doc/mod_auth_nufw.html"
+
+need_apache
+
+pkg_setup() {
+ local cnt=0
+ use mysql && cnt="$((${cnt} + 1))"
+ use postgres && cnt="$((${cnt} + 1))"
+ if [[ "${cnt}" -ne 1 ]] ; then
+ eerror "You have set ${P} to use multiple SQL engines."
+ eerror "I don't know which to use!"
+ eerror "You can use /etc/portage/package.use to set per-package USE flags."
+ eerror "Set it so only one SQL engine type, mysql or postgres, is enabled."
+ die "Please set only one SQL engine type!"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-configure_in.patch"
+ eautoreconf
+}
+
+src_compile() {
+ cd "${S}"
+
+ local apx
+ if [[ ${APACHE_VERSION} -eq '1' ]] ; then
+ apx=${APXS1}
+ else
+ apx=${APXS2}
+ fi
+
+ econf \
+ $(use_with apache2 apache20) \
+ $(use_with ldap ldap-uids) \
+ $(use_with mysql) \
+ --with-apxs=${apx} \
+ CPPFLAGS="-I$(apr-config --includedir) ${CPPFLAGS}" \
+ || die "econf failed"
+ emake || die "emake failed"
+}