diff options
author | edwin <edwin@FreeBSD.org> | 2005-10-17 08:10:24 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2005-10-17 08:10:24 +0800 |
commit | fe1157c7b2c95b51da4430e32e7515d4a60777a3 (patch) | |
tree | fd40151aa5c3a3058909bd22964700fc705eb858 /net/ldapscripts | |
parent | 383168e4a9e4af2df00f750794b6ee1e0fe0502d (diff) | |
download | freebsd-ports-gnome-fe1157c7b2c95b51da4430e32e7515d4a60777a3.tar.gz freebsd-ports-gnome-fe1157c7b2c95b51da4430e32e7515d4a60777a3.tar.zst freebsd-ports-gnome-fe1157c7b2c95b51da4430e32e7515d4a60777a3.zip |
[NEW PORT] net/ldapscripts
The ldapscripts are simple shell scripts that allow to manage
POSIX accounts (users, groups, machines) in an LDAP directory.
They can be used as independent tools or within Samba configuration
to manage POSIX parts of the LDAP accounts. See README for more
details.
PR: ports/86795
Submitted by: Ganael Laplanche <ganael.laplanche@martymac.com>
Diffstat (limited to 'net/ldapscripts')
-rw-r--r-- | net/ldapscripts/Makefile | 61 | ||||
-rw-r--r-- | net/ldapscripts/distinfo | 2 | ||||
-rw-r--r-- | net/ldapscripts/pkg-descr | 7 | ||||
-rw-r--r-- | net/ldapscripts/pkg-plist | 18 |
4 files changed, 88 insertions, 0 deletions
diff --git a/net/ldapscripts/Makefile b/net/ldapscripts/Makefile new file mode 100644 index 000000000000..0af58bc5c259 --- /dev/null +++ b/net/ldapscripts/Makefile @@ -0,0 +1,61 @@ +# New ports collection makefile for: ldapscripts +# Date created: Sat Oct 01 09:30:00 UTC 2003 +# Whom: Ganael LAPLANCHE <ganael.laplanche@martymac.com> +# +# $FreeBSD$ +# + +PORTNAME= ldapscripts +PORTVERSION= 1.3 +CATEGORIES= net +MASTER_SITES= http://contribs.martymac.com/ldapscripts/ +EXTRACT_SUFX= .tgz + +MAINTAINER= ganael.laplanche@martymac.com +COMMENT= Scripts to manage posix accounts in an OpenLDAP directory + +RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap23-server \ + ldapsearch:${PORTSDIR}/net/openldap23-server \ + ldapdelete:${PORTSDIR}/net/openldap23-server \ + ldapmodify:${PORTSDIR}/net/openldap23-server \ + slappasswd:${PORTSDIR}/net/openldap23-server + +USE_REINPLACE= yes + +# Change /etc to ${LOCALBASE}/etc +post-patch: +.for file in _ldapdeletemachine _ldapinit _lsldap ldapaddgroup ldapadduser ldapdeletegroup \ + ldapdeleteuserfromgroup ldapsetprimarygroup ldapaddmachine ldapaddusertogroup ldapdeleteuser \ + ldapscripts.conf runtime README CHANGELOG COPYING VERSION + ${REINPLACE_CMD} -E -e "s|/etc/ldapscripts|${LOCALBASE}/etc/ldapscripts|g" ${WRKSRC}/${file} +.endfor + +# We do not use any Makefile +do-build: + +# Just copy the scripts +do-install: + ${CP} ${WRKSRC}/_ldapdeletemachine ${PREFIX}/bin + ${CP} ${WRKSRC}/_ldapinit ${PREFIX}/bin + ${CP} ${WRKSRC}/_lsldap ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapaddgroup ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapadduser ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapdeletegroup ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapdeleteuserfromgroup ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapsetprimarygroup ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapaddmachine ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapaddusertogroup ${PREFIX}/bin + ${CP} ${WRKSRC}/ldapdeleteuser ${PREFIX}/bin + + ${MKDIR} ${LOCALBASE}/etc/ldapscripts + if [ -f ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ]; then \ + ${CP} ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf.old; \ + fi + ${CP} ${WRKSRC}/ldapscripts.conf ${LOCALBASE}/etc/ldapscripts + ${CP} ${WRKSRC}/runtime ${LOCALBASE}/etc/ldapscripts + ${CP} ${WRKSRC}/README ${LOCALBASE}/etc/ldapscripts + ${CP} ${WRKSRC}/CHANGELOG ${LOCALBASE}/etc/ldapscripts + ${CP} ${WRKSRC}/COPYING ${LOCALBASE}/etc/ldapscripts + ${CP} ${WRKSRC}/VERSION ${LOCALBASE}/etc/ldapscripts + +.include <bsd.port.mk> diff --git a/net/ldapscripts/distinfo b/net/ldapscripts/distinfo new file mode 100644 index 000000000000..673d2e1efb59 --- /dev/null +++ b/net/ldapscripts/distinfo @@ -0,0 +1,2 @@ +MD5 (ldapscripts-1.3.tgz) = ba297b68e199c222f2971249561bcc6d +SIZE (ldapscripts-1.3.tgz) = 14292 diff --git a/net/ldapscripts/pkg-descr b/net/ldapscripts/pkg-descr new file mode 100644 index 000000000000..58748a78c9e8 --- /dev/null +++ b/net/ldapscripts/pkg-descr @@ -0,0 +1,7 @@ +Ldapscripts + +The ldapscripts allow to easily manage POSIX accounts (users, groups, machines) +in an LDAP directory. They can be used independently as shell commands or within +Samba's configuration. See README for more details. + +WWW: http://contribs.martymac.com diff --git a/net/ldapscripts/pkg-plist b/net/ldapscripts/pkg-plist new file mode 100644 index 000000000000..5df1cff48cef --- /dev/null +++ b/net/ldapscripts/pkg-plist @@ -0,0 +1,18 @@ +etc/ldapscripts/ldapscripts.conf +etc/ldapscripts/runtime +etc/ldapscripts/README +etc/ldapscripts/CHANGELOG +etc/ldapscripts/COPYING +etc/ldapscripts/VERSION +@unexec rmdir %D/etc/ldapscripts 2>/dev/null || true +bin/_ldapdeletemachine +bin/_ldapinit +bin/_lsldap +bin/ldapaddgroup +bin/ldapaddmachine +bin/ldapadduser +bin/ldapaddusertogroup +bin/ldapdeletegroup +bin/ldapdeleteuser +bin/ldapdeleteuserfromgroup +bin/ldapsetprimarygroup |