summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Krier <cedk@gentoo.org>2006-12-31 16:15:43 +0000
committerCédric Krier <cedk@gentoo.org>2006-12-31 16:15:43 +0000
commit07559ead8ade01a934419233d81dba6dc49b625b (patch)
tree53b5d2831590c0e0e7b3db4b200a864863fa1a3b /net-www
parentStable on Alpha, bug 157643. (diff)
downloadgentoo-2-07559ead8ade01a934419233d81dba6dc49b625b.tar.gz
gentoo-2-07559ead8ade01a934419233d81dba6dc49b625b.tar.bz2
gentoo-2-07559ead8ade01a934419233d81dba6dc49b625b.zip
New ebuild
(Portage version: 2.1.1-r2)
Diffstat (limited to 'net-www')
-rw-r--r--net-www/mod_auth_nufw/ChangeLog11
-rw-r--r--net-www/mod_auth_nufw/Manifest24
-rw-r--r--net-www/mod_auth_nufw/files/50_mod_auth_nufw.conf18
-rw-r--r--net-www/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.03
-rw-r--r--net-www/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch21
-rw-r--r--net-www/mod_auth_nufw/metadata.xml9
-rw-r--r--net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild77
7 files changed, 163 insertions, 0 deletions
diff --git a/net-www/mod_auth_nufw/ChangeLog b/net-www/mod_auth_nufw/ChangeLog
new file mode 100644
index 000000000000..bee7d95bc2db
--- /dev/null
+++ b/net-www/mod_auth_nufw/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-www/mod_auth_nufw
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_auth_nufw/ChangeLog,v 1.1 2006/12/31 16:15:43 cedk Exp $
+
+*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/net-www/mod_auth_nufw/Manifest b/net-www/mod_auth_nufw/Manifest
new file mode 100644
index 000000000000..0d63cfe77e8d
--- /dev/null
+++ b/net-www/mod_auth_nufw/Manifest
@@ -0,0 +1,24 @@
+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 1687 RMD160 920206aafc4ed04087eb03cff3974477a2178a4c SHA1 a1f9ca213b60fd31ebcf83de28885fd3fbee8347 SHA256 15e9c414066c7faa0ad76c810a85f6326e99966a4116910899f8f2ac590b1d38
+MD5 ba04c8c449292b5a277dfcdcea1e1674 mod_auth_nufw-2.2.0.ebuild 1687
+RMD160 920206aafc4ed04087eb03cff3974477a2178a4c mod_auth_nufw-2.2.0.ebuild 1687
+SHA256 15e9c414066c7faa0ad76c810a85f6326e99966a4116910899f8f2ac590b1d38 mod_auth_nufw-2.2.0.ebuild 1687
+MISC ChangeLog 359 RMD160 6a99a4db648c293b96fc63579f10d719baeb4767 SHA1 0bec1b7dd2a9414b107c510f64638ca6f0382ab9 SHA256 628cef1260525b2e070355366e928fde4985c7f93957ebed3809258c31c5e4ca
+MD5 0ae2dc0c0d6760a8388917c4ee98606f ChangeLog 359
+RMD160 6a99a4db648c293b96fc63579f10d719baeb4767 ChangeLog 359
+SHA256 628cef1260525b2e070355366e928fde4985c7f93957ebed3809258c31c5e4ca ChangeLog 359
+MISC metadata.xml 295 RMD160 6dcdfb258553897f412d8032e74d92fa07189c14 SHA1 e72b7ae09ede2dad6048cb786517553aff82eb2d SHA256 6f1daee6e129b85cae02879e1309037a398a81ba5bf62e6e51b73d1318714d14
+MD5 bb55854edd27897b79ffe8fc85cfb5e4 metadata.xml 295
+RMD160 6dcdfb258553897f412d8032e74d92fa07189c14 metadata.xml 295
+SHA256 6f1daee6e129b85cae02879e1309037a398a81ba5bf62e6e51b73d1318714d14 metadata.xml 295
+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
diff --git a/net-www/mod_auth_nufw/files/50_mod_auth_nufw.conf b/net-www/mod_auth_nufw/files/50_mod_auth_nufw.conf
new file mode 100644
index 000000000000..3b0aa0dc3f06
--- /dev/null
+++ b/net-www/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/net-www/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.0 b/net-www/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.0
new file mode 100644
index 000000000000..e71942da8bf6
--- /dev/null
+++ b/net-www/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/net-www/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch b/net-www/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch
new file mode 100644
index 000000000000..22232bce97d2
--- /dev/null
+++ b/net-www/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/net-www/mod_auth_nufw/metadata.xml b/net-www/mod_auth_nufw/metadata.xml
new file mode 100644
index 000000000000..0148d2b54e90
--- /dev/null
+++ b/net-www/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>no-herd</herd>
+<maintainer>
+ <email>cedk@gentoo.org</email>
+</maintainer>
+<longdescription>A NuFW authentication module for apache</longdescription>
+</pkgmetadata>
diff --git a/net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild b/net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild
new file mode 100644
index 000000000000..af961bb4fb88
--- /dev/null
+++ b/net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild,v 1.1 2006/12/31 16:15:43 cedk Exp $
+
+WANT_AUTOCONF="latest"
+WANT_AUTOMAKE="latest"
+inherit eutils apache-module autotools
+
+DESCRIPTION="mod_auth_nufw 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="apache2 mysql postgres ldap"
+
+DEPEND="dev-libs/apr
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql )
+ ldap? ( net-nds/openldap )"
+RDEPEND=""
+
+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 engine."
+ 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, postgres"
+ die "Please set only one sql engine type"
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${P}-configure_in.patch"
+}
+
+src_compile() {
+ cd "${S}"
+
+ local apx
+ if [ ${APACHE_VERSION} -eq '1' ]; then
+ apx=${APXS1}
+ else
+ apx=${APXS2}
+ fi
+
+ APR_INCLUDE="-I`apr-config --includedir`"
+
+ eautoreconf
+ econf \
+ $(use_with apache2 apache20) \
+ $(use_with mysql) \
+ $(use_with ldap ldap-uids) \
+ --with-apxs=${apx} \
+ CPPFLAGS="${APR_INCLUDE} ${CPPFLAGS}" \
+ || die "econf failed"
+ emake || die "emake failed"
+}