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

(-)ldapscripts/Makefile (-62 / +23 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	ldapscripts
8
PORTNAME=	ldapscripts
9
PORTVERSION=	1.7.2
9
PORTVERSION=	1.8.0
10
CATEGORIES=	net
10
CATEGORIES=	net
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
12
		http://contribs.martymac.com/ldapscripts/
12
		http://contribs.martymac.com/ldapscripts/
Lines 16-23 Link Here
16
MAINTAINER=	ganael.laplanche@martymac.com
16
MAINTAINER=	ganael.laplanche@martymac.com
17
COMMENT=	Scripts to manage posix accounts in an OpenLDAP directory
17
COMMENT=	Scripts to manage posix accounts in an OpenLDAP directory
18
18
19
NO_BUILD=	yes
20
21
WANT_OPENLDAP_VER?=	23
19
WANT_OPENLDAP_VER?=	23
22
.if (${WANT_OPENLDAP_VER} != 21) && (${WANT_OPENLDAP_VER} != 22) && (${WANT_OPENLDAP_VER} != 23) && (${WANT_OPENLDAP_VER} != 24)
20
.if (${WANT_OPENLDAP_VER} != 21) && (${WANT_OPENLDAP_VER} != 22) && (${WANT_OPENLDAP_VER} != 23) && (${WANT_OPENLDAP_VER} != 24)
23
BROKEN=	Incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
21
BROKEN=	Incompatible OpenLDAP version: ${WANT_OPENLDAP_VER}
Lines 30-97 Link Here
30
		ldapmodrdn:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
28
		ldapmodrdn:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client \
31
		ldappasswd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
29
		ldappasswd:${PORTSDIR}/net/openldap${WANT_OPENLDAP_VER}-client
32
30
31
USE_ICONV=	yes
32
LIBDIR=${PREFIX}/lib/${PORTNAME}
33
MAKE_ENV+=	MANDIR=${MANPREFIX}/man \
34
		ETCDIR=${ETCDIR}
35
33
MANLANG=	""
36
MANLANG=	""
34
MANCOMPRESSED=	no
37
MANCOMPRESSED=	yes
35
MAN1=	ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \
38
MAN1=	ldapaddgroup.1 ldapaddmachine.1 ldapadduser.1 ldapaddusertogroup.1 \
36
		ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \
39
	ldapdeletegroup.1 ldapdeleteuser.1 ldapdeleteuserfromgroup.1 \
37
		ldaprenameuser.1 ldapsetprimarygroup.1 _lsldap.1 _ldaprenamemachine.1 \
40
	ldaprenameuser.1 ldapsetprimarygroup.1 lsldap.1 ldaprenamemachine.1 \
38
		_ldaprenamegroup.1 _ldapinit.1 _ldapdeletemachine.1 _ldappasswd.1 _ldapfinger.1 \
41
	ldaprenamegroup.1 ldapinit.1 ldapdeletemachine.1 ldapsetpasswd.1 \
39
		_ldapmodifygroup.1 _ldapmodifymachine.1 _ldapmodifyuser.1
42
	ldapfinger.1 ldapid.1 ldapmodifygroup.1 ldapmodifymachine.1 \
43
	ldapmodifyuser.1
40
MAN5=	ldapscripts.5
44
MAN5=	ldapscripts.5
41
45
42
PORTDOCS=	README CHANGELOG COPYING VERSION TODO
46
PORTDOCS=	README CHANGELOG COPYING VERSION TODO
43
47
44
# Change /etc to ${PREFIX}/etc
48
# Unset 'all' target set by default to 'help'
49
# and set paths to OpenLDAP binaries
45
post-patch:
50
post-patch:
46
	${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/*
51
	${REINPLACE_CMD} "s|^all:.*|all:|g" ${WRKSRC}/Makefile
47
	${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime
52
	${REINPLACE_CMD} "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${LOCALBASE}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
48
53
	${REINPLACE_CMD} "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${LOCALBASE}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
49
	${REINPLACE_CMD} -E -e "s|^BINDPWDFILE=.*|BINDPWDFILE=\"${ETCDIR}/ldapscripts.passwd\"|g" ${WRKSRC}/etc/ldapscripts.conf
54
	${REINPLACE_CMD} "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${LOCALBASE}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
50
	${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
55
	${REINPLACE_CMD} "s|^LDAPMODIFYBIN=.*|LDAPMODIFYBIN=\"${LOCALBASE}/bin/ldapmodify\"|g" ${WRKSRC}/etc/ldapscripts.conf
51
	${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
56
	${REINPLACE_CMD} "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${LOCALBASE}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf
52
	${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
57
	${REINPLACE_CMD} "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${LOCALBASE}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf
53
	${REINPLACE_CMD} -E -e "s|^LDAPMODIFYBIN=.*|LDAPMODIFYBIN=\"${PREFIX}/bin/ldapmodify\"|g" ${WRKSRC}/etc/ldapscripts.conf
54
	${REINPLACE_CMD} -E -e "s|^LDAPMODRDNBIN=.*|LDAPMODRDNBIN=\"${PREFIX}/bin/ldapmodrdn\"|g" ${WRKSRC}/etc/ldapscripts.conf
55
	${REINPLACE_CMD} -E -e "s|^LDAPPASSWDBIN=.*|LDAPPASSWDBIN=\"${PREFIX}/bin/ldappasswd\"|g" ${WRKSRC}/etc/ldapscripts.conf
56
57
# Just copy the scripts
58
do-install:
59
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapdeletemachine ${PREFIX}/bin
60
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapinit ${PREFIX}/bin
61
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_lsldap ${PREFIX}/bin
62
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapaddgroup ${PREFIX}/bin
63
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapadduser ${PREFIX}/bin
64
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapdeletegroup ${PREFIX}/bin
65
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapdeleteuserfromgroup ${PREFIX}/bin
66
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapsetprimarygroup ${PREFIX}/bin
67
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapaddmachine ${PREFIX}/bin
68
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapaddusertogroup ${PREFIX}/bin
69
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldapdeleteuser ${PREFIX}/bin
70
	${INSTALL_SCRIPT} ${WRKSRC}/bin/ldaprenameuser ${PREFIX}/bin
71
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldaprenamegroup ${PREFIX}/bin
72
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldaprenamemachine ${PREFIX}/bin
73
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldappasswd ${PREFIX}/bin
74
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapfinger ${PREFIX}/bin
75
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapmodifyuser ${PREFIX}/bin
76
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapmodifygroup ${PREFIX}/bin
77
	${INSTALL_SCRIPT} ${WRKSRC}/bin/_ldapmodifymachine ${PREFIX}/bin
78
79
	${MKDIR} ${ETCDIR}
80
	${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample
81
	${CHMOD} 0440 ${ETCDIR}/ldapscripts.conf.sample
82
	if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \
83
		${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \
84
	fi
85
	${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.passwd ${ETCDIR}/ldapscripts.passwd.sample
86
	${CHMOD} 0440 ${ETCDIR}/ldapscripts.passwd.sample
87
	if [ ! -f ${ETCDIR}/ldapscripts.passwd ]; then \
88
		${CP} -p ${ETCDIR}/ldapscripts.passwd.sample ${ETCDIR}/ldapscripts.passwd; \
89
	fi
90
	${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR}
91
	${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR}
92
	${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR}
93
	${INSTALL_DATA} ${WRKSRC}/etc/ldapaddmachine.template.sample ${ETCDIR}
94
58
59
# Install remaining stuff
60
post-install:
95
.if !defined(NOPORTDOCS)
61
.if !defined(NOPORTDOCS)
96
	${MKDIR} ${DOCSDIR}
62
	${MKDIR} ${DOCSDIR}
97
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
63
	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
Lines 100-110 Link Here
100
	${INSTALL_DATA} ${WRKSRC}/VERSION ${DOCSDIR}
66
	${INSTALL_DATA} ${WRKSRC}/VERSION ${DOCSDIR}
101
	${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
67
	${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}
102
.endif
68
.endif
103
104
	${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1
105
	${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5
106
107
post-install:
108
	@${CAT} ${PKGMESSAGE}
69
	@${CAT} ${PKGMESSAGE}
109
70
110
.include <bsd.port.mk>
71
.include <bsd.port.mk>
(-)ldapscripts/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (ldapscripts-1.7.2.tgz) = ee80c50dd9c95df03d2f90251ba7145c
1
MD5 (ldapscripts-1.8.0.tgz) = 23bf66f2cdd747163bc31005fd819181
2
SHA256 (ldapscripts-1.7.2.tgz) = c66a3d709157d0eb8861206abceb0f2ca93ded5595433d5c4e96908cbed9f8c0
2
SHA256 (ldapscripts-1.8.0.tgz) = 3c86ddf15eeb81453c5a05eaf587d3882ea70308ed99d09afbd4f509b237fa3d
3
SIZE (ldapscripts-1.7.2.tgz) = 25973
3
SIZE (ldapscripts-1.8.0.tgz) = 31431
(-)ldapscripts/pkg-descr (-2 lines)
Lines 1-5 Link Here
1
Ldapscripts
2
3
The ldapscripts allow to easily manage POSIX accounts (users, groups, machines)
1
The ldapscripts allow to easily manage POSIX accounts (users, groups, machines)
4
in an LDAP directory. They can be used independently as shell commands or within
2
in an LDAP directory. They can be used independently as shell commands or within
5
Samba's configuration. See README for more details.
3
Samba's configuration. See README for more details.
(-)ldapscripts/pkg-plist (-20 / +22 lines)
Lines 4-30 Link Here
4
@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.passwd.sample %D/%%ETCDIR%%/ldapscripts.passwd; then rm -f %D/%%ETCDIR%%/ldapscripts.passwd; fi
4
@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.passwd.sample %D/%%ETCDIR%%/ldapscripts.passwd; then rm -f %D/%%ETCDIR%%/ldapscripts.passwd; fi
5
%%ETCDIR%%/ldapscripts.passwd.sample
5
%%ETCDIR%%/ldapscripts.passwd.sample
6
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.passwd ] ; then cp -p %D/%F %B/ldapscripts.passwd; fi
6
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.passwd ] ; then cp -p %D/%F %B/ldapscripts.passwd; fi
7
%%ETCDIR%%/runtime
8
%%ETCDIR%%/ldapaddgroup.template.sample
7
%%ETCDIR%%/ldapaddgroup.template.sample
9
%%ETCDIR%%/ldapadduser.template.sample
8
%%ETCDIR%%/ldapadduser.template.sample
10
%%ETCDIR%%/ldapaddmachine.template.sample
9
%%ETCDIR%%/ldapaddmachine.template.sample
11
@dirrmtry %%ETCDIR%%
10
@dirrmtry %%ETCDIR%%
12
bin/_ldapdeletemachine
11
lib/ldapscripts/runtime
13
bin/_ldapinit
12
@dirrmtry lib/ldapscripts
14
bin/_lsldap
13
sbin/ldapdeletemachine
15
bin/ldapaddgroup
14
sbin/ldapinit
16
bin/ldapaddmachine
15
sbin/lsldap
17
bin/ldapadduser
16
sbin/ldapaddgroup
18
bin/ldapaddusertogroup
17
sbin/ldapaddmachine
19
bin/ldapdeletegroup
18
sbin/ldapadduser
20
bin/ldapdeleteuser
19
sbin/ldapaddusertogroup
21
bin/ldapdeleteuserfromgroup
20
sbin/ldapdeletegroup
22
bin/ldapsetprimarygroup
21
sbin/ldapdeleteuser
23
bin/ldaprenameuser
22
sbin/ldapdeleteuserfromgroup
24
bin/_ldaprenamemachine
23
sbin/ldapsetprimarygroup
25
bin/_ldaprenamegroup
24
sbin/ldaprenameuser
26
bin/_ldappasswd
25
sbin/ldaprenamemachine
27
bin/_ldapfinger
26
sbin/ldaprenamegroup
28
bin/_ldapmodifygroup
27
sbin/ldapsetpasswd
29
bin/_ldapmodifymachine
28
sbin/ldapfinger
30
bin/_ldapmodifyuser
29
sbin/ldapid
30
sbin/ldapmodifygroup
31
sbin/ldapmodifymachine
32
sbin/ldapmodifyuser

Return to bug 126509