Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37563448
en ru br
Репозитории ALT
S:1.2.23-alt1
5.1: 0.8.7c-alt1
4.1: 0.8.7a-alt2
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: cacti-spine

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: cacti-spine-1.2.23-alt1.patch
Скачать


 .../cacti-spine-1.2.0-alt-mysql8-transition.patch  |  13 ++
 .gear/cacti-spine.spec                             | 194 +++++++++++++++++++++
 .gear/rules                                        |   5 +
 .gear/tags/list                                    |   1 +
 .gear/upstream/filter-tag                          |   1 +
 .gear/upstream/remotes                             |   3 +
 .gear/upstream/transform-tag                       |   1 +
 Makefile.am                                        |   2 +-
 spine.h                                            |   8 +-
 util.c                                             |   2 -
 10 files changed, 222 insertions(+), 8 deletions(-)
diff --git a/.gear/cacti-spine-1.2.0-alt-mysql8-transition.patch b/.gear/cacti-spine-1.2.0-alt-mysql8-transition.patch
new file mode 100644
index 0000000..2b35010
--- /dev/null
+++ b/.gear/cacti-spine-1.2.0-alt-mysql8-transition.patch
@@ -0,0 +1,13 @@
+--- sql.c.orig	2019-01-13 16:47:03.571886931 +0300
++++ sql.c	2019-01-13 16:46:25.587117868 +0300
+@@ -34,6 +34,10 @@
+ #include "common.h"
+ #include "spine.h"
+ 
++#if !defined(my_bool) && MYSQL_VERSION_ID >= 80001 && MYSQL_VERSION_ID < 100100
++#define my_bool bool
++#endif
++
+ /*! \fn int db_insert(MYSQL *mysql, int type, const char *query)
+  *  \brief inserts a row or rows in a database table.
+  *  \param mysql the database connection object
diff --git a/.gear/cacti-spine.spec b/.gear/cacti-spine.spec
new file mode 100644
index 0000000..48a6ce5
--- /dev/null
+++ b/.gear/cacti-spine.spec
@@ -0,0 +1,194 @@
+
+Name: cacti-spine
+Version: 1.2.23
+Release: alt1
+
+License: GPL2
+Group: Monitoring
+
+Summary: Fast c-based poller for package Cacti
+Summary(ru_RU.UTF8): п▒я▀я│я┌я─я▀п╧ я│п╠п╬я─я┴п╦п╨ п╢п╟п╫п╫я▀я┘ п╢п╩я▐ Cacti, п╫п╟п©п╦я│п╟п╫п╫я▀п╧ п╫п╟ я▐п╥я▀п╨п╣ C
+
+URL: http://www.cacti.net
+Source: %name-%version.tar
+Patch: %name-%version-%release.patch
+Patch1: %name-1.2.0-alt-mysql8-transition.patch
+
+Obsoletes: cacti-cactid
+Provides: cacti-cactid = %version-%release
+
+# since cacti-0.8.7e-alt2 chenged log and config path
+Requires: cacti >= 0.8.7e-alt2
+BuildRequires: libcap-devel libmysqlclient-devel libnet-snmp-devel zlib-devel libssl-devel
+BuildRequires: help2man
+
+%description
+Spine is a supplemental poller for Cacti that makes use of pthreads to
+achieve excellent performance.
+
+%description -l ru_RU.UTF8
+Spine -  я█я┌п╬ п╢п╬п©п╬п╩п╫п╦я┌п╣п╩я▄п╫я▀п╧ я│п╠п╬я─я┴п╦п╨ п╦п╫я└п╬я─п╪п╟я├п╦п╦ п╢п╩я▐ Cacti, п╨п╬я┌п╬я─я▀п╧ п╦я│п©п╬п╩я▄п╥я┐п╣я┌
+pthreads п╢п╩я▐ п╢п╬я│я┌п╦п╤п╣п╫п╦я▐ п╡я▀я│п╬п╨п╬п╧ п©я─п╬п╦п╥п╡п╬п╢п╦я┌п╣п╩я▄п╫п╬я│я┌п╦.
+
+%prep
+%setup -q
+%patch -p1
+%patch1 -p0
+
+%build
+%autoreconf
+%configure
+#--enable-lcap
+%make_build
+
+%install
+%makeinstall_std
+mv %buildroot%_sysconfdir/cacti/{spine.conf.dist,spine.conf}
+
+%files
+%config(noreplace) %attr(0640,root,cacti) %_sysconfdir/cacti/spine.conf
+%doc CHANGELOG README.md LICENSE
+%_bindir/*
+%_man1dir/*
+
+%changelog
+* Wed Feb 22 2023 Alexey Shabalin <shaba@altlinux.org> 1.2.23-alt1
+- new version 1.2.23
+
+* Sat Jul 17 2021 Alexey Shabalin <shaba@altlinux.org> 1.2.18-alt1
+- new version 1.2.18
+
+* Sun Mar 15 2020 Alexey Shabalin <shaba@altlinux.org> 1.2.10-alt1
+- 1.2.10
+
+* Fri Apr 05 2019 Alexey Shabalin <shaba@altlinux.org> 1.2.3-alt1
+- 1.2.3
+
+* Wed Mar 06 2019 Nikolai Kostrigin <nickel@altlinux.org> 1.2.2-alt2
+- fix FTBFS against libmysqlclient21
+
+* Tue Mar 05 2019 Alexey Shabalin <shaba@altlinux.org> 1.2.2-alt1
+- 1.2.2
+
+* Fri Jan 04 2019 Alexey Shabalin <shaba@altlinux.org> 1.2.0-alt1
+- 1.2.0
+
+* Thu Feb 16 2017 Alexey Shabalin <shaba@altlinux.ru> 1.0.3-alt1
+- 1.0.3
+
+* Tue May 10 2016 Alexey Shabalin <shaba@altlinux.ru> 0.8.8h-alt1
+- 0.8.8h
+
+* Wed Aug 14 2013 Alexey Shabalin <shaba@altlinux.ru> 0.8.8b-alt1
+- 0.8.8b
+
+* Sun Apr 14 2013 Dmitry V. Levin (QA) <qa_ldv@altlinux.org> 0.8.8a-alt1.qa1
+- NMU: rebuilt with libmysqlclient.so.18.
+
+* Wed May 02 2012 Alexey Shabalin <shaba@altlinux.ru> 0.8.8a-alt1
+- 0.8.8a
+
+* Fri Apr 06 2012 Alexey Shabalin <shaba@altlinux.ru> 0.8.8-alt1
+- 0.8.8
+
+* Wed Dec 21 2011 Alexey Shabalin <shaba@altlinux.ru> 0.8.7i-alt1
+- 0.8.7i
+
+* Thu Oct 06 2011 Alexey Shabalin <shaba@altlinux.ru> 0.8.7h-alt1
+- 0.8.7h
+
+* Mon Dec 06 2010 Alexey Shabalin <shaba@altlinux.ru> 0.8.7g-alt3
+- rebuild with net-snmp-5.6
+
+* Mon Sep 27 2010 Alexey Shabalin <shaba@altlinux.ru> 0.8.7g-alt2
+- add official patche:
+  + Multiple fixes for Windows and fixes for host threading issues
+
+* Mon Jul 12 2010 Alexey Shabalin <shaba@altlinux.ru> 0.8.7g-alt1
+- 0.8.7g
+
+* Tue Apr 06 2010 Alexey Shabalin <shaba@altlinux.ru> 0.8.7e-alt3
+- move config to /etc/cacti/, but /etc/ must work too
+- chenge group spine.conf to cacti
+
+* Thu Apr 01 2010 Alexey Shabalin <shaba@altlinux.ru> 0.8.7e-alt2
+- sync path to log and config with cacti-0.8.7e-alt2
+
+* Sat Feb 06 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 0.8.7e-alt1
+- New version
+- Apply official patches
+
+* Fri Mar 13 2009 Slava Dubrovskiy <dubrsl@altlinux.org> 0.8.7c-alt1
+- New version
+- Update spec
+
+* Mon Jan 12 2009 Slava Dubrovskiy <dubrsl@altlinux.org> 0.8.7a-alt3
+- Rebuild with new net-snmp (#18488)
+- Convert spec to utf8
+
+* Tue Dec 25 2007 Slava Dubrovskiy <dubrsl@altlinux.org> 0.8.7a-alt2
+- Fix #13747
+
+* Fri Nov 30 2007 Slava Dubrovskiy <dubrsl@altlinux.org> 0.8.7a-alt1
+- New version
+- Rename to spine
+
+* Mon Jan 29 2007 Slava Dubrovskiy <dubrsl@altlinux.ru> 0.8.6i-alt3
+- Separate in own package
+- Spec cleanups 
+
+* Sat Jan 13 2007 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6i-alt2
+- Security fixes (CVE-2006-6799)
+
+* Mon Dec 04 2006 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6i-alt1
+- New version
+- Spec cleanups 
+- config.php was marked as config with noreplace
+
+* Fri Apr 14 2006 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6h-alt2
+- Fixed BuildRequires
+
+* Wed Apr 05 2006 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6h-alt1
+- New version
+- Spec cleanups
+
+* Sun Jul 10 2005 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6f-alt1
+- Many critical security bugfixes in upstream
+- Spec fixes (now daemon and main module may have different versions)
+
+* Fri Oct 22 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6b-alt1
+- New version
+
+* Sun Sep 19 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6-alt4
+- Removed BuildArch tag because our rpm doesn't support multiple buildarch's
+  in one spec ;-( Now php stuff has i586 arch ;-)
+
+* Fri Sep 17 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6-alt3
+- Spec fixups (correct %%setup macroses)
+
+* Thu Sep 16 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6-alt2
+- Spec update (information for upgrade)
+
+* Thu Sep 16 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.6-alt1
+- New upstream version (has many new features)
+- Russian translation for spec
+- cactid now in separated package
+- spec cleanups (permissions, path)
+
+* Mon Aug 09 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.5a-alt6
+- Added missing buildrequires (libssl and other)
+
+* Fri Aug 06 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.5a-alt5
+- New version
+
+* Fri Jul 09 2004 Andrew Kornilov <hiddenman@altlinux.ru> 0.8.5-alt4
+- New build
+
+* Fri Mar 12 2004 Andrew Kornilov <andy@eva.dp.ua> 0.8.5-alt3
+- Removed redundant docs from /var/www/html/cacti
+
+* Fri Mar 12 2004 Andrew Kornilov <andy@eva.dp.ua> 0.8.5-alt2
+- Added -M to useradd to skip homedir skeleton 
+
+* Tue Mar 09 2004 Andrew Kornilov <andy@eva.dp.ua> 0.8.5-alt1
+- First alpha build for Sisyphus. All works, but...;-)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..c527d0e
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,5 @@
+tar: release/@version@:.
+diff: release/@version@:. .
+spec: .gear/cacti-spine.spec
+copy: .gear/*.patch
+
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..cd65e98
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+a86a46c261ef0ebec4410ebad66a71b8423a6442 release/1.2.23
diff --git a/.gear/upstream/filter-tag b/.gear/upstream/filter-tag
new file mode 100755
index 0000000..501af72
--- /dev/null
+++ b/.gear/upstream/filter-tag
@@ -0,0 +1 @@
+grep release/
diff --git a/.gear/upstream/remotes b/.gear/upstream/remotes
new file mode 100644
index 0000000..81c7349
--- /dev/null
+++ b/.gear/upstream/remotes
@@ -0,0 +1,3 @@
+[remote "upstream"]
+	url = https://github.com/Cacti/spine.git
+	fetch = +refs/heads/*:refs/remotes/upstream/*
diff --git a/.gear/upstream/transform-tag b/.gear/upstream/transform-tag
new file mode 100755
index 0000000..2013691
--- /dev/null
+++ b/.gear/upstream/transform-tag
@@ -0,0 +1 @@
+sed -e 's,release/,,'
diff --git a/Makefile.am b/Makefile.am
index fc99646..74533be 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,7 @@ ACLOCAL_AMFLAGS = -I m4
 
 spine_SOURCES = sql.c spine.c util.c snmp.c locks.c poller.c nft_popen.c php.c ping.c keywords.c error.c
 
-configdir = $(sysconfdir)
+configdir = $(sysconfdir)/cacti
 config_DATA = spine.conf.dist
 
 bin_PROGRAMS = spine
diff --git a/spine.h b/spine.h
index 12d797c..462e145 100644
--- a/spine.h
+++ b/spine.h
@@ -149,11 +149,9 @@
 #define SPINE_FORK 0
 
 /* locations to search for the config file */
