From nobody@FreeBSD.org  Sun Jun  8 19:11:40 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6D6981065677
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Jun 2008 19:11:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 416368FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  8 Jun 2008 19:11:40 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m58JBddR016423
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 8 Jun 2008 19:11:39 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m58JBdgR016422;
	Sun, 8 Jun 2008 19:11:39 GMT
	(envelope-from nobody)
Message-Id: <200806081911.m58JBdgR016422@www.freebsd.org>
Date: Sun, 8 Jun 2008 19:11:39 GMT
From: Gerrit Beine <gerrit.beine@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: New port: www/mod_auth_ldap
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         124400
>Category:       ports
>Synopsis:       New port: www/mod_auth_ldap
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jadawin
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 08 19:20:01 UTC 2008
>Closed-Date:    Wed Jul 02 15:23:15 UTC 2008
>Last-Modified:  Wed Jul 02 15:23:15 UTC 2008
>Originator:     Gerrit Beine
>Release:        FreeBSD 7.0-RELEASE
>Organization:
Beine Computer
>Environment:
FreeBSD tb.vmware.beine-computer.de 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
This port introduces an alternative LDAP authentication module for Apache 2.0

The module allows an authentication through binding without a directory tree search.
>How-To-Repeat:

>Fix:
#!/bin/sh
# This is a shell archive (produced by GNU sharutils 4.6.2).
# To extract the files from this archive, save it to some FILE, remove
# everything before the `#!/bin/sh' line above, then type `sh FILE'.
#
lock_dir=_sh31271
# Made on 2008-06-08 21:09 CEST by <beine@linux>.
# Source directory was `/home/beine/Projekte/FreeBSD'.
#
# Existing files will *not* be overwritten, unless `-c' is specified.
#
# This shar contains:
# length mode       name
# ------ ---------- ------------------------------------------
#    183 -rw-r--r-- mod_auth_ldap/pkg-descr
#    269 -rw-r--r-- mod_auth_ldap/pkg-plist
#    791 -rw-r--r-- mod_auth_ldap/Makefile
#    214 -rw-r--r-- mod_auth_ldap/distinfo
#
MD5SUM=${MD5SUM-md5sum}
f=`${MD5SUM} --version | egrep '^md5sum .*(core|text)utils'`
test -n "${f}" && md5check=true || md5check=false
${md5check} || \
  echo 'Note: not verifying md5sums.  Consider installing GNU coreutils.'
save_IFS="${IFS}"
IFS="${IFS}:"
gettext_dir=FAILED
locale_dir=FAILED
first_param="$1"
for dir in $PATH
do
  if test "$gettext_dir" = FAILED && test -f $dir/gettext \
     && ($dir/gettext --version >/dev/null 2>&1)
  then
    case `$dir/gettext --version 2>&1 | sed 1q` in
      *GNU*) gettext_dir=$dir ;;
    esac
  fi
  if test "$locale_dir" = FAILED && test -f $dir/shar \
     && ($dir/shar --print-text-domain-dir >/dev/null 2>&1)
  then
    locale_dir=`$dir/shar --print-text-domain-dir`
  fi
done
IFS="$save_IFS"
if test "$locale_dir" = FAILED || test "$gettext_dir" = FAILED
then
  echo=echo
else
  TEXTDOMAINDIR=$locale_dir
  export TEXTDOMAINDIR
  TEXTDOMAIN=sharutils
  export TEXTDOMAIN
  echo="$gettext_dir/gettext -s"
fi
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null
then if (echo -n test; echo 1,2,3) | grep n >/dev/null
     then shar_n= shar_c='
'
     else shar_n=-n shar_c= ; fi
else shar_n= shar_c='\c' ; fi
f=shar-touch.$$
st1=200112312359.59
st2=123123592001.59
st2tr=123123592001.5 # old SysV 14-char limit
st3=1231235901

