ldap authentication module for apache; ok margarida@
This commit is contained in:
parent
a5fa5d72c1
commit
d792146953
42
www/mod_auth_ldap/Makefile
Normal file
42
www/mod_auth_ldap/Makefile
Normal file
@ -0,0 +1,42 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $
|
||||
|
||||
# This port currently only works with archs supporting dynamic loading
|
||||
# and has Apache that supports DSO's.
|
||||
ONLY_FOR_ARCHS= alpha i386 m68k powerpc sparc sparc64
|
||||
|
||||
COMMENT= "Apache LDAP authentication module"
|
||||
|
||||
VERSION= 1.6.0
|
||||
DISTNAME= auth_ldap-${VERSION}
|
||||
PKGNAME= mod_auth_ldap-${VERSION}
|
||||
CATEGORIES= www
|
||||
|
||||
HOMEPAGE= http://www.rudedog.org/auth_ldap/
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
MAINTAINER= Henning Brauer <henning@openbsd.org>
|
||||
|
||||
# Apache License, one unused function GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
LIB_DEPENDS= ldap,lber::databases/openldap
|
||||
BUILD_DEPENDS= ${LIB_DEPENDS}
|
||||
|
||||
NO_REGRESS= Yes
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
|
||||
post-build:
|
||||
sed 's,!!PREFIX!!,${PREFIX},' \
|
||||
< ${FILESDIR}/mod_auth_ldap-enable \
|
||||
> ${WRKBUILD}/mod_auth_ldap-enable
|
||||
|
||||
do-install:
|
||||
${INSTALL_DATA} ${WRKBUILD}/auth_ldap.so ${PREFIX}/lib
|
||||
${INSTALL_SCRIPT} ${WRKBUILD}/mod_auth_ldap-enable ${PREFIX}/sbin
|
||||
|
||||
.include <bsd.port.mk>
|
3
www/mod_auth_ldap/distinfo
Normal file
3
www/mod_auth_ldap/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (auth_ldap-1.6.0.tar.gz) = ff7de9027fe8852facd27be93462c5cc
|
||||
RMD160 (auth_ldap-1.6.0.tar.gz) = 1f5fc8c0f3b8c25c4d4daf20392f22fe6c679646
|
||||
SHA1 (auth_ldap-1.6.0.tar.gz) = d08c611f779db538a0a782d6512e307c0cdaf4a9
|
18
www/mod_auth_ldap/files/mod_auth_ldap-enable
Normal file
18
www/mod_auth_ldap/files/mod_auth_ldap-enable
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: mod_auth_ldap-enable,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $
|
||||
|
||||
MODULE=!!PREFIX!!/lib/auth_ldap.so
|
||||
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "You must be root to run this script."
|
||||
exit
|
||||
fi
|
||||
|
||||
if [ ! -f ${MODULE} ]; then
|
||||
echo "Cannot find auth_ldap module (${MODULE})"
|
||||
exit 1
|
||||
else
|
||||
echo "Enabling LDAP Authentication module..."
|
||||
/usr/sbin/apxs -i -a -n auth_ldap ${MODULE}
|
||||
fi
|
20
www/mod_auth_ldap/patches/patch-Makefile_in
Normal file
20
www/mod_auth_ldap/patches/patch-Makefile_in
Normal file
@ -0,0 +1,20 @@
|
||||
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $
|
||||
--- Makefile.in.orig Wed Jul 4 16:37:55 2001
|
||||
+++ Makefile.in Mon Apr 28 23:25:10 2003
|
||||
@@ -20,12 +20,14 @@ html: FAQ.html Changes.html auth_ldap.ht
|
||||
|
||||
OBJS=auth_ldap.o auth_ldap_config.o auth_ldap_cache.o auth_ldap_cache_mgr.o
|
||||
|
||||
-CFLAGS=`$(APXS) -q CFLAGS` $(FRONTPAGE) $(SSL) $(SHARED_CACHE) $(OPENLDAP)
|
||||
+CFLAGS=`$(APXS) -q CFLAGS` $(FRONTPAGE) $(SSL) $(SHARED_CACHE) $(OPENLDAP) \
|
||||
+ -I/usr/lib/apache/include -I${LOCALBASE}/include -fno-stack-protector
|
||||
CFLAGS_SHLIB=`$(APXS) -q CFLAGS_SHLIB`
|
||||
INCLUDEDIR=`$(APXS) -q INCLUDEDIR`
|
||||
EXTRA_LDFLAGS=@LDFLAGS@
|
||||
LD_SHLIB=`$(APXS) -q LD_SHLIB`
|
||||
-LDFLAGS_SHLIB=$(EXTRA_LDFLAGS) `$(APXS) -q LDFLAGS_SHLIB` $(AIX_LDFLAGS_SHLIB)
|
||||
+LDFLAGS_SHLIB=$(EXTRA_LDFLAGS) `$(APXS) -q LDFLAGS_SHLIB` $(AIX_LDFLAGS_SHLIB) \
|
||||
+ -L${LOCALBASE}/lib -lldap -llber
|
||||
|
||||
auth_ldap.so: $(OBJS) $(AIX_EXP)
|
||||
@echo $(LD_SHLIB) $(LDFLAGS_SHLIB) -o $@ $(OBJS) $(LIBS)
|
27
www/mod_auth_ldap/pkg/DEINSTALL
Normal file
27
www/mod_auth_ldap/pkg/DEINSTALL
Normal file
@ -0,0 +1,27 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $OpenBSD: DEINSTALL,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $
|
||||
#
|
||||
# mod_auth_ldap de-installation
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
PREFIX=${PKG_PREFIX:-/usr/local}
|
||||
CONF=`apxs -q SYSCONFDIR`/httpd.conf
|
||||
MODULE=/usr/lib/apache/modules/auth_ldap.so
|
||||
|
||||
rm -f ${MODULE}
|
||||
|
||||
echo
|
||||
echo "+---------------"
|
||||
echo "| To completely deinstall the $1 package you"
|
||||
echo "| need to perform these steps as root:"
|
||||
echo "|"
|
||||
echo "| edit ${CONF}"
|
||||
echo "| remove the line: LoadModule auth_ldap_module"
|
||||
echo "|"
|
||||
echo "| Do not do this if you plan on re-installing $1"
|
||||
echo "| package at some future time."
|
||||
echo "+---------------"
|
||||
echo
|
||||
|
||||
exit 0
|
5
www/mod_auth_ldap/pkg/DESCR
Normal file
5
www/mod_auth_ldap/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
This is the Apache LDAP authentication module. It allows
|
||||
any Apache web-server to become a LDAP client for
|
||||
authentication requests.
|
||||
|
||||
WWW: ${HOMEPAGE}
|
10
www/mod_auth_ldap/pkg/MESSAGE
Normal file
10
www/mod_auth_ldap/pkg/MESSAGE
Normal file
@ -0,0 +1,10 @@
|
||||
+---------------
|
||||
| To finish the install of mod_auth_ldap, you need
|
||||
| to enable the module using the following command
|
||||
|
|
||||
| ${PREFIX}/sbin/mod_auth_ldap-enable
|
||||
|
|
||||
| If you already have Apache running on your machine,
|
||||
| you should not use "apachectl restart" - instead,
|
||||
| you should fully stop and then restart the server.
|
||||
+---------------
|
3
www/mod_auth_ldap/pkg/PLIST
Normal file
3
www/mod_auth_ldap/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2003/05/04 23:09:01 henning Exp $
|
||||
lib/auth_ldap.so
|
||||
sbin/mod_auth_ldap-enable
|
Loading…
x
Reference in New Issue
Block a user