svn commit: r320982 - head/net/nss_ldap
Andrej Zverev
az at FreeBSD.org
Sat Jun 15 10:42:49 UTC 2013
Author: az
Date: Sat Jun 15 10:42:49 2013
New Revision: 320982
URL: http://svnweb.freebsd.org/changeset/ports/320982
Log:
- Prevent situation which leads to overriding configuration file on reinstall.
PR: ports/179047
Submitted by: Anton Yuzhaninov <ayuzhaninov at openstat.ru>
Approved by: maintainer (timeout)
Modified:
head/net/nss_ldap/Makefile (contents, props changed)
Modified: head/net/nss_ldap/Makefile
==============================================================================
--- head/net/nss_ldap/Makefile Sat Jun 15 09:41:38 2013 (r320981)
+++ head/net/nss_ldap/Makefile Sat Jun 15 10:42:49 2013 (r320982)
@@ -75,9 +75,9 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/${MAN5} ${MAN5PREFIX}/man/man5
post-install:
-.if !exists(${PREFIX}/etc/nss_ldap.conf)
- ${CP} -p ${PREFIX}/etc/nss_ldap.conf.sample ${PREFIX}/etc/nss_ldap.conf
-.endif
+ @if [ ! -f ${PREFIX}/etc/nss_ldap.conf ]; then \
+ ${CP} -pv ${PREFIX}/etc/nss_ldap.conf.sample ${PREFIX}/etc/nss_ldap.conf ; \
+ fi
.if !defined(PACKAGE_BUILDING)
@${CAT} ${PKGMESSAGE}
.endif
More information about the svn-ports-all
mailing list