diff options
author | bsam <bsam@FreeBSD.org> | 2007-01-04 01:51:54 +0800 |
---|---|---|
committer | bsam <bsam@FreeBSD.org> | 2007-01-04 01:51:54 +0800 |
commit | b38a55e64fef4c3fb9a26ddfe01824f60d0fa522 (patch) | |
tree | 07c79b648f986303c2dde4c2323fdf7f385e7c69 /net/ldapscripts | |
parent | 295ef8690773646f7ba704af8477f184d1894ed0 (diff) | |
download | freebsd-ports-gnome-b38a55e64fef4c3fb9a26ddfe01824f60d0fa522.tar.gz freebsd-ports-gnome-b38a55e64fef4c3fb9a26ddfe01824f60d0fa522.tar.zst freebsd-ports-gnome-b38a55e64fef4c3fb9a26ddfe01824f60d0fa522.zip |
Update ldapscripts to v1.5. CHANGELOG :
2007/01/03 : ldapscripts 1.5
- Fixed typos (thanks to Mikael Lammentausta)
- Small fixes to the install script
- ldapadduser : use $_UID instead of $_USER while chown'ing homedir (thanks to Mikael Lammentausta)
- ldapadduser : new option to ask for the gecos (thanks to Mikael Lammentausta)
- ldapadduser : new option to copy skeleton files to home directories (thanks to Mikael Lammentausta)
- ldapadduser : now skip user's home dir creation if it already exists
- ldapadduser/ldapaddmachine : modified account description attributes : set to 'User account' or 'Machine account'
- ldapadduser/ldapaddgroup/ldapaddmachine : use $_USER and $_GROUP instead of $1 when possible
- New _ldappasswd script to modify a user's password (suggested by Mikael Lammentausta)
PR: 107476
Submitted by: Ganael LAPLANCHE <martymac at martymac.com> (maintainer)
Diffstat (limited to 'net/ldapscripts')
-rw-r--r-- | net/ldapscripts/Makefile | 34 | ||||
-rw-r--r-- | net/ldapscripts/distinfo | 6 | ||||
-rw-r--r-- | net/ldapscripts/pkg-plist | 1 |
3 files changed, 24 insertions, 17 deletions
diff --git a/net/ldapscripts/Makefile b/net/ldapscripts/Makefile index 28f7a59e3481..36ba84ac37dc 100644 --- a/net/ldapscripts/Makefile +++ b/net/ldapscripts/Makefile @@ -6,28 +6,36 @@ # PORTNAME= ldapscripts -PORTVERSION= 1.4 +PORTVERSION= 1.5 CATEGORIES= net -MASTER_SITES= http://contribs.martymac.com/ldapscripts/ +MASTER_SITES= http://contribs.martymac.com/ldapscripts/ \ + ${MASTER_SITE_LOCAL} EXTRACT_SUFX= .tgz MAINTAINER= ganael.laplanche@martymac.com COMMENT= Scripts to manage posix accounts in an OpenLDAP directory -RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap23-client \ - ldapsearch:${PORTSDIR}/net/openldap23-client \ - ldapdelete:${PORTSDIR}/net/openldap23-client \ - ldapmodify:${PORTSDIR}/net/openldap23-client \ - ldapmodrdn:${PORTSDIR}/net/openldap23-client \ - ldappasswd:${PORTSDIR}/net/openldap23-client +NO_BUILD= yes + +WANT_OPENLDAP_VER?= 23 +.if (${WANT_OPENLDAP_VER} != 21) && (${WANT_OPENLDAP_VER} != 22) && (${WANT_OPENLDAP_VER} != 23) && (${WANT_OPENLDAP_VER} != 24) +BROKEN= Incompatible OpenLDAP version: ${WANT_OPENLDAP_VER} +.endif + +RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \ + ldapsearch:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \ + ldapdelete:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \ + ldapmodify:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \ + ldapmodrdn:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \ + ldappasswd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client MANLANG= "" MANCOMPRESSED= no -MAN1= ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \ +MAN1= ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \ ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \ ldaprenameuser.1 ldapsetprimarygroup.1 _lsldap.1 _ldaprenamemachine.1 \ - _ldaprenamegroup.1 _ldapinit.1 _ldapdeletemachine.1 -MAN5= ldapscripts.5 + _ldaprenamegroup.1 _ldapinit.1 _ldapdeletemachine.1 _ldappasswd.1 +MAN5= ldapscripts.5 # Change /etc to ${LOCALBASE}/etc post-patch: @@ -41,9 +49,6 @@ post-patch: ${REINPLACE_CMD} -E -e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf ${REINPLACE_CMD} -E -e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf -# We do not use any Makefile -do-build: - # Just copy the scripts do-install: ${CP} ${WRKSRC}/bin/_ldapdeletemachine ${PREFIX}/bin @@ -60,6 +65,7 @@ do-install: ${CP} ${WRKSRC}/bin/ldaprenameuser ${PREFIX}/bin ${CP} ${WRKSRC}/bin/_ldaprenamegroup ${PREFIX}/bin ${CP} ${WRKSRC}/bin/_ldaprenamemachine ${PREFIX}/bin + ${CP} ${WRKSRC}/bin/_ldappasswd ${PREFIX}/bin ${MKDIR} ${LOCALBASE}/etc/ldapscripts if [ -f ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ]; then \ diff --git a/net/ldapscripts/distinfo b/net/ldapscripts/distinfo index 7818bf977393..3b029acb536a 100644 --- a/net/ldapscripts/distinfo +++ b/net/ldapscripts/distinfo @@ -1,3 +1,3 @@ -MD5 (ldapscripts-1.4.tgz) = 3e063297a5188922803a451cdbf7dd61 -SHA256 (ldapscripts-1.4.tgz) = 472173f895c60bad047fe84f1b64638f20a291c0aed3a3da9de601f54d5ab7a5 -SIZE (ldapscripts-1.4.tgz) = 18812 +MD5 (ldapscripts-1.5.tgz) = b1afcc87fab632ea5ad75ca1971c9971 +SHA256 (ldapscripts-1.5.tgz) = 22ee9be675d3a3a529a92ae6ab16bd0727fa8cf06c9bdb90eac4394f57d2eddc +SIZE (ldapscripts-1.5.tgz) = 20357 diff --git a/net/ldapscripts/pkg-plist b/net/ldapscripts/pkg-plist index 06e6a9dc3f4a..394e12cb3e74 100644 --- a/net/ldapscripts/pkg-plist +++ b/net/ldapscripts/pkg-plist @@ -20,3 +20,4 @@ bin/ldapsetprimarygroup bin/ldaprenameuser bin/_ldaprenamemachine bin/_ldaprenamegroup +bin/_ldappasswd |