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



The following reply was made to PR pkg/47189; it has been noted by GNATS.

From: Joerg Sonnenberger <joerg%britannica.bec.de@localhost>
To: Nils Ratusznik <nils.netbsd%anotherhomepage.org@localhost>
Cc: gnats-bugs <gnats-bugs%NetBSD.org@localhost>,
	pkg-manager <pkg-manager%netbsd.org@localhost>,
	gnats-admin <gnats-admin%netbsd.org@localhost>,
	pkgsrc-bugs <pkgsrc-bugs%netbsd.org@localhost>
Subject: Re: pkg/47189: Cacti configuration file is overwritten
Date: Fri, 13 Feb 2015 13:26:47 +0100

 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