svn commit: r495328 - head/textproc/kibana6
Tobias Kortkamp
tobik at freebsd.org
Mon Mar 11 08:28:39 UTC 2019
On Mon, Mar 11, 2019 at 08:08:28AM +0000, Koichiro Iwao wrote:
> Author: meta
> Date: Mon Mar 11 08:08:28 2019
> New Revision: 495328
> URL: https://svnweb.freebsd.org/changeset/ports/495328
>
> Log:
> textproc/kibana6: Fix do-install I broke in the previous commit
>
> I meant WWWDIR_REL not WWWDIR here but the usage of @mode macro was wrong.
> It does not take a file argument. Use COPYTREE_BIN instead to keep
> executable permissions for binaries.
>
> PR: 236243
> Reported by: tobik
>
> Modified:
> head/textproc/kibana6/Makefile
>
> Modified: head/textproc/kibana6/Makefile
> ==============================================================================
> --- head/textproc/kibana6/Makefile Mon Mar 11 07:57:05 2019 (r495327)
> +++ head/textproc/kibana6/Makefile Mon Mar 11 08:08:28 2019 (r495328)
> @@ -4,7 +4,7 @@
> PORTNAME= kibana
> PORTVERSION= 6.5.4
> DISTVERSIONSUFFIX= -linux-x86_64
> -PORTREVISION= 0
> +PORTREVISION= 1
> CATEGORIES= textproc www
> MASTER_SITES= https://artifacts.elastic.co/downloads/kibana/ \
> http://artifacts.elastic.co/downloads/kibana/
> @@ -33,14 +33,14 @@ do-install:
> ${INSTALL_DATA} ${WRKSRC}/config/kibana.yml ${STAGEDIR}${ETCDIR}/kibana.yml.sample
> (cd ${WRKSRC} && \
> ${RM} -r config node optimize && \
> - ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
> + ${COPYTREE_BIN} bin ${STAGEDIR}${WWWDIR} && \
> + ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR} "-not -name bin -type d")
> ${INSTALL} -lrs ${STAGEDIR}${ETCDIR} ${STAGEDIR}${WWWDIR}/config
>
> post-install:
> ${ECHO} "@sample ${ETCDIR}/kibana.yml.sample" >> ${TMPPLIST}
> ${FIND} -s ${STAGEDIR}${WWWDIR} -not -type d | ${SORT} | \
> ${SED} -e 's#^${STAGEDIR}${PREFIX}/##' >> ${TMPPLIST}
> - ${REINPLACE_CMD} -e "s|\(${WWWDIR}/bin/.*\)|@mode 0755 \1|" ${TMPPLIST}
> ${ECHO} "@dir(www,www) ${WWWDIR}/data" >> ${TMPPLIST}
> ${ECHO} "@dir ${WWWDIR}/plugins" >> ${TMPPLIST}
> ${ECHO} "@dir ${WWWDIR}/src/ui/public/factories" >> ${TMPPLIST}
Thanks, but the package now barely installs any files:
$ pkg info -l kibana6
kibana6-6.5.4_1:
/usr/local/etc/kibana/kibana.yml.sample
/usr/local/etc/rc.d/kibana
/usr/local/share/licenses/kibana6-6.5.4_1/APACHE20
/usr/local/share/licenses/kibana6-6.5.4_1/LICENSE
/usr/local/share/licenses/kibana6-6.5.4_1/catalog.mk
/usr/local/www/kibana6/bin/kibana
/usr/local/www/kibana6/bin/kibana-keystore
/usr/local/www/kibana6/bin/kibana-plugin
/usr/local/www/kibana6/config
$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 618 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/svn-ports-all/attachments/20190311/7d3bbdf2/attachment-0001.sig>
More information about the svn-ports-all
mailing list