1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-03 01:23:49 +00:00

Fix staging errors that broke all plugins in ports, but worked in pkg.

This commit is contained in:
Adam Weinberger 2014-08-28 14:21:06 +00:00
parent e539e96c79
commit da8e4fbe0d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366406

View File

@ -91,20 +91,20 @@ _SMSRCDIR?= ${SQUIRREL_PLUGIN_NAME}
.if !target(do-install)
do-install:
cd ${WRKSRC}/${_SMSRCDIR} && ${FIND} -d . | \
(cd ${WRKSRC}/${_SMSRCDIR} && ${FIND} -d . | \
${CPIO} -dump ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} >/dev/null 2>&1 && \
${FIND} ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \
-type d -exec chmod 755 {} \; && \
${FIND} ${STAGEDIR}${SQUIRRELDIR}/plugins/${SQUIRREL_PLUGIN_NAME} \
-type f -exec chmod 644 {} \;
-type f -exec chmod 644 {} \;)
.endif
.if !target(post-install)
post-install:
.ifndef WITHOUT_ACTIVATE
.if exists( ${STAGEDIR}${SQUIRRELDIR}/config/config.php )
.if exists(${SQUIRRELDIR}/config/config.php)
@${ECHO_CMD} "Activating plug-in in SquirrelMail"
${STAGEDIR}${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
${SQUIRRELDIR}/config/conf.pl --install-plugin ${SQUIRREL_PLUGIN_NAME}
.endif
.else
@${ECHO_CMD} "To activate the plug-in in SquirrelMail use"