if touch -am -t ${st1} ${f} >/dev/null 2>&1 && \
   test ! -f ${st1} && test -f ${f}; then
  shar_touch='touch -am -t $1$2$3$4$5$6.$7 "$8"'

elif touch -am ${st2} ${f} >/dev/null 2>&1 && \
   test ! -f ${st2} && test ! -f ${st2tr} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$1$2.$7 "$8"'

elif touch -am ${st3} ${f} >/dev/null 2>&1 && \
   test ! -f ${st3} && test -f ${f}; then
  shar_touch='touch -am $3$4$5$6$2 "$8"'

else
  shar_touch=:
  echo
  ${echo} 'WARNING: not restoring timestamps.  Consider getting and'
  ${echo} 'installing GNU `touch'\'', distributed in GNU File Utilities...'
  echo
fi
rm -f ${st1} ${st2} ${st2tr} ${st3} ${f}
#
if test ! -d ${lock_dir}
then : ; else ${echo} 'lock directory '${lock_dir}' exists'
  exit 1
fi
if mkdir ${lock_dir}
then ${echo} 'x - created lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to create lock directory `'${lock_dir}\''.'
  exit 1
fi
# ============= mod_auth_ldap/pkg-descr ==============
if test ! -d 'mod_auth_ldap'; then
  mkdir 'mod_auth_ldap'
if test $? -eq 0
then ${echo} 'x - created directory `''mod_auth_ldap'\''.'
else ${echo} 'x - failed to create directory `''mod_auth_ldap'\''.'
  exit 1
fi
fi
if test -f 'mod_auth_ldap/pkg-descr' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING ''mod_auth_ldap/pkg-descr'' (file already exists)'
else
${echo} 'x - extracting ''mod_auth_ldap/pkg-descr'' (binary)'
  sed 's/^X//' << 'SHAR_EOF' | uudecode &&
begin 600 mod_auth_ldap/pkg-descr
M5&AI<R!M;V1U;&4@86QL;W=S($%P86-H92!T;R!A=71H96YT:6-A=&4@82!L
M;V-A=&EO;B!A9V%I;G-T(&%N"F5N=')Y+"!O<B!E;G1R:65S+"!I;B!A;B!,
M1$%0(&1A=&%B87-E+B`@"@I75U<Z(&AT='`Z+R]W=W<N;75Q=6ET+F-O;2]M
M=7%U:70O<V]F='=A<F4O;6]D7V%U=&A?;&1A<"]M;V1?875T:%]L9&%P,BYH
#=&UL
`
end
SHAR_EOF
  (set 20 08 06 08 10 43 49 'mod_auth_ldap/pkg-descr'; eval "$shar_touch") &&
  chmod 0644 'mod_auth_ldap/pkg-descr'
if test $? -ne 0
then ${echo} 'restore of ''mod_auth_ldap/pkg-descr'' failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'mod_auth_ldap/pkg-descr': 'MD5 check failed'
       ) << SHAR_EOF
f076ab8ebd9c569ecdec0f8cfb83bbb0  mod_auth_ldap/pkg-descr
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'mod_auth_ldap/pkg-descr'` -ne 183 && \
  ${echo} 'restoration warning:  size of ''mod_auth_ldap/pkg-descr'' is not 183'
  fi
fi
# ============= mod_auth_ldap/pkg-plist ==============
if test ! -d 'mod_auth_ldap'; then
  mkdir 'mod_auth_ldap'
if test $? -eq 0
then ${echo} 'x - created directory `''mod_auth_ldap'\''.'
else ${echo} 'x - failed to create directory `''mod_auth_ldap'\''.'
  exit 1
