5
0
mirror of git://git.proxmox.com/git/proxmox-mini-journalreader.git synced 2025-01-03 01:17:48 +03:00
Commit Graph

56 Commits

Author SHA1 Message Date
Thomas Lamprecht
3dff2a5a7d buildsys: avoid circular dependency
$(DEBS) contains $(DEB), so don't make the former dependent of the
latter.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:38:21 +02:00
Thomas Lamprecht
66c4d47b85 bump version to 1.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:30:11 +02:00
Thomas Lamprecht
24a23d0f6e buildsys: compile as C11
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
e9ad71ac61 fix code indendation/mixed-tabs-spaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
b938a4ecea fix copyright and license statement
to match our canonical debian/copyright one use AGPL-3.0-or-later in
both, like we use for most of our other programs.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
081027b7bc add manual page backed by scdoc
scdoc is simple enough and being markdown based also easy to write
and maintain, additionally it has no dependencies besides the
standard libc, so quite a good fit for a minimal project like
proxmox-mini-journalreader.

https://drewdevault.com/2018/05/13/scdoc.html
https://git.sr.ht/~sircmpwn/scdoc

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
21b7f90b2b update .gitignore file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
3c800cb6c3 buildsys: define BIN_DIR variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
ad0c3cd90c buildsys: s/LFLAGS/LDFLAGS/
so that dpkg-buildflags has actually an effect.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
dfada5bda2 buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
00cff917cc buildsys: add pbs to upload target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
f35c3f9a77 buildsys: add sbuild target for convenience
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
2faaa5bdfb d/control: raise standards version compliance to 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
3d12afb892 d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
802ed804b6 buildsys: cleanup and expand clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Thomas Lamprecht
6a6ddb8672 makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2023-05-17 19:29:50 +02:00
Fabian Grünbichler
b2403e8812 build: add pkg-config to build-depends
else the compiler/linker flags for libsystemd are not picked up.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2023-01-10 12:32:38 +01:00
Thomas Lamprecht
d9a159ee7e buildsys: include debug package on upload
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-24 18:17:23 +01:00
Thomas Lamprecht
b9182d7550 buildsys: change upload dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-24 18:12:03 +01:00
Thomas Lamprecht
09cd4c8e69 bump version to 1.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-11-24 18:08:39 +01:00
Dominik Csapak
24e7795fb1 add '-j' flag to output json
in the format:
{"data":[... log lines ...],"success":1}

this is chosen so that we can achieve api compatibility when we stream
this output to an api client

strings are escaped by replacing '"', '\' and all values <= 0x1F by their
\uXXXX representation

invalid utf8 sequences will be returned as they are
(jq and the browser can handle that)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2021-11-24 18:04:52 +01:00
Thomas Lamprecht
5ce05d16f6 bump version to 1.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 16:57:03 +02:00
Thomas Lamprecht
447ce3ef20 d/control: bump debhelper compat level to 12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 16:55:31 +02:00
Thomas Lamprecht
3e1b1106ce d/copyright: proxmox uses AGPL-3.0-or-later
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2021-05-14 16:55:09 +02:00
Thomas Lamprecht
8d3028a9a2 buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-23 18:21:56 +02:00
Thomas Lamprecht
7d75c26107 bump version to 1.1-1
for buster, but no major bump - that feels a bit silly here

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-21 19:23:14 +02:00
Thomas Lamprecht
ce61ee2487 d/control: fix priority-extra-is-replaced-by-priority-optional
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-21 19:21:32 +02:00
Thomas Lamprecht
d25337edb2 make upload: pass arch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-21 19:21:32 +02:00
Thomas Lamprecht
2c648dae9f follouwp whitespace fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-16 16:52:18 +02:00
Dominik Csapak
b6a41244e8 use memcpy/cmp instead of strncpy/cmp
faster since it does not have to look for '\0'

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-16 16:48:58 +02:00
Dominik Csapak
0c0d18f8b4 use fwrite_unlocked instead of manually printing to buffer
this does the same as our old code, but is a lot shorter,
so it was uneccessary to have and the performance is the same
(no measureable difference)

we still need a wrapper to be sure that we wrote everything

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-16 16:48:58 +02:00
Dominik Csapak
55272dc375 reuse get_timestamp
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-16 16:48:58 +02:00
Dominik Csapak
929fac3fcc fix implicit type conversions
by either fixing the type, or manually casting

this makes the types more explicit

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-16 16:48:58 +02:00
Dominik Csapak
bdef841d35 add static to functions
this changes link behaviour and those functions are not exported to other
files when some c code is linked against our code

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2019-05-16 16:48:58 +02:00
Thomas Lamprecht
872b9ce4c6 bump version to 1.0-1
for initial package release

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-15 11:28:32 +02:00
Thomas Lamprecht
8f88c256f5 add .gitignore
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 15:23:16 +02:00
Thomas Lamprecht
935ff5c27c add optimization and security compiler flags
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 15:00:00 +02:00
Thomas Lamprecht
d1a87ba237 correctly check write return value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 15:00:00 +02:00
Thomas Lamprecht
de3b55a800 rework usage printing a bit
do most in a single fprintf call and use <format desc> tags

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
f41595d37e add some spaces around operators
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
3805633b35 note that -b/-e are unix epoch based
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
381acb44de add error to usage and move exit there
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
b03d6da1a4 get_timestamp: use fact that unsigned underflow is defined
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
499710df0e buffer should be exactly 4k big, fix off-by-one
as the last byte never got really touched this may not do much, but
if we employ such opimizations then we should do so correctly.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
fc1f52705d move variables only used in a single function in said function
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
c13468abd4 rename convert_argument to arg_to_uint64
and make it static and move it nearer to it's use

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
4a5869e387 change indentation to 4 spaces per level
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
814a5472b0 fixup rename
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
94e0d0e05a buildsys: allow to build source package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00
Thomas Lamprecht
e50a844d0d buildsys: add upload target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-05-14 12:01:47 +00:00