Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Feb 2002 02:31:52 +0100 (CET)
From:      Christian Brueffer <chris@unixpages.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/34985: New port: net/ldapdiff A utility to patch ldap directories
Message-ID:  <200202160131.g1G1Vqk90939@gondor.middleearth>

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

>Number:         34985
>Category:       ports
>Synopsis:       New port: net/ldapdiff A utility to patch ldap directories
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 15 17:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Christian Brueffer
>Release:        FreeBSD 4.5-STABLE i386
>Organization:
>Environment:
System: FreeBSD gondor.middleearth 4.5-STABLE FreeBSD 4.5-STABLE #12: Wed Jan 23 19:17:14 CET 2002 root@gondor.middleearth:/usr/obj/usr/src/sys/GONDOR i386


	
>Description:
	With ldapdiff it is possible to check every entry/attribute of
        an ldif file against a running ldap directory. 
        ldapdiff is able to produce ldif delta files which can be fed
        into tools like "ldapmodify", "ldapdelete" etc.
>How-To-Repeat:
	
>Fix:

	

--- ldapdiff-port begins here ---
# 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:
#
#	ldapdiff
#	ldapdiff/Makefile
#	ldapdiff/distinfo
#	ldapdiff/pkg-descr
#	ldapdiff/pkg-comment
#	ldapdiff/pkg-plist
#	ldapdiff/pkg-message
#
echo c - ldapdiff
mkdir -p ldapdiff > /dev/null 2>&1
echo x - ldapdiff/Makefile
sed 's/^X//' >ldapdiff/Makefile << 'END-of-ldapdiff/Makefile'
X# New ports collection makefile for:    ldapdiff
X# Date created:         15 February 2002
X# Whom:                 Christian Brueffer <chris@unixpages.org)
X#
X# $FreeBSD$
X#
X
XPORTNAME=       ldapdiff
XPORTVERSION=    0.7.0
XCATEGORIES=     net
XMASTER_SITES=   http://webtomware.rhoen.de/
X
XMAINTAINER=     chris@unixpages.org
X
XLIB_DEPENDS=    ldap.2:${PORTSDIR}/net/openldap2
X
XGNU_CONFIGURE=  yes
XCONFIGURE_ARGS= \
X				--prefix=${PREFIX} \
X				--with-ldap-dir=${PREFIX}
X
Xdo-install:
X		${INSTALL_PROGRAM} ${WRKSRC}/ldapdiff ${PREFIX}/bin
X		${INSTALL_DATA} ${WRKSRC}/ldapdiff.conf \
X			${PREFIX}/etc/ldapdiff.conf.sample
X		${MKDIR} ${DATADIR}/plugins
X		${INSTALL_DATA} ${WRKSRC}/plugins/ldapskeleton.c ${DATADIR}/plugins
X
X.if !defined(NOPORTDOCS)
X		${MKDIR} ${DOCSDIR}
X		${INSTALL_DATA} ${WRKSRC}/CHANGES ${DOCSDIR}
X		${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
X		${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
X		${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
X.endif
X
Xpost-install:
X		${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
END-of-ldapdiff/Makefile
echo x - ldapdiff/distinfo
sed 's/^X//' >ldapdiff/distinfo << 'END-of-ldapdiff/distinfo'
XMD5 (ldapdiff-0.7.0.tar.gz) = 72c5e8091a9d8df09523f7f046819037
END-of-ldapdiff/distinfo
echo x - ldapdiff/pkg-descr
sed 's/^X//' >ldapdiff/pkg-descr << 'END-of-ldapdiff/pkg-descr'
Xldapdiff combines "diff" and "patch" functionality in one application.
XThe difference is that ldapdiff is not designed for use on flat ascii
Xfiles, it is designed for "patching" ldap directories using ldif files.
X
XWith ldapdiff it is possible to check every entry/attribute of an ldif
Xfile against a running ldap directory. ldapdiff is able to produce ldif
Xdelta files in ldap version 3 format, which can be fed, into tools like
X"ldapmodify", "ldapdelete" etc. ldapdiff is also able to modify, delete
Xand add entries/attributes online.
X
XWWW: http://webtomware.rhoen.de/
X
X- Christian Brueffer
Xchris@unixpages.org
END-of-ldapdiff/pkg-descr
echo x - ldapdiff/pkg-comment
sed 's/^X//' >ldapdiff/pkg-comment << 'END-of-ldapdiff/pkg-comment'
XA utility for patching LDAP directories using LDIF files
END-of-ldapdiff/pkg-comment
echo x - ldapdiff/pkg-plist
sed 's/^X//' >ldapdiff/pkg-plist << 'END-of-ldapdiff/pkg-plist'
Xbin/ldapdiff
Xetc/ldapdiff.conf.sample
Xshare/ldapdiff/plugins/ldapskeleton.c
X%%PORTDOCS%%share/doc/ldapdiff/CHANGES
X%%PORTDOCS%%share/doc/ldapdiff/ChangeLog
X%%PORTDOCS%%share/doc/ldapdiff/README
X%%PORTDOCS%%share/doc/ldapdiff/TODO
X%%PORTDOCS%%@dirrm share/doc/ldapdiff
X@dirrm share/ldapdiff/plugins
X@dirrm share/ldapdiff
END-of-ldapdiff/pkg-plist
echo x - ldapdiff/pkg-message
sed 's/^X//' >ldapdiff/pkg-message << 'END-of-ldapdiff/pkg-message'
X
XWhen using ldapdiff, you have to start it with the -p option
Xin order to make it use the provided config file.
X
XExample: ldapdiff -p /usr/local/etc/ldapdiff.conf
X
XIf you want to make use of the plugin feature, put your
Xspecific code into ${PREFIX}/share/ldapdiff/plugins/skeleton.c
Xand compile it. Afterwards you have to adapt your config file
Xaccordingly.
X
END-of-ldapdiff/pkg-message
exit
--- ldapdiff-port 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?200202160131.g1G1Vqk90939>