-#define CONFIG_PATHS 4
-#define CONFIG_PATH_1 ""
+#define CONFIG_PATHS 2
+#define CONFIG_PATH_1 "/etc/cacti/"
 #define CONFIG_PATH_2 "/etc/"
-#define CONFIG_PATH_3 "/etc/cacti/"
-#define CONFIG_PATH_4 "../etc/"
 
 /* config file defaults */
 #define DEFAULT_CONF_FILE "spine.conf"
@@ -164,7 +162,7 @@
 #define DEFAULT_DB_PASS "cactiuser"
 #define DEFAULT_DB_PORT 3306
 #define DEFAULT_DB_PREG 0
-#define DEFAULT_LOGFILE "/var/www/html/cacti/log/cacti.log"
+#define DEFAULT_LOGFILE "/var/log/cacti/cacti.log"
 #define DEFAULT_TIMEOUT 294000000
 
 /* threads constants */
diff --git a/util.c b/util.c
index 8ba6dba..729be00 100644
--- a/util.c
+++ b/util.c
@@ -1128,8 +1128,6 @@ void config_defaults() {
 
 	STRNCOPY(config_paths[0], CONFIG_PATH_1);
 	STRNCOPY(config_paths[1], CONFIG_PATH_2);
-	STRNCOPY(config_paths[2], CONFIG_PATH_3);
-	STRNCOPY(config_paths[3], CONFIG_PATH_4);
 
 	set.log_destination = LOGDEST_FILE;
 }
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin