Group :: Rede/Outros
RPM: sngrep
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: sngrep-1.7.0-alt.patch
Download
Download
.gear/rules | 3 +++
.gear/sngrep.spec | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
.gear/tags/list | 1 +
configure.ac | 2 +-
src/filter.h | 2 +-
src/sip.h | 2 +-
6 files changed, 73 insertions(+), 3 deletions(-)
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..72ed51b
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,3 @@
+tar: v@version@:.
+diff: v@version@:. . name=@name@-@version@-alt.patch
+spec: .gear/sngrep.spec
diff --git a/.gear/sngrep.spec b/.gear/sngrep.spec
new file mode 100644
index 0000000..a7acacb
--- /dev/null
+++ b/.gear/sngrep.spec
@@ -0,0 +1,66 @@
+Name: sngrep
+Version: 1.7.0
+Release: alt1
+
+Summary: sngrep is a tool for displaying SIP calls message flows from terminal
+
+License: GPLv2+
+Group: Networking/Other
+Url: https://github.com/irontec/sngrep
+
+Source: %name-%version.tar
+
+Patch0: %name-%version-alt.patch
+
+BuildRequires: libncurses-devel libpcap libgnutls-devel libpcap-devel libpcre2-devel libgcrypt-devel libncursesw-devel libssl-devel
+
+%description
+sngrep is a tool for displaying SIP calls message flows from terminal.
+It supports live capture to display realtime SIP packets and can also be used
+as PCAP viewer.
+
+%prep
+%setup
+%patch0 -p1
+
+%build
+%autoreconf
+%configure \
+ --enable-eep \
+ --with-pcre2 \
+ --with-openssl \
+ --enable-unicode \
+ --enable-ipv6 \
+
+%make_build
+
+%install
+%makeinstall_std
+
+%files
+%_sysconfdir/sngreprc
+%_bindir/sngrep
+%_man8dir/sngrep.8*
+
+%changelog
+* Wed Apr 05 2023 Ilya Demyanov <turbid@altlinux.org> 1.7.0-alt1
+- new upstream version
+
+* Fri Jan 27 2023 Ilya Demyanov <turbid@altlinux.org> 1.6.0-alt1
+- new upstream version
+- migrate to pcre2
+
+* Fri Aug 28 2020 Bolshedvorsky Evgeny <jenya@altlinux.org> 1.4.7-alt1
+- added support for ipv6,unicode
+
+* Sun Jun 23 2019 Igor Vlasenko <viy@altlinux.ru> 1.4.2-alt3
+- NMU: remove rpm-build-ubt from BR:
+
+* Sat Jun 15 2019 Igor Vlasenko <viy@altlinux.ru> 1.4.2-alt2
+- NMU: remove %ubt from release
+
+* Wed Apr 12 2017 Evgeny Bolshedvorsky <jenya@altlinux.org> 1.4.2-alt1%ubt
+- added ubt
+
+* Mon Apr 10 2017 Evgeny Bolshedvorsky <jenya@altlinux.org> 1.4.2-alt1
+- initial build
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..92e386d
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+ece9e0df1e518a18390aa6318bfa79ee8103c7c7 v1.7.0
diff --git a/configure.ac b/configure.ac
index 00c094d..e0c1d96 100644
--- a/configure.ac
+++ b/configure.ac
@@ -183,7 +183,7 @@ AC_ARG_WITH([pcre],
)
AS_IF([test "x$WITH_PCRE" = "xyes"], [
- AC_CHECK_HEADER([pcre.h], [], [
+ AC_CHECK_HEADER([pcre/pcre.h], [], [
AC_MSG_ERROR([ You need libpcre development files installed to compile with pcre support.])
])
AC_CHECK_LIB([pcre], [pcre_exec], [], [
diff --git a/src/filter.h b/src/filter.h
index 1b70899..1d02868 100644
--- a/src/filter.h
+++ b/src/filter.h
@@ -42,7 +42,7 @@
#include "config.h"
#ifdef WITH_PCRE
-#include <pcre.h>
+#include <pcre/pcre.h>
#elif defined(WITH_PCRE2)
#include <pcre2.h>
#else
diff --git a/src/sip.h b/src/sip.h
index 78afdc2..a4e90e2 100644
--- a/src/sip.h
+++ b/src/sip.h
@@ -36,7 +36,7 @@
#include <stdbool.h>
#include <regex.h>
#ifdef WITH_PCRE
-#include <pcre.h>
+#include <pcre/pcre.h>
#elif defined(WITH_PCRE2)
#include <pcre2.h>
#endif