forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-admin/logsurfer+: fix build for clang16
Closes: https://bugs.gentoo.org/871135 Signed-off-by: Pascal Jäger <[email protected]> Closes: gentoo#28476 Signed-off-by: Sam James <[email protected]>
- Loading branch information
1 parent
1e1de61
commit 8f1d8b8
Showing
2 changed files
with
78 additions
and
0 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
app-admin/logsurfer+/files/logsurfer+-1.8-fix-declaration-of-check_context_linelimit.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
From dfd993afd0587080e73079ae7f5ea9a087784d49 Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Pascal=20J=C3=A4ger?= <[email protected]> | ||
Date: Tue, 29 Nov 2022 22:01:30 +0100 | ||
Subject: [PATCH] Fix declaration of check_context_linelimit | ||
MIME-Version: 1.0 | ||
Content-Type: text/plain; charset=UTF-8 | ||
Content-Transfer-Encoding: 8bit | ||
|
||
Bug: https://bugs.gentoo.org/871135 | ||
|
||
Signed-off-by: Pascal Jäger <[email protected]> | ||
--- | ||
src/context.h | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/src/context.h b/src/context.h | ||
index 0448cfb..addbbab 100644 | ||
--- a/src/context.h | ||
+++ b/src/context.h | ||
@@ -22,6 +22,7 @@ void add_to_context(struct context *, struct context_line *); | ||
void do_context_action(struct context *); | ||
|
||
void check_context_timeout(); | ||
+void check_context_linelimit(); | ||
|
||
void expand_context_action_macros(struct context *); | ||
|
||
-- | ||
2.38.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Copyright 1999-2022 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
MY_P="${P/+/}" | ||
|
||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="Real Time Log Monitoring and Alerting" | ||
HOMEPAGE="https://www.crypt.gen.nz/logsurfer/" | ||
SRC_URI="mirror://sourceforge/logsurfer/${MY_P}.tar.gz" | ||
S="${WORKDIR}/${MY_P}" | ||
|
||
LICENSE="freedist GPL-2+" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~x86" | ||
RESTRICT="bindist" #444330 | ||
|
||
RDEPEND=" | ||
acct-group/logsurfer | ||
acct-user/logsurfer | ||
" | ||
|
||
PATCHES=( "${FILESDIR}/${P}-fix-declaration-of-check_context_linelimit.patch" ) | ||
|
||
src_configure() { | ||
local myeconfargs=( | ||
--with-etcdir=/etc | ||
) | ||
|
||
econf "${myeconfargs[@]}" | ||
} | ||
|
||
src_compile() { | ||
tc-export CC | ||
default | ||
} | ||
|
||
src_install() { | ||
dobin src/logsurfer | ||
doman man/logsurfer.1 man/logsurfer.conf.4 | ||
|
||
newinitd "${FILESDIR}"/logsurfer-1.8.initd-r1 logsurfer | ||
newconfd "${FILESDIR}"/logsurfer.confd logsurfer | ||
|
||
einstalldocs | ||
} |