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

(-)ldapscripts/Makefile (-1 / +11 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	ldapscripts
8
PORTNAME=	ldapscripts
9
PORTVERSION=	1.7
9
PORTVERSION=	1.7.1
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 46-51 Link Here
46
	${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/*
46
	${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/*
47
	${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime
47
	${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime
48
48
49
	${REINPLACE_CMD} -E -e "s|^BINDPWDFILE=.*|BINDPWDFILE=\"${ETCDIR}/ldapscripts.passwd\"|g" ${WRKSRC}/etc/ldapscripts.conf
49
	${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
50
	${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
50
	${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
51
	${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
51
	${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
52
	${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
Lines 77-85 Link Here
77
78
78
	${MKDIR} ${ETCDIR}
79
	${MKDIR} ${ETCDIR}
79
	${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample
80
	${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample
81
	${CHMOD} 0440 ${ETCDIR}/ldapscripts.conf.sample
80
	if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \
82
	if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \
81
		${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \
83
		${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \
82
	fi
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
83
	${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR}
90
	${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR}
84
	${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR}
91
	${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR}
85
	${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR}
92
	${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR}
Lines 97-100 Link Here
97
	${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1
104
	${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1
98
	${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5
105
	${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5
99
106
107
post-install:
108
	@${CAT} ${PKGMESSAGE}
109
100
.include <bsd.port.mk>
110
.include <bsd.port.mk>
(-)ldapscripts/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (ldapscripts-1.7.tgz) = 6d2322170707e8dd28897aa5b20d061d
1
MD5 (ldapscripts-1.7.1.tgz) = 33cc2ef99cc70d9dc9a89a1955aa765c
2
SHA256 (ldapscripts-1.7.tgz) = 6dade33e3660c456bd4fbf1cdba465401d1c9f7b0862c1ed8b1d04cffb51d16f
2
SHA256 (ldapscripts-1.7.1.tgz) = 73c4154f80ca61ea133811cdff8097643690422879a27ae62b1df35b42cbc7a9
3
SIZE (ldapscripts-1.7.tgz) = 24470
3
SIZE (ldapscripts-1.7.1.tgz) = 26149
(-)ldapscripts/pkg-message (+19 lines)
Line 0 Link Here
1
2
===============================================================
3
4
 Security warning :
5
6
 For security reasons, ldapscripts.conf and ldapscripts.passwd
7
 files are now set read-only for user and group owners. Do not
8
 forget to fine-tune ownership of these two files before using
9
 the scripts (and to make them read-only if they are not).
10
11
 e.g. : chmod 0440 ${ETCDIR}/ldapscripts.conf
12
        chgrp ldapadmins ${ETCDIR}/ldapscripts.conf
13
        chmod 0440 ${ETCDIR}/ldapscripts.passwd
14
        chgrp ldapadmins ${ETCDIR}/ldapscripts.passwd
15
16
 The ldapscripts are now installed, enjoy !
17
18
===============================================================
19
(-)ldapscripts/pkg-plist (+3 lines)
Lines 1-6 Link Here
1
@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.conf.sample %D/%%ETCDIR%%/ldapscripts.conf; then rm -f %D/%%ETCDIR%%/ldapscripts.conf; fi
1
@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.conf.sample %D/%%ETCDIR%%/ldapscripts.conf; then rm -f %D/%%ETCDIR%%/ldapscripts.conf; fi
2
%%ETCDIR%%/ldapscripts.conf.sample
2
%%ETCDIR%%/ldapscripts.conf.sample
3
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.conf ] ; then cp -p %D/%F %B/ldapscripts.conf; fi
3
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.conf ] ; then cp -p %D/%F %B/ldapscripts.conf; 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
6
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.passwd ] ; then cp -p %D/%F %B/ldapscripts.passwd; fi
4
%%ETCDIR%%/runtime
7
%%ETCDIR%%/runtime
5
%%ETCDIR%%/ldapaddgroup.template.sample
8
%%ETCDIR%%/ldapaddgroup.template.sample
6
%%ETCDIR%%/ldapadduser.template.sample
9
%%ETCDIR%%/ldapadduser.template.sample

Return to bug 117152