1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00

HTTP gateway to LDAP-based directories.

PR:		ports/7447
Submitted by:	Brent J. Nordquist <bjn@visi.com>
This commit is contained in:
Jacques Vidrine 1998-07-31 18:47:37 +00:00
parent 9a6168a1b8
commit ad9176e5cf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=12228
6 changed files with 174 additions and 0 deletions

36
www/web500gw/Makefile Normal file
View File

@ -0,0 +1,36 @@
# New ports collection makefile for: web500gw
# Version required: 2.1b2
# Date created: 30 July 1998
# Whom: Brent J. Nordquist <bjn@visi.com>
#
# $Id$
#
DISTNAME= web500gw-2.1b2
CATEGORIES= www net
MASTER_SITES= ftp://ftp.tu-chemnitz.de/pub/Local/urz/web500gw/ \
http://www.tu-chemnitz.de/ftp-home/pub/Local/urz/web500gw/
EXTRACT_SUFX= .tgz
MAINTAINER= bjn@visi.com
BUILD_DEPENDS= ${PREFIX}/lib/libldap.a:${PORTSDIR}/net/ldap
RUN_DEPENDS= ${INSTDIR}:${PORTSDIR}/www/apache12
INSTDIR= ${PREFIX}/www/cgi-bin
MAKE_ENV+= PLATFORMCFLAGS="${CFLAGS} -DUSE_SYSCONF" \
INSTDIR=${INSTDIR} \
WEB500GWDIR=${WEB500GWDIR} \
MANDIR=${MANPREFIX}/man/man8 \
INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_DATA="${INSTALL_DATA}" \
INSTALL_MAN="${INSTALL_MAN}"
MAN8= web500gw.8
WEB500GWDIR= ${PREFIX}/etc/web500gw
post-install:
strip ${INSTDIR}/web500gw
.include <bsd.port.mk>

1
www/web500gw/distinfo Normal file
View File

@ -0,0 +1 @@
MD5 (web500gw-2.1b2.tgz) = 813eeac9eeaeb44b81a278dc407c877f

108
www/web500gw/files/patch-aa Normal file
View File

