Lines 6-12
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= ldapscripts |
8 |
PORTNAME= ldapscripts |
9 |
PORTVERSION= 1.3 |
9 |
PORTVERSION= 1.4 |
10 |
CATEGORIES= net |
10 |
CATEGORIES= net |
11 |
MASTER_SITES= http://contribs.martymac.com/ldapscripts/ |
11 |
MASTER_SITES= http://contribs.martymac.com/ldapscripts/ |
12 |
EXTRACT_SUFX= .tgz |
12 |
EXTRACT_SUFX= .tgz |
Lines 14-61
Link Here
|
14 |
MAINTAINER= ganael.laplanche@martymac.com |
14 |
MAINTAINER= ganael.laplanche@martymac.com |
15 |
COMMENT= Scripts to manage posix accounts in an OpenLDAP directory |
15 |
COMMENT= Scripts to manage posix accounts in an OpenLDAP directory |
16 |
|
16 |
|
17 |
RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap23-server \ |
17 |
RUN_DEPENDS= ldapadd:${PORTSDIR}/net/openldap23-client \ |
18 |
ldapsearch:${PORTSDIR}/net/openldap23-server \ |
18 |
ldapsearch:${PORTSDIR}/net/openldap23-client \ |
19 |
ldapdelete:${PORTSDIR}/net/openldap23-server \ |
19 |
ldapdelete:${PORTSDIR}/net/openldap23-client \ |
20 |
ldapmodify:${PORTSDIR}/net/openldap23-server \ |
20 |
ldapmodify:${PORTSDIR}/net/openldap23-client \ |
21 |
slappasswd:${PORTSDIR}/net/openldap23-server |
21 |
ldapmodrdn:${PORTSDIR}/net/openldap23-client \ |
|
|
22 |
ldappasswd:${PORTSDIR}/net/openldap23-client |
22 |
|
23 |
|
23 |
USE_REINPLACE= yes |
24 |
USE_REINPLACE= yes |
24 |
|
25 |
|
|
|
26 |
MANLANG= "" |
27 |
MANCOMPRESSED= no |
28 |
MAN1+= ldapaddgroup.1 |
29 |
MAN1+= ldapaddmachine.1 |
30 |
MAN1+= ldapadduser.1 |
31 |
MAN1+= ldapaddusertogroup.1 |
32 |
MAN1+= ldapdeletegroup.1 |
33 |
MAN1+= ldapdeleteuser.1 |
34 |
MAN1+= ldapdeleteuserfromgroup.1 |
35 |
MAN1+= ldaprenameuser.1 |
36 |
MAN1+= ldapsetprimarygroup.1 |
37 |
MAN1+= _lsldap.1 |
38 |
MAN1+= _ldaprenamemachine.1 |
39 |
MAN1+= _ldaprenamegroup.1 |
40 |
MAN1+= _ldapinit.1 |
41 |
MAN1+= _ldapdeletemachine.1 |
42 |
MAN5+= ldapscripts.5 |
43 |
|
25 |
# Change /etc to ${LOCALBASE}/etc |
44 |
# Change /etc to ${LOCALBASE}/etc |
26 |
post-patch: |
45 |
post-patch: |
27 |
.for file in _ldapdeletemachine _ldapinit _lsldap ldapaddgroup ldapadduser ldapdeletegroup \ |
46 |
${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${LOCALBASE}/etc/ldapscripts/runtime\"|g" ${WRKSRC}/bin/* |
28 |
ldapdeleteuserfromgroup ldapsetprimarygroup ldapaddmachine ldapaddusertogroup ldapdeleteuser \ |
47 |
${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${LOCALBASE}/etc/ldapscripts/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime |
29 |
ldapscripts.conf runtime README CHANGELOG COPYING VERSION |
48 |
|
30 |
${REINPLACE_CMD} -E -e "s|/etc/ldapscripts|${LOCALBASE}/etc/ldapscripts|g" ${WRKSRC}/${file} |
49 |
${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${LOCALBASE}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf |
31 |
.endfor |
50 |
${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${LOCALBASE}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf |
|
|
51 |
${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${LOCALBASE}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf |
52 |
${REINPLACE_CMD} -E -e "s|^LDAPMODIFYBIN=.*|LDAPMODIFYBIN=\"${LOCALBASE}/bin/ldapmodify\"|g" ${WRKSRC}/etc/ldapscripts.conf |
53 |
${REINPLACE_CMD} -E -e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf |
54 |
${REINPLACE_CMD} -E -e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf |
32 |
|
55 |
|
33 |
# We do not use any Makefile |
56 |
# We do not use any Makefile |
34 |
do-build: |
57 |
do-build: |
35 |
|
58 |
|
36 |
# Just copy the scripts |
59 |
# Just copy the scripts |
37 |
do-install: |
60 |
do-install: |
38 |
${CP} ${WRKSRC}/_ldapdeletemachine ${PREFIX}/bin |
61 |
${CP} ${WRKSRC}/bin/_ldapdeletemachine ${PREFIX}/bin |
39 |
${CP} ${WRKSRC}/_ldapinit ${PREFIX}/bin |
62 |
${CP} ${WRKSRC}/bin/_ldapinit ${PREFIX}/bin |
40 |
${CP} ${WRKSRC}/_lsldap ${PREFIX}/bin |
63 |
${CP} ${WRKSRC}/bin/_lsldap ${PREFIX}/bin |
41 |
${CP} ${WRKSRC}/ldapaddgroup ${PREFIX}/bin |
64 |
${CP} ${WRKSRC}/bin/ldapaddgroup ${PREFIX}/bin |
42 |
${CP} ${WRKSRC}/ldapadduser ${PREFIX}/bin |
65 |
${CP} ${WRKSRC}/bin/ldapadduser ${PREFIX}/bin |
43 |
${CP} ${WRKSRC}/ldapdeletegroup ${PREFIX}/bin |
66 |
${CP} ${WRKSRC}/bin/ldapdeletegroup ${PREFIX}/bin |
44 |
${CP} ${WRKSRC}/ldapdeleteuserfromgroup ${PREFIX}/bin |
67 |
${CP} ${WRKSRC}/bin/ldapdeleteuserfromgroup ${PREFIX}/bin |
45 |
${CP} ${WRKSRC}/ldapsetprimarygroup ${PREFIX}/bin |
68 |
${CP} ${WRKSRC}/bin/ldapsetprimarygroup ${PREFIX}/bin |
46 |
${CP} ${WRKSRC}/ldapaddmachine ${PREFIX}/bin |
69 |
${CP} ${WRKSRC}/bin/ldapaddmachine ${PREFIX}/bin |
47 |
${CP} ${WRKSRC}/ldapaddusertogroup ${PREFIX}/bin |
70 |
${CP} ${WRKSRC}/bin/ldapaddusertogroup ${PREFIX}/bin |
48 |
${CP} ${WRKSRC}/ldapdeleteuser ${PREFIX}/bin |
71 |
${CP} ${WRKSRC}/bin/ldapdeleteuser ${PREFIX}/bin |
|
|
72 |
${CP} ${WRKSRC}/bin/ldaprenameuser ${PREFIX}/bin |
73 |
${CP} ${WRKSRC}/bin/_ldaprenamegroup ${PREFIX}/bin |
74 |
${CP} ${WRKSRC}/bin/_ldaprenamemachine ${PREFIX}/bin |
49 |
|
75 |
|
50 |
${MKDIR} ${LOCALBASE}/etc/ldapscripts |
76 |
${MKDIR} ${LOCALBASE}/etc/ldapscripts |
51 |
if [ -f ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ]; then \ |
77 |
if [ -f ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ]; then \ |
52 |
${CP} ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf.old; \ |
78 |
${CP} ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf ${LOCALBASE}/etc/ldapscripts/ldapscripts.conf.old; \ |
53 |
fi |
79 |
fi |
54 |
${CP} ${WRKSRC}/ldapscripts.conf ${LOCALBASE}/etc/ldapscripts |
80 |
${CP} ${WRKSRC}/etc/ldapscripts.conf ${LOCALBASE}/etc/ldapscripts |
55 |
${CP} ${WRKSRC}/runtime ${LOCALBASE}/etc/ldapscripts |
81 |
${CP} ${WRKSRC}/etc/runtime ${LOCALBASE}/etc/ldapscripts |
56 |
${CP} ${WRKSRC}/README ${LOCALBASE}/etc/ldapscripts |
82 |
${CP} ${WRKSRC}/README ${LOCALBASE}/etc/ldapscripts |
57 |
${CP} ${WRKSRC}/CHANGELOG ${LOCALBASE}/etc/ldapscripts |
83 |
${CP} ${WRKSRC}/CHANGELOG ${LOCALBASE}/etc/ldapscripts |
58 |
${CP} ${WRKSRC}/COPYING ${LOCALBASE}/etc/ldapscripts |
84 |
${CP} ${WRKSRC}/COPYING ${LOCALBASE}/etc/ldapscripts |
59 |
${CP} ${WRKSRC}/VERSION ${LOCALBASE}/etc/ldapscripts |
85 |
${CP} ${WRKSRC}/VERSION ${LOCALBASE}/etc/ldapscripts |
|
|
86 |
${CP} ${WRKSRC}/TODO ${LOCALBASE}/etc/ldapscripts |
87 |
|
88 |
${CP} ${WRKSRC}/man/man1/* ${MANPREFIX}/man/man1 |
89 |
${CP} ${WRKSRC}/man/man5/* ${MANPREFIX}/man/man5 |
60 |
|
90 |
|
61 |
.include <bsd.port.mk> |
91 |
.include <bsd.port.mk> |