I also like to maintain the integrity of the original sources and
patches. But my limited knowledge prevented me from creating rpm to get
the result I wanted.
I think the PIA should already be built and not as a patch or added. I
would also create a good solution for the cacti rpm without PIA. And
create another rpm to add the PIA.
For example:
cacti-0.8.7g-3.rf.src.rpm
cacti-0.8.7g-PIA-2.9-3.rf.src.rpm
If I had enough knowledge myself I would.
It would also be advisable to include a message with a few instructions,
such as the creation of the database:
mysql -u root -pdbadmin-e 'CREATE DATABASE `cacti` DEFAULT CHARACTER SET
utf8 COLLATE utf8_general_ci;'
mysql -u root -pdbadmin-e "CREATE USER 'cactiuser'@'localhost'
IDENTIFIED BY 'cactiuser';"
mysql -u root -pdbadmin-e 'GRANT ALL PRIVILEGES ON `cacti` . * TO
'cactiuser'@'localhost';'
mysql -u cactiuser -pcactiuser cacti < /var/www/cacti/cacti.sql
Regards
Yury V. Zaytsev escribió:
On Wed, 2011-03-30 at 20:48 +0200, Fernando Herrero Peletero wrote:
My "diff" file was created using the following method:
I understand. I don't like squashing patches and modifying upstream
sources though.
I think they should publish PIA patches / SQL separately, so that I can
easily bundle it into the RPM, instead of distributing one huge archive.
It would really help if you could bring this up with Cacti developers.
As I said, I tried IRC, but didn't have time to follow up on that.
3. # rpmbuild --rebuild cacti-0.8.7g-3.rf.src.rpm
Instalando cacti-0.8.7g-3.rf.src.rpm
advertencia:usuario dag no existe - utilizando root
advertencia:grupo dag no existe - utilizando root
error: falló el desempaquetado de archivos en
archivo/usr/src/redhat/SOURCES/cacti-0.8.7g.tar.gz;4d937a4e: cpio: El
MD5 sum no coincide
error: cacti-0.8.7g-3.rf.src.rpm no puede ser instalado
I answered exactly the same question here yesterday...
_______________________________________________
suggest mailing list
suggest@lists.rpmforge.net
http://lists.rpmforge.net/mailman/listinfo/suggest