View | Details | Raw Unified | Return to bug 107476
Collapse All | Expand All

(-)ldapscripts/Makefile (-14 / +20 lines)
Lines 6-33 Link Here
6
#
6
#
7
7
8
PORTNAME=	ldapscripts
8
PORTNAME=	ldapscripts
9
PORTVERSION=	1.4
9
PORTVERSION=	1.5
10
CATEGORIES=	net
10
CATEGORIES=	net
11
MASTER_SITES=	http://contribs.martymac.com/ldapscripts/
11
MASTER_SITES=	http://contribs.martymac.com/ldapscripts/ \
12
				${MASTER_SITE_LOCAL}
12
EXTRACT_SUFX=	.tgz
13
EXTRACT_SUFX=	.tgz
13
14
14
MAINTAINER=	ganael.laplanche@martymac.com
15
MAINTAINER=	ganael.laplanche@martymac.com
15
COMMENT=	Scripts to manage posix accounts in an OpenLDAP directory
16
COMMENT=	Scripts to manage posix accounts in an OpenLDAP directory
16
17
17
RUN_DEPENDS=	ldapadd:${PORTSDIR}/net/openldap23-client \
18
NO_BUILD=	yes
18
		ldapsearch:${PORTSDIR}/net/openldap23-client \
19
19
		ldapdelete:${PORTSDIR}/net/openldap23-client \
20
WANT_OPENLDAP_VER?=	23
20
		ldapmodify:${PORTSDIR}/net/openldap23-client \
21
.if (${WANT_OPENLDAP_VER} != 21) && (${WANT_OPENLDAP_VER} != 22) && (${WANT_OPENLDAP_VER} != 23) && (${WANT_OPENLDAP_VER} != 24)
21
		ldapmodrdn:${PORTSDIR}/net/openldap23-client \
22
BROKEN=	Incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
22
		ldappasswd:${PORTSDIR}/net/openldap23-client
23
.endif
24
25
RUN_DEPENDS=	ldapadd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
26
		ldapsearch:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
27
		ldapdelete:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
28
		ldapmodify:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
29
		ldapmodrdn:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
30
		ldappasswd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
23
31
24
MANLANG=	""
32
MANLANG=	""
25
MANCOMPRESSED=	no
33
MANCOMPRESSED=	no
26
MAN1=		ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \
34
MAN1=	ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \
27
		ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \
35
		ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \
28
		ldaprenameuser.1 ldapsetprimarygroup.1 _lsldap.1 _ldaprenamemachine.1 \
36
		ldaprenameuser.1 ldapsetprimarygroup.1 _lsldap.1 _ldaprenamemachine.1 \
29
		_ldaprenamegroup.1 _ldapinit.1 _ldapdeletemachine.1
37
		_ldaprenamegroup.1 _ldapinit.1 _ldapdeletemachine.1 _ldappasswd.1
30
MAN5=		ldapscripts.5
38
MAN5=	ldapscripts.5
31
39
32
# Change /etc to ${LOCALBASE}/etc
40
# Change /etc to ${LOCALBASE}/etc
33
post-patch:
41
post-patch:
Lines 41-49 Link Here
41
	${REINPLACE_CMD} -E -e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf
49
	${REINPLACE_CMD} -E -e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf
42
	${REINPLACE_CMD} -E -e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf
50
	${REINPLACE_CMD} -E -e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf
43
51
44
# We do not use any Makefile
45
do-build:
46
47
# Just copy the scripts
52
# Just copy the scripts
48
do-install:
53
do-install:
49
	${CP} ${WRKSRC}/bin/_ldapdeletemachine ${PREFIX}/bin
54
	${CP} ${WRKSRC}/bin/_ldapdeletemachine ${PREFIX}/bin
Lines 60-65 Link Here
60
	${CP} ${WRKSRC}/bin/ldaprenameuser ${PREFIX}/bin
65
	${CP} ${WRKSRC}/bin/ldaprenameuser ${PREFIX}/bin
61
	${CP} ${WRKSRC}/bin/_ldaprenamegroup ${PREFIX}/bin
66
	${CP} ${WRKSRC}/bin/_ldaprenamegroup ${PREFIX}/bin
62
	${CP} ${WRKSRC}/bin/_ldaprenamemachine ${PREFIX}/bin
67
	${CP} ${WRKSRC}/bin/_ldaprenamemachine ${PREFIX}/bin
68
	${CP} ${WRKSRC}/bin/_ldappasswd ${PREFIX}/bin
63
69
64
	${MKDIR} ${LOCALBASE}/etc/ldapscripts
70
	${MKDIR} ${LOCALBASE}/etc/ldapscripts
65
	if [ -f ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ]; then \
71
	if [ -f ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ]; then \
(-)ldapscripts/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (ldapscripts-1.4.tgz) = 3e063297a5188922803a451cdbf7dd61
1
MD5 (ldapscripts-1.5.tgz) = b1afcc87fab632ea5ad75ca1971c9971
2
SHA256 (ldapscripts-1.4.tgz) = 472173f895c60bad047fe84f1b64638f20a291c0aed3a3da9de601f54d5ab7a5
2
SHA256 (ldapscripts-1.5.tgz) = 22ee9be675d3a3a529a92ae6ab16bd0727fa8cf06c9bdb90eac4394f57d2eddc
3
SIZE (ldapscripts-1.4.tgz) = 18812
3
SIZE (ldapscripts-1.5.tgz) = 20357
(-)ldapscripts/pkg-plist (+1 lines)
Lines 20-22 Link Here
20
bin/ldaprenameuser
20
bin/ldaprenameuser
21
bin/_ldaprenamemachine
21
bin/_ldaprenamemachine
22
bin/_ldaprenamegroup
22
bin/_ldaprenamegroup
23
bin/_ldappasswd

Return to bug 107476