]>
git.proxmox.com Git - proxmox-mini-journalreader.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Thomas Lamprecht [Wed, 17 May 2023 15:48:07 +0000 (17:48 +0200)]
bump version to 1.4.0
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 17:29:44 +0000 (19:29 +0200)]
buildsys: compile as C11
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 17:29:20 +0000 (19:29 +0200)]
fix code indendation/mixed-tabs-spaces
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 17:28:04 +0000 (19:28 +0200)]
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>
Thomas Lamprecht [Wed, 17 May 2023 17:02:51 +0000 (19:02 +0200)]
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>
Thomas Lamprecht [Wed, 17 May 2023 16:37:03 +0000 (18:37 +0200)]
update .gitignore file
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 16:26:42 +0000 (18:26 +0200)]
buildsys: define BIN_DIR variable
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 16:17:38 +0000 (18:17 +0200)]
buildsys: s/LFLAGS/LDFLAGS/
so that dpkg-buildflags has actually an effect.
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:50:46 +0000 (17:50 +0200)]
buildsys: derive upload dist automatically
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:50:36 +0000 (17:50 +0200)]
buildsys: add pbs to upload target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:47:57 +0000 (17:47 +0200)]
buildsys: add sbuild target for convenience
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:47:47 +0000 (17:47 +0200)]
d/control: raise standards version compliance to 4.6.2
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:47:38 +0000 (17:47 +0200)]
d/control: define compat level via build-depends and raise to 13
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:45:47 +0000 (17:45 +0200)]
buildsys: cleanup and expand clean target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 17 May 2023 15:45:01 +0000 (17:45 +0200)]
makefile: convert to use simple parenthesis
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Fabian Grünbichler [Tue, 10 Jan 2023 11:31:46 +0000 (12:31 +0100)]
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>
Thomas Lamprecht [Wed, 24 Nov 2021 17:17:21 +0000 (18:17 +0100)]
buildsys: include debug package on upload
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 24 Nov 2021 17:12:03 +0000 (18:12 +0100)]
buildsys: change upload dist to bullseye
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Wed, 24 Nov 2021 17:08:39 +0000 (18:08 +0100)]
bump version to 1.3-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Wed, 24 Nov 2021 14:47:46 +0000 (15:47 +0100)]
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>
Thomas Lamprecht [Fri, 14 May 2021 14:57:03 +0000 (16:57 +0200)]
bump version to 1.2-1
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 14 May 2021 14:55:31 +0000 (16:55 +0200)]
d/control: bump debhelper compat level to 12
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Fri, 14 May 2021 14:52:00 +0000 (16:52 +0200)]
d/copyright: proxmox uses AGPL-3.0-or-later
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 23 May 2019 16:21:56 +0000 (18:21 +0200)]
buildsys: switch upload dist over to buster
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 17:23:11 +0000 (19:23 +0200)]
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>
Thomas Lamprecht [Tue, 21 May 2019 17:20:37 +0000 (19:20 +0200)]
d/control: fix priority-extra-is-replaced-by-priority-optional
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 21 May 2019 17:18:19 +0000 (19:18 +0200)]
make upload: pass arch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Thu, 16 May 2019 14:52:18 +0000 (16:52 +0200)]
follouwp whitespace fixes
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:19 +0000 (12:22 +0200)]
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>
Dominik Csapak [Thu, 16 May 2019 10:22:18 +0000 (12:22 +0200)]
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>
Dominik Csapak [Thu, 16 May 2019 10:22:17 +0000 (12:22 +0200)]
reuse get_timestamp
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dominik Csapak [Thu, 16 May 2019 10:22:16 +0000 (12:22 +0200)]
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>
Dominik Csapak [Thu, 16 May 2019 10:22:15 +0000 (12:22 +0200)]
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>
Thomas Lamprecht [Wed, 15 May 2019 09:28:30 +0000 (11:28 +0200)]
bump version to 1.0-1
for initial package release
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 13:23:16 +0000 (15:23 +0200)]
add .gitignore
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 12:42:25 +0000 (14:42 +0200)]
add optimization and security compiler flags
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 12:50:47 +0000 (14:50 +0200)]
correctly check write return value
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:51:34 +0000 (11:51 +0000)]
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>
Thomas Lamprecht [Tue, 14 May 2019 11:42:55 +0000 (11:42 +0000)]
add some spaces around operators
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:20:05 +0000 (11:20 +0000)]
note that -b/-e are unix epoch based
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 11:01:29 +0000 (11:01 +0000)]
add error to usage and move exit there
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:48:23 +0000 (10:48 +0000)]
get_timestamp: use fact that unsigned underflow is defined
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:46:50 +0000 (10:46 +0000)]
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>
Thomas Lamprecht [Tue, 14 May 2019 10:46:15 +0000 (10:46 +0000)]
move variables only used in a single function in said function
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 10:22:56 +0000 (10:22 +0000)]
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>
Thomas Lamprecht [Tue, 14 May 2019 09:41:56 +0000 (09:41 +0000)]
change indentation to 4 spaces per level
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:40:49 +0000 (09:40 +0000)]
fixup rename
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:32:03 +0000 (09:32 +0000)]
buildsys: allow to build source package
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:31:32 +0000 (09:31 +0000)]
buildsys: add upload target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:16:32 +0000 (09:16 +0000)]
buildsys: do not hardcode build directory name
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:15:37 +0000 (09:15 +0000)]
buildsys: use dpkg-dev make helpers for version and arch
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 09:11:44 +0000 (09:11 +0000)]
rename to mini-journalreader
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 08:27:20 +0000 (08:27 +0000)]
buildsys: add dinstall target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Thomas Lamprecht [Tue, 14 May 2019 08:27:07 +0000 (08:27 +0000)]
buildsys: fix building all target
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Dominik Csapak [Mon, 13 May 2019 12:49:18 +0000 (14:49 +0200)]
inital commit for journalreader
provides a minimalistic binary to show the journal content
shows a cursor after and before the output
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>