fi
fi
if test -f 'mod_auth_ldap/pkg-plist' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING ''mod_auth_ldap/pkg-plist'' (file already exists)'
else
${echo} 'x - extracting ''mod_auth_ldap/pkg-plist'' (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'mod_auth_ldap/pkg-plist' &&
libexec/apache2/mod_auth_ldap.so
@exec %D/sbin/apxs -e -a -n mod_auth_ldap %D/%F
@unexec %D/sbin/apxs -e -A -n mod_auth_ldap %D/%F
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/mod_auth_ldap_apache2.html
%%PORTDOCS%%%%DOCSDIR%%/ssl_tls.html
@dirrm %%DOCSDIR%%
SHAR_EOF
  (set 20 08 06 08 10 43 49 'mod_auth_ldap/pkg-plist'; eval "$shar_touch") &&
  chmod 0644 'mod_auth_ldap/pkg-plist'
if test $? -ne 0
then ${echo} 'restore of ''mod_auth_ldap/pkg-plist'' failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'mod_auth_ldap/pkg-plist': 'MD5 check failed'
       ) << SHAR_EOF
5af875bba7af0a9a3125a067783af0c5  mod_auth_ldap/pkg-plist
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'mod_auth_ldap/pkg-plist'` -ne 269 && \
  ${echo} 'restoration warning:  size of ''mod_auth_ldap/pkg-plist'' is not 269'
  fi
fi
# ============= mod_auth_ldap/Makefile ==============
if test -f 'mod_auth_ldap/Makefile' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING ''mod_auth_ldap/Makefile'' (file already exists)'
else
${echo} 'x - extracting ''mod_auth_ldap/Makefile'' (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'mod_auth_ldap/Makefile' &&
# New ports collection makefile for:	mod_auth_ldap
# Date created:				07 June 2008
# Whom:					Gerrit Beine <gerrit.beine@gmx.de>
#
# $FreeBSD$
#
X
PORTNAME=	mod_auth_ldap
PORTVERSION=	2.12
CATEGORIES=	www
MASTER_SITES=	http://www.muquit.com/muquit/software/mod_auth_ldap/
DISTNAME=	modauthldap_apache2
X
MAINTAINER=	gerrit.beine@gmx.de
COMMENT=	Apache module to authenticate against an LDAP directory
X
USE_OPENLDAP=	yes
USE_APACHE=	20
GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-ldap-dir=${LOCALBASE} --with-ssl=no
MAKE_ARGS+=	APXS=${APXS}
X
X.if !defined(NOPORTDOCS)
DOCS=		README mod_auth_ldap_apache2.html ssl_tls.html
X.endif
X
post-install:
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${DOCSDIR}
X.for file in ${DOCS}
X	${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.mk>
SHAR_EOF
  (set 20 08 06 08 10 43 49 'mod_auth_ldap/Makefile'; eval "$shar_touch") &&
  chmod 0644 'mod_auth_ldap/Makefile'
if test $? -ne 0
then ${echo} 'restore of ''mod_auth_ldap/Makefile'' failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'mod_auth_ldap/Makefile': 'MD5 check failed'
       ) << SHAR_EOF
34df5ea7a42ed5804fea1b5e351c58a7  mod_auth_ldap/Makefile
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'mod_auth_ldap/Makefile'` -ne 791 && \
  ${echo} 'restoration warning:  size of ''mod_auth_ldap/Makefile'' is not 791'
  fi
fi
# ============= mod_auth_ldap/distinfo ==============
if test -f 'mod_auth_ldap/distinfo' && test "$first_param" != -c; then
  ${echo} 'x -SKIPPING ''mod_auth_ldap/distinfo'' (file already exists)'
else
${echo} 'x - extracting ''mod_auth_ldap/distinfo'' (text)'
  sed 's/^X//' << 'SHAR_EOF' > 'mod_auth_ldap/distinfo' &&
MD5 (modauthldap_apache2.tar.gz) = 2666189a1ec9bef4ae264870b22f8714
SHA256 (modauthldap_apache2.tar.gz) = 752041bbeac760ba38aa44083cf876882adb0e67f1903b03d9620b3aee154eef
SIZE (modauthldap_apache2.tar.gz) = 155812
SHAR_EOF
  (set 20 08 06 08 10 43 49 'mod_auth_ldap/distinfo'; eval "$shar_touch") &&
  chmod 0644 'mod_auth_ldap/distinfo'
