diff options
author | Cédric Krier <cedk@gentoo.org> | 2006-06-29 17:51:35 +0000 |
---|---|---|
committer | Cédric Krier <cedk@gentoo.org> | 2006-06-29 17:51:35 +0000 |
commit | 5e3e68e50cf02ffc6d98b97411c11eb149aabeab (patch) | |
tree | c57a57bbd030f6ea30859bea1fab002b9e92faea /net-www | |
parent | net-firewall/nufw - fix debug (diff) | |
download | sunrise-5e3e68e50cf02ffc6d98b97411c11eb149aabeab.tar.gz sunrise-5e3e68e50cf02ffc6d98b97411c11eb149aabeab.tar.bz2 sunrise-5e3e68e50cf02ffc6d98b97411c11eb149aabeab.zip |
net-www/mod_auth_nufw - bug 138378
svn path=/sunrise/; revision=376
Diffstat (limited to 'net-www')
-rw-r--r-- | net-www/mod_auth_nufw/Manifest | 16 | ||||
-rw-r--r-- | net-www/mod_auth_nufw/files/50_mod_auth_nufw.conf | 18 | ||||
-rw-r--r-- | net-www/mod_auth_nufw/files/digest-mod_auth_nufw-2.2.0 | 3 | ||||
-rw-r--r-- | net-www/mod_auth_nufw/files/mod_auth_nufw-2.2.0-configure_in.patch | 21 | ||||
-rw-r--r-- | net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild | 75 |
5 files changed, 133 insertions, 0 deletions
diff --git a/net-www/mod_auth_nufw/Manifest b/net-www/mod_auth_nufw/Manifest new file mode 100644 index 000000000..930aa0297 --- /dev/null +++ b/net-www/mod_auth_nufw/Manifest @@ -0,0 +1,16 @@ +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 1629 RMD160 3b92208446f624fc74c125c4eef22a1dbea379b0 SHA1 0ed990284601c2cf101e6fc9ab8e915f053457f8 SHA256 c08be757166b1d68ab3d3cf07452ff3ecc63ce517fe3a2c01136c1c23189243e +MD5 c2d2307a214236cd719e1d4bff2a00fc mod_auth_nufw-2.2.0.ebuild 1629 +RMD160 3b92208446f624fc74c125c4eef22a1dbea379b0 mod_auth_nufw-2.2.0.ebuild 1629 +SHA256 c08be757166b1d68ab3d3cf07452ff3ecc63ce517fe3a2c01136c1c23189243e mod_auth_nufw-2.2.0.ebuild 1629 +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 000000000..3b0aa0dc3 --- /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 000000000..e71942da8 --- /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 000000000..22232bce9 --- /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/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 000000000..5b92d5df4 --- /dev/null +++ b/net-www/mod_auth_nufw/mod_auth_nufw-2.2.0.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +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://www.inl.fr/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="apache2 mysql postgres ldap" + +DEPEND="dev-libs/apr + mysql? ( dev-db/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" +} |