From: Peter Michael Green Date: Sat, 8 May 2021 12:17:27 +0000 (+0100) Subject: Import siridb-server_2.0.43-1+rpi1.debian.tar.xz X-Git-Tag: archive/raspbian/2.0.44-1+rpi1~3^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=15b659da946ec48d2aef32049bac585d5d001153;p=siridb-server.git Import siridb-server_2.0.43-1+rpi1.debian.tar.xz [dgit import tarball siridb-server 2.0.43-1+rpi1 siridb-server_2.0.43-1+rpi1.debian.tar.xz] --- 15b659da946ec48d2aef32049bac585d5d001153 diff --git a/changelog b/changelog new file mode 100644 index 00000000..8257871f --- /dev/null +++ b/changelog @@ -0,0 +1,135 @@ +siridb-server (2.0.43-1+rpi1) bullseye-staging; urgency=medium + + * Move valgrind to build-conflicts, the version in raspbian + has issues. + + -- Peter Michael Green Sat, 08 May 2021 12:17:27 +0000 + +siridb-server (2.0.43-1) unstable; urgency=medium + + [ Helmut Grohne ] + * Improve cross building: (Closes: #982363) + + [ Paul Gevers ] + * New upstream release + + -- Paul Gevers Fri, 19 Feb 2021 20:37:54 +0100 + +siridb-server (2.0.42-1) unstable; urgency=medium + + New upstream release + + -- Paul Gevers Sun, 03 Jan 2021 21:54:23 +0100 + +siridb-server (2.0.40-1) unstable; urgency=medium + + * New upstream release + - Drop patches (applied upstream) + + -- Paul Gevers Sun, 18 Oct 2020 20:47:25 +0200 + +siridb-server (2.0.38-3) unstable; urgency=medium + + * Drop valgrind check on mips*el for now + + -- Paul Gevers Sat, 12 Sep 2020 21:30:15 +0200 + +siridb-server (2.0.38-2) unstable; urgency=medium + + * Only add valgrind as Build-Depends where it exists + * Add patches to fix issues found by valgrind on mips*el + + -- Paul Gevers Thu, 10 Sep 2020 21:24:55 +0200 + +siridb-server (2.0.38-1) unstable; urgency=medium + + [ Paul Gevers ] + * New upstream release + * Add simple (but not superficial) autopkgtest + + [ Debian Janitor ] + * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, + Repository-Browse. + + -- Paul Gevers Thu, 10 Sep 2020 09:55:01 +0200 + +siridb-server (2.0.37-1) unstable; urgency=medium + + * New upstream release + - Fix FTBFS with GCC-10 (Closes: #957800) + + -- Paul Gevers Mon, 27 Jul 2020 07:38:34 +0200 + +siridb-server (2.0.36-1) unstable; urgency=medium + + * New upstream release + - Fixed headers (Closes: #933220) + * Add new B-D: libyajl-dev + + -- Paul Gevers Sun, 17 May 2020 16:02:21 +0200 + +siridb-server (2.0.34-1) unstable; urgency=medium + + * New upstream release + * Update d/copyright + + -- Paul Gevers Wed, 24 Jul 2019 14:58:21 +0200 + +siridb-server (2.0.32-1) unstable; urgency=medium + + * New upstream release + + -- Paul Gevers Wed, 23 Jan 2019 20:06:04 +0100 + +siridb-server (2.0.30-1) unstable; urgency=medium + + [ Jeroen van der Heijden ] + * New upstream release + - SiriDB Server can now compile with gnu89/gnu90 (#101) + - Removed deprecated info- and loaddb requests + - Added named pipe support (#104, @pavelxdd) + - Changed writing buffer length to reduce random io + - Added option to fsync the buffer on a configurable interval + - Use posix_fadvise() on the buffer file (@Svedrin) + - The buffer size can now be adjusted by using the database.conf + configuration file + - Added conversion of invalid value types + * Lower log level of the service file + + [ Paul Gevers ] + * Run testsuite during build + + -- Paul Gevers Sun, 28 Oct 2018 18:43:45 +0100 + +siridb-server (2.0.29-1) unstable; urgency=medium + + * New upstream release + + -- Paul Gevers Wed, 25 Jul 2018 21:57:12 +0200 + +siridb-server (2.0.28-1) unstable; urgency=medium + + * New upstream release + + -- Paul Gevers Mon, 02 Jul 2018 14:00:34 +0200 + +siridb-server (2.0.27-1) unstable; urgency=medium + + * New upstream release + * Update Maintainer and Vcs fields (Closes: #890700) + + -- Paul Gevers Mon, 28 May 2018 10:22:52 +0200 + +siridb-server (2.0.26-1) unstable; urgency=medium + + * New upstream release + * Drop all patches + * Add man page + + -- Paul Gevers Sat, 06 Jan 2018 07:54:21 +0100 + +siridb-server (2.0.25-1) unstable; urgency=medium + + * Initial release. (Closes: #882678) + + -- Paul Gevers Mon, 04 Dec 2017 21:40:02 +0100 diff --git a/clean b/clean new file mode 100644 index 00000000..71572d68 --- /dev/null +++ b/clean @@ -0,0 +1 @@ +Release/siridb-server.1 diff --git a/control b/control new file mode 100644 index 00000000..b47f015a --- /dev/null +++ b/control @@ -0,0 +1,35 @@ +Source: siridb-server +Section: database +Priority: optional +Maintainer: SiriDB Maintainers +Uploaders: + Jeroen van der Heijden , + Paul Gevers , +Rules-Requires-Root: no +Build-Depends: + debhelper-compat (= 13), + help2man, + libcleri-dev, + libpcre2-dev, + libuv1-dev, + libyajl-dev, + uuid-dev +Build-Conflicts: + valgrind +Homepage: https://siridb.net/ +Vcs-Browser: https://salsa.debian.org/siridb-team/siridb-server +Vcs-Git: https://salsa.debian.org/siridb-team/siridb-server.git +Standards-Version: 4.5.0 + +Package: siridb-server +Architecture: any +Depends: + ucf, + ${misc:Depends}, + ${shlibs:Depends}, +Description: SiriDB time series database server + SiriDB is a scalable, robust and fast time series database. Build from the + ground up SiriDB uses a mechanism to operate without a global index and allows + server resources to be added on the fly. SiriDB's query language includes + dynamic grouping of time series for easy analysis over large amounts of time + series. diff --git a/copyright b/copyright new file mode 100644 index 00000000..76f63ecf --- /dev/null +++ b/copyright @@ -0,0 +1,42 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ + +Files: * +Copyright: 2016-2019, Transceptor Technology +License: Expat + +Files: debian/* +Copyright: 2017-2019 Paul Gevers +License: Expat + +Files: include/lib/http_parser.h + src/lib/http_parser.c +Copyright: ?, Joyent, Inc. and other Node contributors +License: Expat + +License: Expat + The MIT License + . + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated + documentation files (the "Software"), to deal in the Software + without restriction, including without limitation the rights to + use, copy, modify, merge, publish, distribute, sublicense, + and/or sell copies of the Software, and to permit persons to + whom the Software is furnished to do so, subject to the + following conditions: + . + The above copyright notice and this permission notice shall + be included in all copies or substantial portions of the + Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT + WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE AND NONINFRINGEMENT. IN NO EVENT + SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. diff --git a/dirs b/dirs new file mode 100644 index 00000000..cc24fab1 --- /dev/null +++ b/dirs @@ -0,0 +1,2 @@ +etc/siridb +var/lib/siridb diff --git a/docs b/docs new file mode 100644 index 00000000..1538d74a --- /dev/null +++ b/docs @@ -0,0 +1,2 @@ +README.md +docs/* diff --git a/install b/install new file mode 100644 index 00000000..ac1b34f0 --- /dev/null +++ b/install @@ -0,0 +1,3 @@ +Release/siridb-server usr/lib/siridb-server +help usr/share/siridb-server +siridb.conf usr/share/siridb-server/conf_templates diff --git a/links b/links new file mode 100644 index 00000000..c3314e06 --- /dev/null +++ b/links @@ -0,0 +1,3 @@ +usr/lib/siridb-server/siridb-server usr/bin/siridb-server +usr/share/siridb-server/help usr/lib/siridb-server/help +usr/share/siridb-server/help usr/share/doc/siridb-server/help diff --git a/manpages b/manpages new file mode 100644 index 00000000..71572d68 --- /dev/null +++ b/manpages @@ -0,0 +1 @@ +Release/siridb-server.1 diff --git a/patches/cross.patch b/patches/cross.patch new file mode 100644 index 00000000..845678ae --- /dev/null +++ b/patches/cross.patch @@ -0,0 +1,428 @@ +Index: siridb-server-2.0.42/Release/makefile +=================================================================== +--- siridb-server-2.0.42.orig/Release/makefile 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/makefile 2021-02-09 13:54:43.760484998 +0100 +@@ -68,7 +68,7 @@ + siridb-server: $(OBJS) $(USER_OBJS) + @echo 'Building target: $@' + @echo 'Invoking: GCC C Linker' +- gcc -o "siridb-server" $(OBJS) $(USER_OBJS) $(LDFLAGS) $(LIBS) $(CRYPT) $(UUID) ++ $(CC) -o "siridb-server" $(OBJS) $(USER_OBJS) $(LDFLAGS) $(LIBS) $(CRYPT) $(UUID) + @echo 'Finished building target: $@' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/argparse/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/argparse/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/argparse/subdir.mk 2021-02-09 13:58:08.904950637 +0100 +@@ -13,7 +13,7 @@ + src/argparse/%.o: ../src/argparse/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/base64/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/base64/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/base64/subdir.mk 2021-02-09 13:57:03.898070586 +0100 +@@ -13,7 +13,7 @@ + src/base64/%.o: ../src/base64/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/cexpr/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/cexpr/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/cexpr/subdir.mk 2021-02-09 13:58:23.868692868 +0100 +@@ -13,7 +13,7 @@ + src/cexpr/%.o: ../src/cexpr/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/cfgparser/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/cfgparser/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/cfgparser/subdir.mk 2021-02-09 13:55:08.376060777 +0100 +@@ -13,7 +13,7 @@ + src/cfgparser/%.o: ../src/cfgparser/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/ctree/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/ctree/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/ctree/subdir.mk 2021-02-09 13:57:50.265271761 +0100 +@@ -13,7 +13,7 @@ + src/ctree/%.o: ../src/ctree/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/expr/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/expr/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/expr/subdir.mk 2021-02-09 13:57:43.253392574 +0100 +@@ -13,7 +13,7 @@ + src/expr/%.o: ../src/expr/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/imap/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/imap/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/imap/subdir.mk 2021-02-09 13:56:47.978344845 +0100 +@@ -13,7 +13,7 @@ + src/imap/%.o: ../src/imap/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/iso8601/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/iso8601/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/iso8601/subdir.mk 2021-02-09 13:57:00.386131093 +0100 +@@ -13,7 +13,7 @@ + src/iso8601/%.o: ../src/iso8601/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/lib/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/lib/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/lib/subdir.mk 2021-02-09 13:57:07.850002504 +0100 +@@ -13,7 +13,7 @@ + src/lib/%.o: ../src/lib/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/llist/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/llist/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/llist/subdir.mk 2021-02-09 13:56:52.910259884 +0100 +@@ -13,7 +13,7 @@ + src/llist/%.o: ../src/llist/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/lock/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/lock/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/lock/subdir.mk 2021-02-09 13:58:27.912623208 +0100 +@@ -13,7 +13,7 @@ + src/lock/%.o: ../src/lock/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/logger/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/logger/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/logger/subdir.mk 2021-02-09 13:58:14.300857679 +0100 +@@ -13,7 +13,7 @@ + src/logger/%.o: ../src/logger/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/omap/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/omap/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/omap/subdir.mk 2021-02-09 13:58:17.328805518 +0100 +@@ -13,7 +13,7 @@ + src/omap/%.o: ../src/omap/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/owcrypt/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/owcrypt/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/owcrypt/subdir.mk 2021-02-09 13:57:53.637213672 +0100 +@@ -13,7 +13,7 @@ + src/owcrypt/%.o: ../src/owcrypt/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/procinfo/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/procinfo/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/procinfo/subdir.mk 2021-02-09 13:58:12.096895648 +0100 +@@ -13,7 +13,7 @@ + src/procinfo/%.o: ../src/procinfo/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/qpack/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/qpack/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/qpack/subdir.mk 2021-02-09 13:58:03.633041467 +0100 +@@ -13,7 +13,7 @@ + src/qpack/%.o: ../src/qpack/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/qpjson/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/qpjson/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/qpjson/subdir.mk 2021-02-09 13:57:58.949122161 +0100 +@@ -13,7 +13,7 @@ + src/qpjson/%.o: ../src/qpjson/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/args/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/args/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/args/subdir.mk 2021-02-09 13:57:27.857657811 +0100 +@@ -13,7 +13,7 @@ + src/siri/args/%.o: ../src/siri/args/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/cfg/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/cfg/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/cfg/subdir.mk 2021-02-09 13:57:30.545611508 +0100 +@@ -13,7 +13,7 @@ + src/siri/cfg/%.o: ../src/siri/cfg/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/db/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/db/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/db/subdir.mk 2021-02-09 13:57:21.893760558 +0100 +@@ -139,7 +139,7 @@ + src/siri/db/%.o: ../src/siri/db/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/file/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/file/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/file/subdir.mk 2021-02-09 13:57:14.473888393 +0100 +@@ -16,7 +16,7 @@ + src/siri/file/%.o: ../src/siri/file/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/grammar/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/grammar/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/grammar/subdir.mk 2021-02-09 13:57:17.189841601 +0100 +@@ -13,7 +13,7 @@ + src/siri/grammar/%.o: ../src/siri/grammar/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/help/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/help/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/help/subdir.mk 2021-02-09 13:57:35.621524052 +0100 +@@ -13,7 +13,7 @@ + src/siri/help/%.o: ../src/siri/help/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/net/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/net/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/net/subdir.mk 2021-02-09 13:57:10.705953306 +0100 +@@ -37,6 +37,6 @@ + src/siri/net/%.o: ../src/siri/net/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' +Index: siridb-server-2.0.42/Release/src/siri/service/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/service/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/service/subdir.mk 2021-02-09 13:57:25.065705912 +0100 +@@ -19,7 +19,7 @@ + src/siri/args/%.o: ../src/siri/args/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/siri/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/siri/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/siri/subdir.mk 2021-02-09 13:57:39.401458935 +0100 +@@ -43,7 +43,7 @@ + src/siri/%.o: ../src/siri/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/timeit/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/timeit/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/timeit/subdir.mk 2021-02-09 13:57:56.529163852 +0100 +@@ -13,7 +13,7 @@ + src/timeit/%.o: ../src/timeit/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/vec/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/vec/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/vec/subdir.mk 2021-02-09 13:56:56.358200485 +0100 +@@ -13,7 +13,7 @@ + src/vec/%.o: ../src/vec/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/xmath/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/xmath/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/xmath/subdir.mk 2021-02-09 13:57:46.601334889 +0100 +@@ -13,7 +13,7 @@ + src/xmath/%.o: ../src/xmath/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/xpath/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/xpath/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/xpath/subdir.mk 2021-02-09 13:58:20.560749844 +0100 +@@ -13,7 +13,7 @@ + src/xpath/%.o: ../src/xpath/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/src/xstr/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/src/xstr/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/src/xstr/subdir.mk 2021-02-09 13:58:06.368994331 +0100 +@@ -13,7 +13,7 @@ + src/xstr/%.o: ../src/xstr/%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + +Index: siridb-server-2.0.42/Release/subdir.mk +=================================================================== +--- siridb-server-2.0.42.orig/Release/subdir.mk 2020-11-12 09:47:15.000000000 +0100 ++++ siridb-server-2.0.42/Release/subdir.mk 2021-02-09 13:58:30.316581802 +0100 +@@ -13,7 +13,7 @@ + %.o: ../%.c + @echo 'Building file: $<' + @echo 'Invoking: GCC C Compiler' +- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" ++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<" + @echo 'Finished building: $<' + @echo ' ' + diff --git a/patches/series b/patches/series new file mode 100644 index 00000000..def274a0 --- /dev/null +++ b/patches/series @@ -0,0 +1 @@ +cross.patch diff --git a/postinst b/postinst new file mode 100644 index 00000000..eb394e70 --- /dev/null +++ b/postinst @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +ucf --debconf-ok /usr/share/siridb-server/conf_templates/siridb.conf /etc/siridb/siridb.conf +ucfr siridb-server /etc/siridb/siridb.conf + +#DEBHELPER# +exit 0 diff --git a/postrm b/postrm new file mode 100644 index 00000000..b08732ce --- /dev/null +++ b/postrm @@ -0,0 +1,24 @@ +#!/bin/sh +set -e + +config_file=/etc/siridb/siridb.conf + +case "$1" in + purge) + [ -d "/var/lib/siridb" ] && rm -rf /var/lib/siridb + if which ucf >/dev/null 2>&1; then + ucf --purge $config_file + fi + if [ -x "`which ucfr 2>/dev/null`" ]; then + ucfr --purge siridb-server $config_file + fi + for ext in .ucf-new .ucf-old .ucf-dist ""; do + rm -f "$config_file$ext" + done + ;; + remove) + ;; +esac + +#DEBHELPER# +exit 0 diff --git a/rules b/rules new file mode 100755 index 00000000..9f385246 --- /dev/null +++ b/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f + +export DEB_BUILD_MAINT_OPTIONS=hardening=+all + +%: + dh $@ + +override_dh_auto_build-arch: + dh_auto_build --sourcedirectory=Release + help2man -N -n"time series database server" Release/siridb-server > Release/siridb-server.1 + +override_dh_auto_clean: + $(MAKE) --directory=Release clean + dh_auto_clean + +override_dh_auto_test: +ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + $(MAKE) --directory=Release test +endif diff --git a/siridb-server.lintian-overrides b/siridb-server.lintian-overrides new file mode 100644 index 00000000..665e8767 --- /dev/null +++ b/siridb-server.lintian-overrides @@ -0,0 +1,5 @@ +# The help files are arch indep, so this is no issue +siridb-server: breakout-link usr/lib/siridb-server/help -> usr/share/siridb-server/help + +# The help files are needed by the program +siridb-server: package-contains-documentation-outside-usr-share-doc diff --git a/siridb-server.service b/siridb-server.service new file mode 100644 index 00000000..47a57011 --- /dev/null +++ b/siridb-server.service @@ -0,0 +1,13 @@ +[Unit] +Description=SiriDB Server +After=network.target + +[Service] +ExecStart=/usr/bin/siridb-server --config /etc/siridb/siridb.conf --log-level warning +StandardOutput=journal +LimitNOFILE=65535 +TimeoutStartSec=10 +TimeoutStopSec=300 + +[Install] +WantedBy=multi-user.target diff --git a/source/format b/source/format new file mode 100644 index 00000000..163aaf8d --- /dev/null +++ b/source/format @@ -0,0 +1 @@ +3.0 (quilt) diff --git a/tests/control b/tests/control new file mode 100644 index 00000000..3fa074bc --- /dev/null +++ b/tests/control @@ -0,0 +1,3 @@ +Tests: http-api +Depends: @, curl +Restrictions: needs-root, isolation-container diff --git a/tests/http-api b/tests/http-api new file mode 100644 index 00000000..3f359c68 --- /dev/null +++ b/tests/http-api @@ -0,0 +1,198 @@ +#!/bin/sh +set -e + +RES=0 + +echo '* fixing /etc/siridb/siridb.conf' +sed --in-place 's/http_api_port = 0/http_api_port = 9020/' /etc/siridb/siridb.conf + +echo '* restarting siridb-server' +service siridb-server restart + +echo '* run queries' +echo ' get-version' +curl --silent --show-error --location --output res.txt \ + --request GET 'http://localhost:9020/get-version' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' || RES=1 +cat res.txt +echo + +echo ' new-database' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/new-database' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "dbname": "sampledb", + "time_precision": "s", + "buffer_size": 8192, + "duration_num": "1w", + "duration_log": "3d" +}' || RES=1 +cat res.txt +echo +expect='"OK"' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' new-account' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/new-account' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "account": "bob", + "password": "passwd4bob" +}' || RES=1 +cat res.txt +echo +expect='"OK"' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' change-password' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/change-password' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "account": "bob", + "password": "pass" +}' || RES=1 +cat res.txt +echo +expect='"OK"' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' drop-account' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/drop-account' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "account": "bob" +}' || RES=1 +cat res.txt +echo +expect='"OK"' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' drop-database' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/drop-database' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "database": "sampledb", + "ignore_offline": false +}' || RES=1 +cat res.txt +echo +expect='"OK"' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' drop-database again' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/drop-database' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "database": "sampledb", + "ignore_offline": false +}' || RES=1 +cat res.txt +echo +expect='{"error_msg":"cannot find database '"'"'sampledb'"'"'"}' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' get-accounts' +curl --silent --show-error --location --output res.txt \ + --request GET 'http://localhost:9020/get-accounts' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' +cat res.txt +echo +expect='["sa"]' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' new-database for queries' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/new-database' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "dbname": "sampledb", + "time_precision": "s", + "buffer_size": 8192, + "duration_num": "1w", + "duration_log": "3d" +}' || RES=1 +cat res.txt +echo +expect='"OK"' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' get-databases' +curl --silent --show-error --location --output res.txt \ + --request GET 'http://localhost:9020/get-databases' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic c2E6c2lyaQ==' +cat res.txt +echo +expect='["sampledb"]' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' query data (nothing there)' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/query/sampledb' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic aXJpczpzaXJp' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "q": "select count() from '\''aggr'\''", + "t": "ms" +}' || RES=1 +cat res.txt +echo +expect='{}' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' insert data' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/insert/sampledb' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic aXJpczpzaXJp' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "aggr": [ + [1578933215, 42], + [1578933223, 123] + ] +}' || RES=1 +cat res.txt +echo +expect='{"success_msg":"Successfully inserted 2 point(s)."}' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +echo ' query data' +curl --silent --show-error --location --output res.txt \ + --request POST 'http://localhost:9020/query/sampledb' \ + --header 'Content-Type: application/json' \ + --header 'Authorization: Basic aXJpczpzaXJp' \ + --header 'Content-Type: text/plain' \ + --data-raw '{ + "q": "select count() from '\''aggr'\''", + "t": "ms" +}' || RES=1 +cat res.txt +echo +expect='{"aggr":[[1578933223000,2]]}' +if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi + +exit $RES diff --git a/upstream/metadata b/upstream/metadata new file mode 100644 index 00000000..978b263b --- /dev/null +++ b/upstream/metadata @@ -0,0 +1,5 @@ +--- +Bug-Database: https://github.com/transceptor-technology/siridb-server/issues +Bug-Submit: https://github.com/transceptor-technology/siridb-server/issues/new +Repository: https://github.com/transceptor-technology/siridb-server.git +Repository-Browse: https://github.com/transceptor-technology/siridb-server diff --git a/watch b/watch new file mode 100644 index 00000000..9c2dd538 --- /dev/null +++ b/watch @@ -0,0 +1,4 @@ +version=4 +opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%siridb-server-$1.tar.gz%" \ + https://github.com/transceptor-technology/siridb-server/releases \ + (?:.*?/)?v?(\d[\d.]*)\.tar\.gz