Date: Sun, 22 Jun 2014 14:39:50 +0000 (UTC) From: Raphael Kubo da Costa <rakuco@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r358807 - head/sysutils/ldap-account-manager Message-ID: <201406221439.s5MEdodK084458@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rakuco Date: Sun Jun 22 14:39:49 2014 New Revision: 358807 URL: http://svnweb.freebsd.org/changeset/ports/358807 QAT: https://qat.redports.org/buildarchive/r358807/ Log: - Update to 4.6. - Use the @sample helper for handling config files. PR: 191037 Submitted by: basil@vpm.net.ua (maintainer) Modified: head/sysutils/ldap-account-manager/Makefile head/sysutils/ldap-account-manager/distinfo Modified: head/sysutils/ldap-account-manager/Makefile ============================================================================== --- head/sysutils/ldap-account-manager/Makefile Sun Jun 22 14:39:42 2014 (r358806) +++ head/sysutils/ldap-account-manager/Makefile Sun Jun 22 14:39:49 2014 (r358807) @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= ldap-account-manager -PORTVERSION= 4.5 +PORTVERSION= 4.6 CATEGORIES= sysutils www MASTER_SITES= SF/${SHORTNAME}/LAM/${PORTVERSION} @@ -31,31 +31,29 @@ OPTIONS_DEFINE= DOCS .include <bsd.port.options.mk> +post-extract: +.for CONFIG in ${CONFIGS} + @${MV} ${WRKSRC}/config/${CONFIG}_sample ${WRKSRC}/config/${CONFIG}.sample +.endfor do-install: @${ECHO_CMD} '@unexec if [ -f %D/${WWWDIR_REL}/config/shells ]; then ${RM} -f %D/${WWWDIR_REL}/config/shells; fi' >> ${TMPPLIST} .for CONFIG in ${CONFIGS} - @${ECHO_CMD} '@unexec if cmp -s %D/${WWWDIR_REL}/config/${CONFIG}_sample %D/${WWWDIR_REL}/config/${CONFIG}; then ${RM} -f %D/${WWWDIR_REL}/config/${CONFIG}; fi' >> ${TMPPLIST} + @${ECHO_CMD} '@sample ${WWWDIR_REL}/config/${CONFIG}.sample' >> ${TMPPLIST} .endfor .for I in ${LAMDATA} - @${FIND} -s ${WRKSRC}/${I} -type f -not -name '${CONFIGS}'| ${SED} -e 's,^${WRKSRC},${WWWDIR_REL},' >> ${TMPPLIST} - @${FIND} -ds ${WRKSRC}/${I} -type d | ${SED} -e 's,^${WRKSRC},@dirrm ${WWWDIR_REL},' >> ${TMPPLIST} + @${FIND} -s ${WRKSRC}/${I} -type f -not -name '*.sample' | ${SED} -e 's,^${WRKSRC},${WWWDIR_REL},' >> ${TMPPLIST} + @${FIND} -ds ${WRKSRC}/${I} -type d | ${SED} -e 's,^${WRKSRC},@dirrmtry ${WWWDIR_REL},' >> ${TMPPLIST} .endfor - @${ECHO_CMD} '@dirrm ${WWWDIR_REL}' >> ${TMPPLIST} + @${ECHO_CMD} '@dirrmtry ${WWWDIR_REL}' >> ${TMPPLIST} @cd ${WRKSRC} && ${COPYTREE_SHARE} "${LAMDATA}" ${STAGEDIR}${WWWDIR} -.for CONFIG in ${CONFIGS} - @${ECHO_CMD} '@exec if [ ! -f %D/${WWWDIR_REL}/config/${CONFIG} ]; then ${CP} %D/${WWWDIR_REL}/config/${CONFIG}_sample %D/${WWWDIR_REL}/config/${CONFIG}; ${CHOWN} ${WWWOWN} %D/${WWWDIR_REL}/config/${CONFIG}; fi' >> ${TMPPLIST} -.if !exists(${STAGEDIR}${WWWDIR}/config/${CONFIG}) - @${CP} ${STAGEDIR}${WWWDIR}/config/${CONFIG}_sample ${STAGEDIR}${WWWDIR}/config/${CONFIG} -.endif -.endfor .for DIR in ${WRITEABLES} @${CHOWN} -R ${WWWOWN} ${STAGEDIR}${WWWDIR}/${DIR} @${CHMOD} -R u+w ${STAGEDIR}${WWWDIR}/${DIR} - @${CHMOD} u+x ${STAGEDIR}${WWWDIR}/lib/lamdaemon.pl @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN} %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST} @${ECHO_CMD} '@exec ${CHMOD} -R u+w %D/${WWWDIR_REL}/${DIR}' >> ${TMPPLIST} - @${ECHO_CMD} '@exec ${CHMOD} u+x %D/${WWWDIR_REL}/lib/lamdaemon.pl' >> ${TMPPLIST} .endfor + @${CHMOD} u+x ${STAGEDIR}${WWWDIR}/lib/lamdaemon.pl + @${ECHO_CMD} '@exec ${CHMOD} u+x %D/${WWWDIR_REL}/lib/lamdaemon.pl' >> ${TMPPLIST} .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} Modified: head/sysutils/ldap-account-manager/distinfo ============================================================================== --- head/sysutils/ldap-account-manager/distinfo Sun Jun 22 14:39:42 2014 (r358806) +++ head/sysutils/ldap-account-manager/distinfo Sun Jun 22 14:39:49 2014 (r358807) @@ -1,2 +1,2 @@ -SHA256 (ldap-account-manager-4.5.tar.bz2) = 7652475905fdfb27b40feaa6c0dc39dc78caa6465e1654539799f5c40ae8f714 -SIZE (ldap-account-manager-4.5.tar.bz2) = 11729338 +SHA256 (ldap-account-manager-4.6.tar.bz2) = df9f267c33ddce52e598ac540fecce0f3dc2546a0cc339f8200f39a1baa411f1 +SIZE (ldap-account-manager-4.6.tar.bz2) = 12358788
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201406221439.s5MEdodK084458>