Date: Sun, 7 Apr 2002 13:27:46 +0200 (CEST) From: Peter Hollaubek <fifteen@inext.hu> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/36843: auth_ldap port fix Message-ID: <200204071127.g37BRkUW002934@home.fifteen.hu>
next in thread | raw e-mail | index | archive | help
>Number: 36843 >Category: ports >Synopsis: auth_ldap port fix >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 07 04:30:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Peter Hollaubek <fifteen@inext.hu> >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD home.fifteen.hu 4.5-STABLE FreeBSD 4.5-STABLE #0: Fri Apr 5 22:54:09 CEST 2002 root@watcher.world84.net:/usr/obj/usr/src/sys/FIF i386 >Description: auth_ldap configure script cannot find libnsl thus not compiling with openldap. Needed to modify configure itself, and the installation method for this module has different routine name for initialization. >How-To-Repeat: port compilation and module inclusion in apache >Fix: --- auth_ldap.patch begins here --- diff -rNub auth_ldap.orig/Makefile auth_ldap/Makefile --- auth_ldap.orig/Makefile Mon Mar 25 03:20:02 2002 +++ auth_ldap/Makefile Sun Apr 7 12:04:10 2002 @@ -12,8 +12,6 @@ MAINTAINER= nik@FreeBSD.org -BROKEN= "Looks like a missing dependency" - BUILD_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 LIB_DEPENDS= lber.2:${PORTSDIR}/net/openldap2 RUN_DEPENDS= ${APXS}:${PORTSDIR}/www/apache13 @@ -30,6 +28,19 @@ MAKE_ARGS+= APXS=${APXS} do-install: - ${APXS} -i -A -n ldap ${WRKSRC}/auth_ldap.so + ${APXS} -i -n ldap ${WRKSRC}/auth_ldap.so + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/auth_ldap + @${INSTALL_DATA} ${WRKSRC}/Changes.html ${WRKSRC}/auth_ldap.html ${WRKSRC}/FAQ.html ${PREFIX}/share/doc/auth_ldap + @${ECHO} "*****************************************************************************" + @${ECHO} "The following lines should be added to your Apache configuration:" + @${ECHO} "LoadModule auth_ldap_module libexec/apache/auth_ldap.so" + @${ECHO} "AddModule auth_ldap.c" + @${ECHO} "" + @${ECHO} "For further information see the documentation in ${PREFIX}/share/doc/auth_ldap" + @${ECHO} "*****************************************************************************" +.endif .include <bsd.port.mk> diff -rNub auth_ldap.orig/files/patch-aa auth_ldap/files/patch-aa --- auth_ldap.orig/files/patch-aa Thu Jan 1 01:00:00 1970 +++ auth_ldap/files/patch-aa Sun Apr 7 12:04:10 2002 @@ -0,0 +1,11 @@ +--- configure.orig Sat Apr 6 15:59:24 2002 ++++ configure Sat Apr 6 15:59:41 2002 +@@ -724,7 +724,7 @@ + echo $ac_n "(cached) $ac_c" 1>&6 + else + ac_save_LIBS="$LIBS" +-LIBS="-llber -lnsl $LIBS" ++LIBS="-llber $LIBS" + cat > conftest.$ac_ext <<EOF + #line 730 "configure" + #include "confdefs.h" diff -rNub auth_ldap.orig/pkg-message auth_ldap/pkg-message --- auth_ldap.orig/pkg-message Thu Jan 1 01:00:00 1970 +++ auth_ldap/pkg-message Sun Apr 7 12:04:10 2002 @@ -0,0 +1,8 @@ +***************************************************************************** +The following lines should be added to your Apache configuration: +LoadModule auth_ldap_module libexec/apache/auth_ldap.so +AddModule auth_ldap.c + +For further information see the documentation in share/doc/auth_ldap +***************************************************************************** + diff -rNub auth_ldap.orig/pkg-plist auth_ldap/pkg-plist --- auth_ldap.orig/pkg-plist Fri Sep 28 10:59:50 2001 +++ auth_ldap/pkg-plist Sun Apr 7 12:04:10 2002 @@ -1,3 +1,5 @@ libexec/apache/auth_ldap.so -@exec %D/sbin/apxs -e -A -n ldap %D/%F -@unexec %D/sbin/apxs -e -A -n ldap %D/%F +%%PORTDOCS%%share/doc/auth_ldap/Changes.html +%%PORTDOCS%%share/doc/auth_ldap/FAQ.html +%%PORTDOCS%%share/doc/auth_ldap/auth_ldap.html +%%PORTDOCS%%@dirrm share/doc/auth_ldap --- auth_ldap.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204071127.g37BRkUW002934>