if test $? -ne 0
then ${echo} 'restore of ''mod_auth_ldap/distinfo'' failed'
fi
  if ${md5check}
  then (
       ${MD5SUM} -c >/dev/null 2>&1 || ${echo} 'mod_auth_ldap/distinfo': 'MD5 check failed'
       ) << SHAR_EOF
52d8940dcb20783e6bc927cadb24feee  mod_auth_ldap/distinfo
SHAR_EOF
  else
test `LC_ALL=C wc -c < 'mod_auth_ldap/distinfo'` -ne 214 && \
  ${echo} 'restoration warning:  size of ''mod_auth_ldap/distinfo'' is not 214'
  fi
fi
if rm -fr ${lock_dir}
then ${echo} 'x - removed lock directory `'${lock_dir}\''.'
else ${echo} 'x - failed to remove lock directory `'${lock_dir}\''.'
  exit 1
fi
exit 0


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: jadawin 
State-Changed-When: Mon Jun 9 07:46:12 UTC 2008 
State-Changed-Why:  
Can you provide an enclosed shar, please ? 

Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124400 
State-Changed-From-To: feedback->open 
State-Changed-By: jadawin 
State-Changed-When: Sat Jun 14 13:25:15 UTC 2008 
State-Changed-Why:  
Maintainer submit shar in attachment. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124400 
Responsible-Changed-From-To: freebsd-ports-bugs->jadawin 
Responsible-Changed-By: jadawin 
Responsible-Changed-When: Sat Jun 14 16:53:40 UTC 2008 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124400 
State-Changed-From-To: open->feedback 
State-Changed-By: jadawin 
State-Changed-When: Mon Jun 16 12:13:55 UTC 2008 
State-Changed-Why:  
Hello, 

I have this warnings: 

*** Warning: Linking the shared library mod_auth_ldap.la against the 
non-libtool *** objects  mod_auth_ldap.o is not portable! 

and 

[preparing module `mod_auth_ldap' in /usr/local/etc/apache2/httpd.conf] 
pkg_delete: file '/usr/local/share/doc/mod_auth_ldap' doesn't exist 
pkg_delete: unable to completely remove directory 
'/usr/local/share/doc/mod_auth_ldap' pkg_delete: couldn't entirely 
delete package (perhaps the packing list is incorrectly specified?) 


Can you fix it please ?  Thanks! 


http://www.freebsd.org/cgi/query-pr.cgi?pr=124400 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/124400: commit references a PR
Date: Wed,  2 Jul 2008 15:18:00 +0000 (UTC)

 jadawin     2008-07-02 15:17:55 UTC
 
   FreeBSD ports repository
 
   Modified files:
     www                  Makefile 
   Added files:
     www/mod_auth_ldap    Makefile distinfo pkg-descr 
   Log:
   This module allows Apache to authenticate a location against an
   entry, or entries, in an LDAP database.
   
   WWW: http://www.muquit.com/muquit/software/mod_auth_ldap/mod_auth_ldap2.html
   
   PR:             ports/124400
   Submitted by:   Gerrit Beine <gerrit.beine at gmx.de>
   
   Revision  Changes    Path
   1.2082    +1 -0      ports/www/Makefile
   1.1       +34 -0     ports/www/mod_auth_ldap/Makefile (new)
   1.1       +3 -0      ports/www/mod_auth_ldap/distinfo (new)
   1.1       +4 -0      ports/www/mod_auth_ldap/pkg-descr (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: feedback->closed 
State-Changed-By: jadawin 
State-Changed-When: Wed Jul 2 15:22:07 UTC 2008 
State-Changed-Why:  
Submitter timeout and minor changes. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=124400 
>Unformatted:
