Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 May 1998 22:33:35 +1000 (EST)
From:      lodea@angmar.mel.cybec.com.au
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/6604: New port: web500gw, an HTTP - LDAP gateway
Message-ID:  <199805121233.WAA16459@angmar.mel.cybec.com.au>

next in thread | raw e-mail | index | archive | help

>Number:         6604
>Category:       ports
>Synopsis:       New port: web500gw, an HTTP - LDAP gateway
>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:   Tue May 12 05:30:01 PDT 1998
>Last-Modified:
>Originator:     Lachlan O'Dea
>Organization:
Cybec Pty Ltd
>Release:        FreeBSD 2.2.6-STABLE i386
>Environment:

	

>Description:

I've made a port of web500gw, which is a gateway that connects WWW
browsers to LDAP directories. It requires the ldap-3.3 port to work.

This is my first attempt at making a port. I've done my best to
follow the handbook, so hopefully I've done a reasonable job of it.

More info on web500gw is available from:

http://www.tu-chemnitz.de/~fri/web500gw/

>How-To-Repeat:

	

>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:
#
#	web500gw
#	web500gw/Makefile
#	web500gw/pkg
#	web500gw/pkg/COMMENT
#	web500gw/pkg/DESCR
#	web500gw/pkg/PLIST
#	web500gw/patches
#	web500gw/patches/patch-ab
#	web500gw/patches/patch-aa
#	web500gw/files
#	web500gw/files/md5
#
echo c - web500gw
mkdir -p web500gw > /dev/null 2>&1
echo x - web500gw/Makefile
sed 's/^X//' >web500gw/Makefile << 'END-of-web500gw/Makefile'
X# New ports collection makefile for: web500gw
X# Version required:    2.1b2
X# Date created:        12 May 1998
X# Whom:                lod
X#
X# $Id$
X#
X
XDISTNAME=     web500gw-2.1b2
XCATEGORIES=   net
XMASTER_SITES= ftp://ftp.tu-chemnitz.de/pub/Local/urz/web500gw/
XEXTRACT_SUFX= .tgz
X
XMAINTAINER=   ulmo@earthling.net
X
XBUILD_DEPENDS= ${PREFIX}/lib/libldap.a:${PORTSDIR}/net/ldap \
X	${PREFIX}/include/ldap.h:${PORTSDIR}/net/ldap
X
Xpost-install:
X	strip ${PREFIX}/sbin/web500gw
X
XMAN8= web500gw.8
X
X.include <bsd.port.mk>
END-of-web500gw/Makefile
echo c - web500gw/pkg
mkdir -p web500gw/pkg > /dev/null 2>&1
echo x - web500gw/pkg/COMMENT
sed 's/^X//' >web500gw/pkg/COMMENT << 'END-of-web500gw/pkg/COMMENT'
XA WWW/HTTP to LDAP/X.500 gateway.
END-of-web500gw/pkg/COMMENT
echo x - web500gw/pkg/DESCR
sed 's/^X//' >web500gw/pkg/DESCR << 'END-of-web500gw/pkg/DESCR'
XFrom the web page:
X
XWeb500gw expects HTTP requests from a WWW browser on a TCP port (usually
X8888). Depending on the requested URL web500gw performs
Xread/search/modify/add requests to the Directory and sends HTML pages back
Xto the browser. Web500gw uses the LDAPv2 protocol to talk to a Directory
Xserver. It is able to work with a Standalone LDAP server (like UMich slapd
Xor Netscape LDAP product) and with an LDAP Frontend to an X.500 Directory
XSystem Agent.
X
XMore details are available at the web500gw web site:
X
Xhttp://www.tu-chemnitz.de/~fri/web500gw/
X
XThis port only works with the University Of Michigan LDAP 3.3
Ximplementation. Other implementations are supported by web500gw, but you'll
Xprobably have to make some changes to the Makefile to get it to work.
X
X- Lachlan O'Dea
Xulmo@earthling.net
END-of-web500gw/pkg/DESCR
echo x - web500gw/pkg/PLIST
sed 's/^X//' >web500gw/pkg/PLIST << 'END-of-web500gw/pkg/PLIST'
Xsbin/web500gw
Xman/man8/web500gw.8.gz
Xetc/web500/web500gw.conf
Xetc/web500/ldapfilter.conf
Xetc/web500/ldaptemplates.conf
Xetc/web500/ldapfriendly
Xetc/web500/ldapfriendly.de
Xetc/web500/web500gw.attr
Xetc/web500/web500gw.attr.de
Xetc/web500/web500gw.help
Xetc/web500/web500gw.help.de
Xetc/web500/web500gw.messages
Xetc/web500/web500gw.messages.de
END-of-web500gw/pkg/PLIST
echo c - web500gw/patches
mkdir -p web500gw/patches > /dev/null 2>&1
echo x - web500gw/patches/patch-ab
sed 's/^X//' >web500gw/patches/patch-ab << 'END-of-web500gw/patches/patch-ab'
X*** web500gw.h.orig	Tue May 12 19:01:54 1998
X--- web500gw.h	Tue May 12 19:03:49 1998
X***************
X*** 68,76 ****
X  #include <unistd.h>
X  #endif /* USE_SYSCONF */
X  
X! /* #if defined (__NetBSD__)
X  #include <unistd.h>
X! #endif */
X  
X  #include "messages.h"
X  extern char *msg[];
X--- 68,76 ----
X  #include <unistd.h>
X  #endif /* USE_SYSCONF */
X  
X! #if defined (BSD)
X  #include <unistd.h>
X! #endif
X  
X  #include "messages.h"
X  extern char *msg[];
END-of-web500gw/patches/patch-ab
echo x - web500gw/patches/patch-aa
sed 's/^X//' >web500gw/patches/patch-aa << 'END-of-web500gw/patches/patch-aa'
X*** Makefile.orig	Tue May 12 18:37:50 1998
X--- Makefile	Tue May 12 20:24:50 1998
X***************
X*** 3,16 ****
X  #-----------------------------------------------------------------------------
X  
X  # Where to install web500gw
X! INSTDIR = /usr/local/etc
X  
X  # Where to install the manual web500gw.8
X! MANDIR	= /usr/local/man/man8
X  
X  # ... and web500gw' config/help/message files
X  # It's recommended to use an own directory for it.
X! WEB500GWDIR	= $(INSTDIR)/web500
X  
X  # What language dependent files should be installed? 
X  # "" stands for english (default) versions
X--- 3,16 ----
X  #-----------------------------------------------------------------------------
X  
X  # Where to install web500gw
X! INSTDIR = ${PREFIX}/sbin
X  
X  # Where to install the manual web500gw.8
X! MANDIR	= ${PREFIX}/man/man8
X  
X  # ... and web500gw' config/help/message files
X  # It's recommended to use an own directory for it.
X! WEB500GWDIR	= ${PREFIX}/etc/web500
X  
X  # What language dependent files should be installed? 
X  # "" stands for english (default) versions
X***************
X*** 34,44 ****
X  ## If you use U-Mich LDAP 3.3 package (recommended)
X  # If the LDAP include files and libraries installed in standard places 
X  # (/usr/lib, /usr/include) use this:
X! LDAPINCL = 
X! LDAPLIBS = -lldap -llber
X  # set LDAPVERSION (32 for ldap-3.2, 33 for 3.3 etc)
X! LDAPVERSION = 33
X! VERSION = 3.3
X  
X  # To use LDAP include files and libraries from the LDAP source directory 
X  # use this:
X--- 34,44 ----
X  ## If you use U-Mich LDAP 3.3 package (recommended)
X  # If the LDAP include files and libraries installed in standard places 
X  # (/usr/lib, /usr/include) use this:
X! #LDAPINCL = 
X! #LDAPLIBS = -lldap -llber
X  # set LDAPVERSION (32 for ldap-3.2, 33 for 3.3 etc)
X! #LDAPVERSION = 33
X! #VERSION = 3.3
X  
X  # To use LDAP include files and libraries from the LDAP source directory 
X  # use this:
X***************
X*** 49,60 ****
X  #LDAPVERSION = `sed -e 's/\.//' $(LDAPDIR)/build/version`
X  #VERSION = `cat $(LDAPDIR)/build/version`
X  
X  # T.61 <-> ISO-8859-1 translation: This is built in from LDAP 3.2.
X  # If you didn't define this translation there comment out the following line:
X! STR_TRANSLATION = -DSTR_TRANSLATION
X  # If you defined LDAP_DEBUG there and want to enable LDAP debugging
X  # uncomment the following line:
X! LDAP_DEBUG = -DLDAP_DEBUG
X  
X  #################
X  ## If you have LDAP from an ISODE Consortium Release
X--- 49,66 ----
X  #LDAPVERSION = `sed -e 's/\.//' $(LDAPDIR)/build/version`
X  #VERSION = `cat $(LDAPDIR)/build/version`
X  
X+ # To use the U-Mich LDAP 3.3 include files from BSD PREFIX
X+ LDAPINCL = -I${PREFIX}/include
X+ LDAPLIBS = -L${PREFIX}/lib -lldap -llber
X+ LDAPVERSION = 33
X+ VERSION = 3.3
X+ 
X  # T.61 <-> ISO-8859-1 translation: This is built in from LDAP 3.2.
X  # If you didn't define this translation there comment out the following line:
X! #STR_TRANSLATION = -DSTR_TRANSLATION
X  # If you defined LDAP_DEBUG there and want to enable LDAP debugging
X  # uncomment the following line:
X! #LDAP_DEBUG = -DLDAP_DEBUG
X  
X  #################
X  ## If you have LDAP from an ISODE Consortium Release
X***************
X*** 69,75 ****
X  
X  # platform specific:
X  # Linux
X! PLATFORMCFLAGS= -Dlinux -DSYSV 
X  # Solaris 2
X  # PLATFORMCFLAGS= -Dsunos5
X  # PLATFORMLDFLAGS= -lsocket -lnsl
X--- 75,81 ----
X  
X  # platform specific:
X  # Linux
X! #PLATFORMCFLAGS= -Dlinux -DSYSV 
X  # Solaris 2
X  # PLATFORMCFLAGS= -Dsunos5
X  # PLATFORMLDFLAGS= -lsocket -lnsl
X***************
X*** 82,89 ****
X  # AIX
X  #PLATFORMCFLAGS= -Daix
X  # NetBSD:
X! #PLATFORMCFLAGS=
X! #PLATFORMLDFLAGS= -lcompat
X  
X  ALLDEFINES= $(PLATFORMCFLAGS) -I. $(LDAPINCL) $(DEFINES) \
X              -DWEB500GWDIR=\"$(WEB500GWDIR)\" -DLDAPVERSION=$(LDAPVERSION) \
X--- 88,95 ----
X  # AIX
X  #PLATFORMCFLAGS= -Daix
X  # NetBSD:
X! PLATFORMCFLAGS=
X! PLATFORMLDFLAGS= -lcompat
X  
X  ALLDEFINES= $(PLATFORMCFLAGS) -I. $(LDAPINCL) $(DEFINES) \
X              -DWEB500GWDIR=\"$(WEB500GWDIR)\" -DLDAPVERSION=$(LDAPVERSION) \
END-of-web500gw/patches/patch-aa
echo c - web500gw/files
mkdir -p web500gw/files > /dev/null 2>&1
echo x - web500gw/files/md5
sed 's/^X//' >web500gw/files/md5 << 'END-of-web500gw/files/md5'
XMD5 (web500gw-2.1b2.tgz) = 813eeac9eeaeb44b81a278dc407c877f
END-of-web500gw/files/md5
exit


>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?199805121233.WAA16459>