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 \ |