pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/47189: Cacti configuration file is overwritten



On Fri, Feb 13, 2015 at 10:55:59AM +0100, Nils Ratusznik wrote:
>  do-install:
>         ${INSTALL_DATA} ${WRKDIR}/httpd-cacti.conf ${DESTDIR}${EGDIR}/httpd-cacti.conf
> +       mv ${WRKSRC}/include/config.php ${DESTDIR}${EGDIR}/config.php

Why mv and not ${INSTALL_DATA}? It is nicer to be run the command again.

>         ${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} \;
>         cd ${WRKSRC} && ${PAX} -wr * ${DESTDIR}${CACTIDIR}

Use ${PAX} -rw -s ',\./include/config\.php,,' ${DESTDIR}${CACTIDIR} to
filter the file out.

Joerg


Home | Main Index | Thread Index | Old Index