summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2007-10-13 14:57:21 +0000
committerRong-En Fan <rafan@FreeBSD.org>2007-10-13 14:57:21 +0000
commitd18b0a970c027db6fb2f5b271cbe271cec756880 (patch)
tree3260fa24c8b633595b1c1a698bf91cd6df0eca97 /net
parent- update to 1.46 (diff)
- Update to 1.7.1
PR: ports/117152 Submitted by: Ganael Laplanche <ganael.laplanche at martymac.com> (maintainer) Security: CVE-2007-5373
Notes
Notes: svn path=/head/; revision=201401
Diffstat (limited to 'net')
-rw-r--r--net/ldapscripts/Makefile12
-rw-r--r--net/ldapscripts/distinfo6
-rw-r--r--net/ldapscripts/pkg-plist3
3 files changed, 17 insertions, 4 deletions
diff --git a/net/ldapscripts/Makefile b/net/ldapscripts/Makefile
index 96dde154ca4b..238f69e63702 100644
--- a/net/ldapscripts/Makefile
+++ b/net/ldapscripts/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= ldapscripts
-PORTVERSION= 1.7
+PORTVERSION= 1.7.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
http://contribs.martymac.com/ldapscripts/
@@ -46,6 +46,7 @@ post-patch:
${REINPLACE_CMD} -E -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"${ETCDIR}/runtime\"|g" ${WRKSRC}/bin/*
${REINPLACE_CMD} -E -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"${ETCDIR}/ldapscripts.conf\"|g" ${WRKSRC}/etc/runtime
+ ${REINPLACE_CMD} -E -e "s|^BINDPWDFILE=.*|BINDPWDFILE=\"${ETCDIR}/ldapscripts.passwd\"|g" ${WRKSRC}/etc/ldapscripts.conf
${REINPLACE_CMD} -E -e "s|^LDAPSEARCHBIN=.*|LDAPSEARCHBIN=\"${PREFIX}/bin/ldapsearch\"|g" ${WRKSRC}/etc/ldapscripts.conf
${REINPLACE_CMD} -E -e "s|^LDAPADDBIN=.*|LDAPADDBIN=\"${PREFIX}/bin/ldapadd\"|g" ${WRKSRC}/etc/ldapscripts.conf
${REINPLACE_CMD} -E -e "s|^LDAPDELETEBIN=.*|LDAPDELETEBIN=\"${PREFIX}/bin/ldapdelete\"|g" ${WRKSRC}/etc/ldapscripts.conf
@@ -77,9 +78,15 @@ do-install:
${MKDIR} ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.conf ${ETCDIR}/ldapscripts.conf.sample
+ ${CHMOD} 0440 ${ETCDIR}/ldapscripts.conf.sample
if [ ! -f ${ETCDIR}/ldapscripts.conf ]; then \
${CP} -p ${ETCDIR}/ldapscripts.conf.sample ${ETCDIR}/ldapscripts.conf; \
fi
+ ${INSTALL_DATA} ${WRKSRC}/etc/ldapscripts.passwd ${ETCDIR}/ldapscripts.passwd.sample
+ ${CHMOD} 0440 ${ETCDIR}/ldapscripts.passwd.sample
+ if [ ! -f ${ETCDIR}/ldapscripts.passwd ]; then \
+ ${CP} -p ${ETCDIR}/ldapscripts.passwd.sample ${ETCDIR}/ldapscripts.passwd; \
+ fi
${INSTALL_DATA} ${WRKSRC}/etc/runtime ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/ldapaddgroup.template.sample ${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/ldapadduser.template.sample ${ETCDIR}
@@ -97,4 +104,7 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/man/man1/* ${MAN1PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/man/man5/* ${MAN5PREFIX}/man/man5
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
.include <bsd.port.mk>
diff --git a/net/ldapscripts/distinfo b/net/ldapscripts/distinfo
index 5a503de85a94..fc5584f83e9d 100644
--- a/net/ldapscripts/distinfo
+++ b/net/ldapscripts/distinfo
@@ -1,3 +1,3 @@
-MD5 (ldapscripts-1.7.tgz) = 6d2322170707e8dd28897aa5b20d061d
-SHA256 (ldapscripts-1.7.tgz) = 6dade33e3660c456bd4fbf1cdba465401d1c9f7b0862c1ed8b1d04cffb51d16f
-SIZE (ldapscripts-1.7.tgz) = 24470
+MD5 (ldapscripts-1.7.1.tgz) = 33cc2ef99cc70d9dc9a89a1955aa765c
+SHA256 (ldapscripts-1.7.1.tgz) = 73c4154f80ca61ea133811cdff8097643690422879a27ae62b1df35b42cbc7a9
+SIZE (ldapscripts-1.7.1.tgz) = 26149
diff --git a/net/ldapscripts/pkg-plist b/net/ldapscripts/pkg-plist
index bd743a70bee2..07378cb1e87c 100644
--- a/net/ldapscripts/pkg-plist
+++ b/net/ldapscripts/pkg-plist
@@ -1,6 +1,9 @@
@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.conf.sample %D/%%ETCDIR%%/ldapscripts.conf; then rm -f %D/%%ETCDIR%%/ldapscripts.conf; fi
%%ETCDIR%%/ldapscripts.conf.sample
@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.conf ] ; then cp -p %D/%F %B/ldapscripts.conf; fi
+@unexec if cmp -s %D/%%ETCDIR%%/ldapscripts.passwd.sample %D/%%ETCDIR%%/ldapscripts.passwd; then rm -f %D/%%ETCDIR%%/ldapscripts.passwd; fi
+%%ETCDIR%%/ldapscripts.passwd.sample
+@exec if [ ! -f %D/%%ETCDIR%%/ldapscripts.passwd ] ; then cp -p %D/%F %B/ldapscripts.passwd; fi
%%ETCDIR%%/runtime
%%ETCDIR%%/ldapaddgroup.template.sample
%%ETCDIR%%/ldapadduser.template.sample