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: Nils Ratusznik <nils.netbsd%anotherhomepage.org@localhost>
To: gnats-bugs <gnats-bugs%NetBSD.org@localhost>
Cc: 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 10:55:59 +0100 (CET)

 Alright, let's have another try at this :
 
 Index: Makefile
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/pkgsrc/net/cacti/Makefile,v
 retrieving revision 1.24
 diff -u -p -r1.24 Makefile
 --- Makefile    23 Aug 2014 12:50:25 -0000      1.24
 +++ Makefile    13 Feb 2015 09:53:47 -0000
 @@ -1,7 +1,7 @@
  # $NetBSD: Makefile,v 1.24 2014/08/23 12:50:25 adam Exp $
 
  DISTNAME=3D      cacti-0.8.8b
 -PKGREVISION=3D   3
 +PKGREVISION=3D   4
  CATEGORIES=3D    net
  MASTER_SITES=3D  http://www.cacti.net/downloads/
 
 @@ -35,6 +35,7 @@ BUILD_DEFS+=3D          PKG_SYSCONFBASE
  PKG_SYSCONFSUBDIR?=3D    httpd
  EGDIR=3D                 ${PREFIX}/share/examples/cacti
  CONF_FILES+=3D           ${EGDIR}/httpd-cacti.conf ${PKG_SYSCONFDIR}/httpd=
 -cacti.conf
 +CONF_FILES+=3D           ${EGDIR}/config.php ${CACTIDIR}/include/config.ph=
 p
  CACTIDIR=3D              ${PREFIX}/share/cacti
  CACTI_LOGDIR?=3D         ${CACTIDIR}/log
  CACTI_RRADIR?=3D         ${CACTIDIR}/rra
 @@ -95,6 +96,7 @@ post-extract:
 
  do-install:
         ${INSTALL_DATA} ${WRKDIR}/httpd-cacti.conf ${DESTDIR}${EGDIR}/httpd=
 -cacti.conf
 +       mv ${WRKSRC}/include/config.php ${DESTDIR}${EGDIR}/config.php
         ${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} \;
         cd ${WRKSRC} && ${PAX} -wr * ${DESTDIR}${CACTIDIR}
         ${INSTALL_SCRIPT} ${WRKDIR}/cacti-poller ${DESTDIR}${PREFIX}/bin
 Index: PLIST
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 RCS file: /cvsroot/pkgsrc/net/cacti/PLIST,v
 retrieving revision 1.5
 diff -u -p -r1.5 PLIST
 --- PLIST       16 Jan 2014 21:10:00 -0000      1.5
 +++ PLIST       13 Feb 2015 09:53:47 -0000
 @@ -1,4 +1,4 @@
 -@comment $NetBSD: PLIST,v 1.5 2014/01/16 21:10:00 tron Exp $
 +@comment $NetBSD$
  bin/cacti-poller
  share/cacti/LICENSE
  share/cacti/README
 @@ -224,7 +224,6 @@ share/cacti/images/uninstall_icon.gif
  share/cacti/images/view_none.gif
  share/cacti/include/auth.php
  share/cacti/include/bottom_footer.php
 -share/cacti/include/config.php
  share/cacti/include/global.php
  share/cacti/include/global_arrays.php
  share/cacti/include/global_constants.php
 @@ -445,6 +444,7 @@ share/cacti/lib/utility.php
  share/cacti/lib/variables.php
  share/cacti/lib/xml.php
  share/cacti/log/.htaccess
 +share/cacti/log/cacti.log
  share/cacti/logout.php
  share/cacti/plugins.php
  share/cacti/plugins/index.php
 @@ -496,4 +496,5 @@ share/cacti/templates_import.php
  share/cacti/tree.php
  share/cacti/user_admin.php
  share/cacti/utilities.php
 +share/examples/cacti/config.php
  share/examples/cacti/httpd-cacti.conf
 
 
 --=20
 Nils Ratusznik
 https://linuxfr.org
 http://blog.anotherhomepage.org
 
 ----- Le 15 Jan 14, =C3=A0 3:10, obache obache%netbsd.org@localhost a =C3=A9crit :
 
 > The following reply was made to PR pkg/47189; it has been noted by GNATS.
 >=20
 > From: "OBATA Akio" <obache%netbsd.org@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc:
 > Subject: Re: pkg/47189: Cacti configuration file is overwritten
 > Date: Wed, 15 Jan 2014 11:08:04 +0900
 >=20
 > On Wed, 15 Jan 2014 03:55:19 +0900, Nils Ratusznik
 > <nils.netbsd%anotherhomepage.org@localhost> wrote:
 >=20
 > >  should I improve something in the patches before they can be committed=
  ?
 >=20
 > 1. original CONF_FILES line should be kept
 > 2. movement of config.php should be in before PAX, or it will overwritten=
  with
 > USE_DESTDIR=3Dno
 > 3. config files may not be in ${PKG_SYSCONFDIR} and it may be kept in def=
 ault
 > location,
 >     or users may be confused (mismach with upstream original document.
 >=20
 > --
 >  OBATA Akio / obache%NetBSD.org@localhost
 


Home | Main Index | Thread Index | Old Index