@ -0,0 +1,108 @@
--- Makefile.orig Fri Mar 13 08:12:44 1998
+++ Makefile Thu Jul 30 06:40:39 1998
@@ -3,14 +3,14 @@
#-----------------------------------------------------------------------------
# Where to install web500gw
-INSTDIR = /usr/local/etc
+#INSTDIR = /usr/local/www/cgi-bin
# Where to install the manual web500gw.8
-MANDIR = /usr/local/man/man8
+#MANDIR = /usr/local/man/man8
# ... and web500gw' config/help/message files
# It's recommended to use an own directory for it.
-WEB500GWDIR = $(INSTDIR)/web500
+#WEB500GWDIR = /usr/local/etc/web500gw
# What language dependent files should be installed?
# "" stands for english (default) versions
@@ -34,8 +34,9 @@
## If you use U-Mich LDAP 3.3 package (recommended)
# If the LDAP include files and libraries installed in standard places
# (/usr/lib, /usr/include) use this:
-LDAPINCL =
-LDAPLIBS = -lldap -llber
+LDAPDIR = /usr/local
+LDAPINCL = -I$(LDAPDIR)/include
+LDAPLIBS = -L$(LDAPDIR)/lib -lldap -llber
# set LDAPVERSION (32 for ldap-3.2, 33 for 3.3 etc)
LDAPVERSION = 33
VERSION = 3.3
@@ -51,7 +52,7 @@
# T.61 <-> ISO-8859-1 translation: This is built in from LDAP 3.2.
# If you didn't define this translation there comment out the following line:
-STR_TRANSLATION = -DSTR_TRANSLATION
+#STR_TRANSLATION = -DSTR_TRANSLATION
# If you defined LDAP_DEBUG there and want to enable LDAP debugging
# uncomment the following line:
LDAP_DEBUG = -DLDAP_DEBUG
@@ -69,7 +70,7 @@
# platform specific:
# Linux
-PLATFORMCFLAGS= -Dlinux -DSYSV
+#PLATFORMCFLAGS= -Dlinux -DSYSV
# Solaris 2
# PLATFORMCFLAGS= -Dsunos5
# PLATFORMLDFLAGS= -lsocket -lnsl
@@ -92,7 +93,7 @@
# when using gcc:
CC = gcc
# WARN = -Wall -Wno-implicit
-CFLAGS = -O4 $(WARN) $(ALLDEFINES) -fpcc-struct-return -fwritable-strings
+CFLAGS = $(WARN) $(ALLDEFINES) -fpcc-struct-return -fwritable-strings
#CFLAGS = -g $(WARN) $(ALLDEFINES) -fpcc-struct-return -fwritable-strings
# or cc:
@@ -105,7 +106,7 @@
# ALDFLAGS are always passed to ld
ALDFLAGS = $(PLATFORMLDFLAGS)
-INSTALL = util/install.sh
+#INSTALL = util/install.sh
MKDIR = mkdir
# LIBEFENCE = -lefence
@@ -149,30 +150,30 @@
$(INSTDIR)/web500gw: web500gw
@echo ""
@echo "Installing web500gw to $(INSTDIR)"
- $(INSTALL) $(INSTALLFLAGS) -m 755 web500gw $(INSTDIR)
+ $(INSTALL_PROGRAM) web500gw $(INSTDIR)
@echo "... done!"
install-etc:;
@echo ""
@if [ ! -d $(WEB500GWDIR) ]; then $(MKDIR) -p $(WEB500GWDIR); fi
@echo "Installing web500gw config/help/message files to $(WEB500GWDIR)"
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/web500gw.conf $(WEB500GWDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/ldapfilter.conf $(WEB500GWDIR)
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/ldaptemplates.conf $(WEB500GWDIR)
+ $(INSTALL_DATA) etc/web500gw.conf $(WEB500GWDIR)/sample.web500gw.conf
+ $(INSTALL_DATA) etc/ldapfilter.conf $(WEB500GWDIR)/sample.ldapfilter.conf
+ $(INSTALL_DATA) etc/ldaptemplates.conf $(WEB500GWDIR)/sample.ldaptemplates.conf
@for i in $(SUFFIX); do \
if [ "x$$i" = "x" ]; then echo " english"; SUFF="";\
else echo " $$i"; SUFF=".$$i"; fi; \
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/web500gw.help$$SUFF $(WEB500GWDIR); \
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/web500gw.messages$$SUFF $(WEB500GWDIR); \
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/web500gw.attr$$SUFF $(WEB500GWDIR); \
- $(INSTALL) $(INSTALLFLAGS) -m 644 etc/ldapfriendly$$SUFF $(WEB500GWDIR); \
+ $(INSTALL_DATA) etc/web500gw.help$$SUFF $(WEB500GWDIR); \
+ $(INSTALL_DATA) etc/web500gw.messages$$SUFF $(WEB500GWDIR); \
+ $(INSTALL_DATA) etc/web500gw.attr$$SUFF $(WEB500GWDIR); \
+ $(INSTALL_DATA) etc/ldapfriendly$$SUFF $(WEB500GWDIR); \
done;
@echo "... done!"
install-man:;
@echo ""
@echo "Installing web500gw.8 to $(MANDIR)"
- $(INSTALL) $(INSTALLFLAGS) -m 644 doc/web500gw.8 $(MANDIR)
+ $(INSTALL_MAN) doc/web500gw.8 $(MANDIR)
@echo "... done!"
lint:;

1
www/web500gw/pkg-comment Normal file
View File

@ -0,0 +1 @@
HTTP gateway to LDAP-based directories.

15
www/web500gw/pkg-descr Normal file
View File

@ -0,0 +1,15 @@
This is an HTTP-to-LDAP gateway:
-------- ----------------- -------- ( --------
| WWW | | WWWeb to | LDAP | | LDAP |( | X.500 |
|Browser |<- HTTP ->| LDAP g/w | API |<- LDAP ->| server |(- DAP ->| server |
|________| |__________|______| |________|( |________|
web500gw ldapd (
Check online documentation at: http://www.tu-chemnitz.de/web500gw/
Author: Frank.Richter@hrz.tu-chemnitz.de
Port to FreeBSD by
Brent J. Nordquist <bjn@visi.com>
Thu Jul 30 1998

13
www/web500gw/pkg-plist Normal file
View File

@ -0,0 +1,13 @@
etc/web500gw/ldapfriendly
etc/web500gw/ldapfriendly.de
etc/web500gw/sample.ldapfilter.conf
etc/web500gw/sample.ldaptemplates.conf
etc/web500gw/sample.web500gw.conf
etc/web500gw/web500gw.attr
etc/web500gw/web500gw.attr.de
etc/web500gw/web500gw.help
etc/web500gw/web500gw.help.de
etc/web500gw/web500gw.messages
etc/web500gw/web500gw.messages.de
man/man8/web500gw.8.gz
www/cgi-bin/web500gw