From: Cédric Krier Date: Sun, 31 Dec 2006 16:15:43 +0000 (+0000) Subject: New ebuild X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d9a48948ef70b98783ee4f474f2829d0b59f8e4d;p=gentoo.git New ebuild Package-Manager: portage-2.1.1-r2 --- 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 +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..f97c0585d506 --- /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 1795 RMD160 b58ed892599f8e93ea46daff47324ff00c053169 SHA1 61acfe52bd325f070d7f68e64aa9ead3984d5527 SHA256 b487afb3ff1e6a382ee639fd37c40897bd9c2324cc5776cfb61041b23622dbe8 +MD5 89cf84067f8840b91fc5f3f03338fe2d mod_auth_nufw-2.2.0.ebuild 1795 +RMD160 b58ed892599f8e93ea46daff47324ff00c053169 mod_auth_nufw-2.2.0.ebuild 1795 +SHA256 b487afb3ff1e6a382ee639fd37c40897bd9c2324cc5776cfb61041b23622dbe8 mod_auth_nufw-2.2.0.ebuild 1795 +MISC ChangeLog 450 RMD160 e1765efc5716f5fb1fad1f5e6dfe74477ae610f6 SHA1 f0f9926a8c7e2ec4c08dee86bef6fe3c3a01fdd0 SHA256 8945d61ed03fd431f1450ba3612fe0f0db4ac6c40595381e785ac211f796c4fd +MD5 c98574e8fd0630bbd687b1e0b92b2008 ChangeLog 450 +RMD160 e1765efc5716f5fb1fad1f5e6dfe74477ae610f6 ChangeLog 450 +SHA256 8945d61ed03fd431f1450ba3612fe0f0db4ac6c40595381e785ac211f796c4fd ChangeLog 450 +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 @@ + + + LoadModule mod_auth_nufw extramodules/mod_auth_nufw.so + + + + + +# +#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. +# + + 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 @@ + + + +no-herd + + cedk@gentoo.org + +A NuFW authentication module for apache + 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" +}