Date: Sat, 22 Jul 2000 02:58:25 +0200 (CEST) From: oddbjorn@tricknology.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/20095: New port for web2ldap Message-ID: <200007220058.CAA12595@tricknology.org>
next in thread | raw e-mail | index | archive | help
>Number: 20095 >Category: ports >Synopsis: New port for web2ldap >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Fri Jul 21 18:10:03 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Oddbjorn Steffensen >Release: FreeBSD 4.0-STABLE i386 >Organization: Funkjazztical Tricknology >Environment: FreeBSD 4-STABLE >Description: A new port for web2ldap, a web interface to LDAP written in Python (http://www.web2ldap.de/). A couple of notes: 1. I've placed everything under /usr/local/web2ldap/ to avoid mucking around elsewhere. The port can be splitted in etc, sbin, pylib and cgi-bin, but I feel that this approach is cleaner for this specific port. 2. To avoid dependencies to ports other than python and ldapmodule, I've added a mime.types in /usr/local/web2ldap/etc. mutt and apache both install their own mime.types; perhaps this could be standardized in /etc or /usr/share at some point? >How-To-Repeat: n/a >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # web2ldap # web2ldap/files # web2ldap/files/md5 # web2ldap/Makefile # web2ldap/pkg # web2ldap/pkg/PLIST # web2ldap/pkg/COMMENT # web2ldap/pkg/DESCR # web2ldap/pkg/MESSAGE # web2ldap/README.html # web2ldap/patches # web2ldap/patches/patch-aa # web2ldap/patches/patch-ab # web2ldap/patches/patch-ac # web2ldap/patches/patch-ad # web2ldap/patches/patch-ae # web2ldap/patches/patch-af # echo c - web2ldap mkdir -p web2ldap > /dev/null 2>&1 echo c - web2ldap/files mkdir -p web2ldap/files > /dev/null 2>&1 echo x - web2ldap/files/md5 sed 's/^X//' >web2ldap/files/md5 << 'END-of-web2ldap/files/md5' XMD5 (web2ldap-0.7.7.tar.gz) = 6af96080f7929795db7080605b7708c2 END-of-web2ldap/files/md5 echo x - web2ldap/Makefile sed 's/^X//' >web2ldap/Makefile << 'END-of-web2ldap/Makefile' X# New ports collection makefile for: web2ldap X# Date created: 21 July 2000 X# Whom: Oddbjorn Steffensen <oddbjorn@tricknology.org> X# X# $FreeBSD$ X# X XPORTNAME= web2ldap XPORTVERSION= 0.7.7 XCATEGORIES= net XMASTER_SITES= http://sites.inka.de/ms/python/web2ldap/download/ X XMAINTAINER= oddbjorn@tricknology.org X XRUN_DEPENDS= ${LOCALBASE}/bin/python:${PORTSDIR}/lang/python \ X ${LOCALBASE}/lib/python1.5/site-packages/ldapmodule.so:${PORTSDIR}/net/ldapmodule X XNO_BUILD= yes X Xdo-install: X @${MKDIR} ${PREFIX}/${PORTNAME} X @${RM} -f ${WRKDIR}/${PORTNAME}-${PORTVERSION}/cgi-bin/web2ldap.py.orig X @${RM} -f ${WRKDIR}/${PORTNAME}-${PORTVERSION}/sbin/web2ldap.py.orig X @${RM} -f ${WRKDIR}/${PORTNAME}-${PORTVERSION}/sbin/compile.py.orig X @${RM} -f ${WRKDIR}/${PORTNAME}-${PORTVERSION}/etc/mime.types.orig X @${RM} -f ${WRKDIR}/${PORTNAME}-${PORTVERSION}/etc/web2ldap/web2ldapcnf/misc.py.orig X @${RM} -f ${WRKDIR}/${PORTNAME}-${PORTVERSION}/etc/web2ldap/web2ldapcnf/standalone.py.orig X @${PREFIX}/bin/python ${WRKDIR}/${PORTNAME}-${PORTVERSION}/sbin/compile.py X @${CP} -r ${WRKDIR}/${PORTNAME}-${PORTVERSION}/ ${PREFIX}/${PORTNAME} X @${MKDIR} /var/log/web2ldap X Xpost-install: X @${CAT} ${PKGDIR}/MESSAGE X X.include <bsd.port.mk> END-of-web2ldap/Makefile echo c - web2ldap/pkg mkdir -p web2ldap/pkg > /dev/null 2>&1 echo x - web2ldap/pkg/PLIST sed 's/^X//' >web2ldap/pkg/PLIST << 'END-of-web2ldap/pkg/PLIST' Xweb2ldap/cgi-bin/web2ldap.py Xweb2ldap/cgi-bin/web2ldap.pyc Xweb2ldap/contrib/occonf2ldapoc-esj.py Xweb2ldap/contrib/occonf2ldapoc-esj.pyc Xweb2ldap/etc/mime.types Xweb2ldap/etc/web2ldap/ldapoc.py Xweb2ldap/etc/web2ldap/ldapoc.pyc Xweb2ldap/etc/web2ldap/web2ldapcnf/__init__.py Xweb2ldap/etc/web2ldap/web2ldapcnf/__init__.pyc Xweb2ldap/etc/web2ldap/web2ldapcnf/cgibin.py Xweb2ldap/etc/web2ldap/web2ldapcnf/cgibin.pyc Xweb2ldap/etc/web2ldap/web2ldapcnf/hosts.py Xweb2ldap/etc/web2ldap/web2ldapcnf/hosts.pyc Xweb2ldap/etc/web2ldap/web2ldapcnf/misc.py Xweb2ldap/etc/web2ldap/web2ldapcnf/misc.pyc Xweb2ldap/etc/web2ldap/web2ldapcnf/standalone.py Xweb2ldap/etc/web2ldap/web2ldapcnf/standalone.pyc Xweb2ldap/htdocs/css/redandgreen.css Xweb2ldap/htdocs/demo.html Xweb2ldap/htdocs/doc/changes.html Xweb2ldap/htdocs/doc/files.html Xweb2ldap/htdocs/doc/install.html Xweb2ldap/htdocs/doc/roadmap.html Xweb2ldap/htdocs/doc/security.html Xweb2ldap/htdocs/doc/web2ldapcnf.html Xweb2ldap/htdocs/features.html Xweb2ldap/htdocs/feedback.html Xweb2ldap/htdocs/web2ldap.html Xweb2ldap/pylib/cgiforms.py Xweb2ldap/pylib/cgiforms.pyc Xweb2ldap/pylib/cgihelper.py Xweb2ldap/pylib/cgihelper.pyc Xweb2ldap/pylib/cgisession.py Xweb2ldap/pylib/cgisession.pyc Xweb2ldap/pylib/cgissl.py Xweb2ldap/pylib/cgissl.pyc Xweb2ldap/pylib/charset.py Xweb2ldap/pylib/charset.pyc Xweb2ldap/pylib/dsml.py Xweb2ldap/pylib/dsml.pyc Xweb2ldap/pylib/ipadr.py Xweb2ldap/pylib/ipadr.pyc Xweb2ldap/pylib/ldapbase.py Xweb2ldap/pylib/ldapbase.pyc Xweb2ldap/pylib/ldif.py Xweb2ldap/pylib/ldif.pyc Xweb2ldap/pylib/msbase.py Xweb2ldap/pylib/msbase.pyc Xweb2ldap/pylib/w2ladd.py Xweb2ldap/pylib/w2ladd.pyc Xweb2ldap/pylib/w2laddmodifyform.py Xweb2ldap/pylib/w2laddmodifyform.pyc Xweb2ldap/pylib/w2lcore.py Xweb2ldap/pylib/w2lcore.pyc Xweb2ldap/pylib/w2ldelete.py Xweb2ldap/pylib/w2ldelete.pyc Xweb2ldap/pylib/w2lhandler.py Xweb2ldap/pylib/w2lhandler.pyc Xweb2ldap/pylib/w2llogin.py Xweb2ldap/pylib/w2llogin.pyc Xweb2ldap/pylib/w2lmodify.py Xweb2ldap/pylib/w2lmodify.pyc Xweb2ldap/pylib/w2lmodrdn.py Xweb2ldap/pylib/w2lmodrdn.pyc Xweb2ldap/pylib/w2lpasswd.py Xweb2ldap/pylib/w2lpasswd.pyc Xweb2ldap/pylib/w2lread.py Xweb2ldap/pylib/w2lread.pyc Xweb2ldap/pylib/w2lsearch.py Xweb2ldap/pylib/w2lsearch.pyc Xweb2ldap/pylib/w2lsearchform.py Xweb2ldap/pylib/w2lsearchform.pyc Xweb2ldap/pylib/w2lsecinfo.py Xweb2ldap/pylib/w2lsecinfo.pyc Xweb2ldap/pylib/w2lserver.py Xweb2ldap/pylib/w2lserver.pyc Xweb2ldap/sbin/compile.py Xweb2ldap/sbin/compile.pyc Xweb2ldap/sbin/occonf2ldapoc.py Xweb2ldap/sbin/occonf2ldapoc.pyc Xweb2ldap/sbin/web2ldap.py Xweb2ldap/sbin/web2ldap.pyc Xweb2ldap/templates/read_bankArrangement.html Xweb2ldap/templates/read_inetOrgPerson.html Xweb2ldap/templates/read_musician.html Xweb2ldap/templates/read_musician.html.de Xweb2ldap/templates/read_posixAccount.html Xweb2ldap/templates/searchform_Base.html Xweb2ldap/templates/searchform_Base.html.de Xweb2ldap/templates/searchform_rfc2307.html X@dirrm web2ldap/cgi-bin X@dirrm web2ldap/contrib X@dirrm web2ldap/etc/web2ldap/web2ldapcnf X@dirrm web2ldap/etc/web2ldap X@dirrm web2ldap/etc X@dirrm web2ldap/htdocs/css X@dirrm web2ldap/htdocs/doc X@dirrm web2ldap/htdocs X@dirrm web2ldap/pylib X@dirrm web2ldap/sbin X@dirrm web2ldap/templates X@dirrm web2ldap END-of-web2ldap/pkg/PLIST echo x - web2ldap/pkg/COMMENT sed 's/^X//' >web2ldap/pkg/COMMENT << 'END-of-web2ldap/pkg/COMMENT' XPython-based WWW gateway to LDAP server END-of-web2ldap/pkg/COMMENT echo x - web2ldap/pkg/DESCR sed 's/^X//' >web2ldap/pkg/DESCR << 'END-of-web2ldap/pkg/DESCR' Xweb2ldap.py is a full-featured web-based LDAP v2+ client written in Python. X XWWW: http://www.web2ldap.de/ X X- oddbjorn (oddbjorn@tricknology.org) END-of-web2ldap/pkg/DESCR echo x - web2ldap/pkg/MESSAGE sed 's/^X//' >web2ldap/pkg/MESSAGE << 'END-of-web2ldap/pkg/MESSAGE' XRun /usr/local/web2ldap/sbin/web2ldap.py to start the standalone version Xof web2ldap. By default it only accepts connections from localhost, but Xthis can be modified in X X /usr/local/web2ldap/etc/web2ldap/web2ldapcnf/standalone.py X XFor instructions on installing the CGI version of web2ldap, please look Xat the enclosed documentation in /usr/local/web2ldap/htdocs/. END-of-web2ldap/pkg/MESSAGE echo x - web2ldap/README.html sed 's/^X//' >web2ldap/README.html << 'END-of-web2ldap/README.html' X<html> X<title>The FreeBSD Ports Collection (net/web2ldap)</title> X<head><h1> The FreeBSD Ports Collection ("net/web2ldap")</h1> </head> <hr> X<body> X X<p>You are now in the directory for the port "net/web2ldap" (package name "web2ldap-0.7.7"). X X<p>This is the one-line description for this port: X X<p><hr><p> XPython-based WWW gateway to LDAP server. X<p><hr> X X<p>Please read the file "<a href="pkg/DESCR">pkg/DESCR</a>" for a Xlonger description. X X<p>Go to the <a href="../../README.html">top of the ports tree</a> for Xa summary on how to use the ports collection. X X<p> X X<p> X X X<p><hr><p> X<a href="../README.html"> Go up one level</a> X| X<a href="../../README.html"> Go to top of ports tree</a> X</body> X</html> END-of-web2ldap/README.html echo c - web2ldap/patches mkdir -p web2ldap/patches > /dev/null 2>&1 echo x - web2ldap/patches/patch-aa sed 's/^X//' >web2ldap/patches/patch-aa << 'END-of-web2ldap/patches/patch-aa' X*** cgi-bin/web2ldap.py.orig Sat Jul 22 02:23:06 2000 X--- cgi-bin/web2ldap.py Sat Jul 22 02:23:30 2000 X*************** X*** 1,4 **** X! #!/usr/bin/python X X ######################################################################## X # web2ldap X--- 1,4 ---- X! #!/usr/local/bin/python X X ######################################################################## X # web2ldap X*************** X*** 12,19 **** X if os.environ.has_key('GATEWAY_INTERFACE'): X X if os.name == 'posix': X! # For finding web2ldapcnf.py in /etc/web2ldap on Unix systems X! sys.path.append('/etc/web2ldap') X else: X # For finding web2ldapcnf.py in system dirs on Windows systems X for i in ['SystemRoot','windir']: X--- 12,19 ---- X if os.environ.has_key('GATEWAY_INTERFACE'): X X if os.name == 'posix': X! # For finding web2ldapcnf.py in /usr/local/web2ldap/etc/web2ldap on FreeBSD systems X! sys.path.append('/usr/local/web2ldap/etc/web2ldap') X else: X # For finding web2ldapcnf.py in system dirs on Windows systems X for i in ['SystemRoot','windir']: END-of-web2ldap/patches/patch-aa echo x - web2ldap/patches/patch-ab sed 's/^X//' >web2ldap/patches/patch-ab << 'END-of-web2ldap/patches/patch-ab' X*** /dev/null Sat Jul 22 02:21:51 2000 X--- etc/mime.types Sat Jul 22 02:24:24 2000 X*************** X*** 0 **** X--- 1,81 ---- X+ # X+ # sample mime.types X+ # X+ X+ application/andrew-inset ez X+ application/excel xls X+ application/octet-stream bin X+ application/oda oda X+ application/pdf pdf X+ application/pgp pgp X+ application/postscript ps PS eps X+ application/rtf rtf X+ application/x-arj-compressed arj X+ application/x-bcpio bcpio X+ application/x-chess-pgn pgn X+ application/x-cpio cpio X+ application/x-csh csh X+ application/x-debian-package deb X+ application/x-msdos-program com exe bat X+ application/x-dvi dvi X+ application/x-gtar gtar X+ application/x-gunzip gz X+ application/x-hdf hdf X+ application/x-latex latex X+ application/x-mif mif X+ application/x-netcdf cdf nc X+ application/x-perl pl pm X+ application/x-rar-compressed rar X+ application/x-sh sh X+ application/x-shar shar X+ application/x-sv4cpio sv4cpio X+ application/x-sv4crc sv4crc X+ application/x-tar tar X+ application/x-tar-gz tgz tar.gz X+ application/x-tcl tcl X+ application/x-tex tex X+ application/x-texinfo texi texinfo X+ application/x-troff t tr roff X+ application/x-troff-man man X+ application/x-troff-me me X+ application/x-troff-ms ms X+ application/x-ustar ustar X+ application/x-wais-source src X+ application/x-zip-compressed zip X+ X+ audio/basic snd X+ audio/midi mid midi X+ audio/ulaw au X+ audio/x-aiff aif aifc aiff X+ audio/x-wav wav X+ X+ image/gif gif X+ image/ief ief X+ image/jpeg jpe jpeg jpg X+ image/png png X+ image/tiff tif tiff X+ image/x-cmu-raster ras X+ image/x-portable-anymap pnm X+ image/x-portable-bitmap pbm X+ image/x-portable-graymap pgm X+ image/x-portable-pixmap ppm X+ image/x-rgb rgb X+ image/x-xbitmap xbm X+ image/x-xpixmap xpm X+ image/x-xwindowdump xwd X+ X+ text/html html htm X+ text/plain asc txt X+ text/richtext rtx X+ text/tab-separated-values tsv X+ text/x-setext etx X+ X+ video/dl dl X+ video/fli fli X+ video/gl gl X+ video/mpeg mp2 mpe mpeg mpg X+ video/quicktime mov qt X+ video/x-msvideo avi X+ video/x-sgi-movie movie X+ X+ x-world/x-vrml vrm vrml wrl END-of-web2ldap/patches/patch-ab echo x - web2ldap/patches/patch-ac sed 's/^X//' >web2ldap/patches/patch-ac << 'END-of-web2ldap/patches/patch-ac' X*** sbin/compile.py.orig Sat Jul 22 02:24:55 2000 X--- sbin/compile.py Sat Jul 22 02:25:07 2000 X*************** X*** 1,4 **** X! #!/usr/bin/python X X import compileall X X--- 1,4 ---- X! #!/usr/local/bin/python X X import compileall X END-of-web2ldap/patches/patch-ac echo x - web2ldap/patches/patch-ad sed 's/^X//' >web2ldap/patches/patch-ad << 'END-of-web2ldap/patches/patch-ad' X*** sbin/web2ldap.py.orig Sat Jul 22 02:24:59 2000 X--- sbin/web2ldap.py Sat Jul 22 02:25:26 2000 X*************** X*** 1,4 **** X! #!/usr/bin/python X X ######################################################################## X # web2ldap X--- 1,4 ---- X! #!/usr/local/bin/python X X ######################################################################## X # web2ldap X*************** X*** 10,17 **** X import sys,os X X if os.name == 'posix': X! # For finding web2ldapcnf.py in /etc/web2ldap on Unix systems X! sys.path.append('/etc/web2ldap') X else: X # For finding web2ldapcnf.py in system dirs on Windows systems X for i in ['SystemRoot','windir']: X--- 10,17 ---- X import sys,os X X if os.name == 'posix': X! # For finding web2ldapcnf.py in /usr/local/web2ldap/etc/web2ldap on FreeBSD systems X! sys.path.append('/usr/local/web2ldap/etc/web2ldap') X else: X # For finding web2ldapcnf.py in system dirs on Windows systems X for i in ['SystemRoot','windir']: END-of-web2ldap/patches/patch-ad echo x - web2ldap/patches/patch-ae sed 's/^X//' >web2ldap/patches/patch-ae << 'END-of-web2ldap/patches/patch-ae' X*** etc/web2ldap/web2ldapcnf/misc.py.orig Sat Jul 22 02:26:08 2000 X--- etc/web2ldap/web2ldapcnf/misc.py Sat Jul 22 02:26:48 2000 X*************** X*** 4,10 **** X ######################################################################## X X # A list with directories containing additional Python modules X! pylibdirs = ['/usr/lib/web2ldap/pylib'] X X ######################################################################## X # HTTP-Options X--- 4,10 ---- X ######################################################################## X X # A list with directories containing additional Python modules X! pylibdirs = ['/usr/local/web2ldap/pylib'] X X ######################################################################## X # HTTP-Options END-of-web2ldap/patches/patch-ae echo x - web2ldap/patches/patch-af sed 's/^X//' >web2ldap/patches/patch-af << 'END-of-web2ldap/patches/patch-af' X*** etc/web2ldap/web2ldapcnf/standalone.py.orig Sat Jul 22 02:26:12 2000 X--- etc/web2ldap/web2ldapcnf/standalone.py Sat Jul 22 02:27:10 2000 X*************** X*** 13,22 **** X error_log = '/var/log/web2ldap/error_log' X X # Where static documents reside X! document_root = '/usr/lib/web2ldap/htdocs/' X X # Path name of mime.types file X! mime_types = '/etc/mime.types' X X # Contact mail address of the server admin when running stand-alone X server_admin = 'admin@web2ldap.de' X--- 13,22 ---- X error_log = '/var/log/web2ldap/error_log' X X # Where static documents reside X! document_root = '/usr/local/web2ldap/htdocs/' X X # Path name of mime.types file X! mime_types = '/usr/local/web2ldap/etc/mime.types' X X # Contact mail address of the server admin when running stand-alone X server_admin = 'admin@web2ldap.de' END-of-web2ldap/patches/patch-af exit >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?200007220058.CAA12595>