Группа :: Система/Библиотеки
Пакет: liboping
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: liboping-1.10.0-alt2.patch
Скачать
Скачать
.gear/liboping.spec | 111 +++++++++++++++++++++
.gear/rules | 3 +
.../tags/e55abd36822138c3c7eef8f9f1e78599f6c1ac45 | 6 ++
.gear/tags/list | 1 +
src/liboping.c | 2 +-
5 files changed, 122 insertions(+), 1 deletion(-)
diff --git a/.gear/liboping.spec b/.gear/liboping.spec
new file mode 100644
index 0000000..911c29c
--- /dev/null
+++ b/.gear/liboping.spec
@@ -0,0 +1,111 @@
+Name: liboping
+Version: 1.10.0
+Release: alt2
+
+Summary: Liboping library
+License: LGPLv2.1
+Group: System/Libraries
+
+Url: https://github.com/octo/liboping
+Source0: %name-%version.tar
+Patch0: %name-%version-%release.patch
+BuildRequires: /usr/bin/pod2man
+
+%description
+liboping is a C library to generate ICMP echo requests, better known
+as "ping packets". It is intended for use in network monitoring
+applications or applications that would otherwise need to fork
+ping(1) frequently.
+
+liboping was inspired by ping, libping (homepage vanished) and fping:
+it differs from these existing solutions in that it can `ping' multiple
+hosts in parallel using IPv4 or IPv6 transparently. Other design
+principles were an object oriented interface, simplicity and
+extensibility: Is simple because there are only a few interface
+functions and no external dependencies. It's extensible since all
+(internal) data is kept in "opaque data types", so the storage may
+change or be extended without applications noticing it.
+
+%package -n oping
+Summary: oping ICMP query tool
+Group: Networking/Other
+
+%description -n oping
+Sample application, which demonstrates the liboping's abilities.
+It is like ping, ping6, and fping rolled into one.
+
+%package devel
+Summary: Header files for liboping library
+Group: Development/C
+Requires: %name = %version-%release
+
+%description devel
+Header files for liboping library.
+
+
+%prep
+%setup
+%patch0 -p1
+
+%build
+%autoreconf
+%configure --with-perl-bindings=no \
+ --disable-static \
+#
+%make_build
+
+%install
+%makeinstall_std
+
+%files
+%doc AUTHORS ChangeLog README
+%_libdir/*.so.*
+
+%files -n oping
+%_bindir/oping
+%_man8dir/*
+
+%files devel
+%_libdir/*.so
+%_includedir/*
+%_pkgconfigdir/*.pc
+%_man3dir/*
+
+# TODO:
+# - package perl modules
+# - scrap gear repo, redo with git://git.verplant.org/liboping.git
+
+%changelog
+* Sun Oct 03 2021 Anton Farygin <rider@altlinux.ru> 1.10.0-alt2
+- cleanup spec
+- disabled static library build
+- added pkgconfig file to the devel package
+
+* Tue Feb 18 2020 Anton Farygin <rider@altlinux.ru> 1.10.0-alt1
+- 1.10.0
+- removed suid bit for oping binary and this tool now work only under
+ privileged user
+
+* Wed Dec 05 2018 Grigory Ustinov <grenka@altlinux.org> 1.6.2-alt2
+- Fixed FTBFS (Disabled Werror).
+
+* Sat Apr 21 2012 Michael Shigorin <mike@altlinux.org> 1.6.2-alt1
+- 1.6.2
+
+* Wed Dec 21 2011 Michael Shigorin <mike@altlinux.org> 1.6.1-alt2
+- drop RPATH
+
+* Sun Sep 25 2011 Michael Shigorin <mike@altlinux.org> 1.6.1-alt1
+- 1.6.1
+
+* Tue Dec 14 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1.2-alt2.1
+- Rebuilt for soname set-versions
+
+* Thu May 14 2009 Michael Shigorin <mike@altlinux.org> 1.1.2-alt2
+- fixed control scriptlet packaging
+
+* Wed May 13 2009 Michael Shigorin <mike@altlinux.org> 1.1.2-alt1
+- initial build for ALT Linux Sisyphus (spec from PLD)
+- introduced control(8) support
+- introduced static subpackage (off by default)
+- buildreq
diff --git a/.gear/rules b/.gear/rules
new file mode 100644
index 0000000..a523070
--- /dev/null
+++ b/.gear/rules
@@ -0,0 +1,3 @@
+spec: .gear/liboping.spec
+tar: liboping-@version@:.
+diff: liboping-@version@:. .
diff --git a/.gear/tags/e55abd36822138c3c7eef8f9f1e78599f6c1ac45 b/.gear/tags/e55abd36822138c3c7eef8f9f1e78599f6c1ac45
new file mode 100644
index 0000000..559f700
--- /dev/null
+++ b/.gear/tags/e55abd36822138c3c7eef8f9f1e78599f6c1ac45
@@ -0,0 +1,6 @@
+object d064a9eb60c628ad85e5d0e53b6d4fd018f0a049
+type commit
+tag liboping-1.10.0
+tagger Florian Forster <ff@octo.it> 1494488184 +0200
+
+Tag for version 1.10.0.
diff --git a/.gear/tags/list b/.gear/tags/list
new file mode 100644
index 0000000..ab1d60f
--- /dev/null
+++ b/.gear/tags/list
@@ -0,0 +1 @@
+e55abd36822138c3c7eef8f9f1e78599f6c1ac45 liboping-1.10.0
diff --git a/src/liboping.c b/src/liboping.c
index eca5c16..12f2ae5 100644
--- a/src/liboping.c
+++ b/src/liboping.c
@@ -149,7 +149,7 @@ struct pingobj
char set_mark;
int mark;
- char errmsg[PING_ERRMSG_LEN];
+ char errmsg[PING_ERRMSG_LEN + 64];
pinghost_t *head;
pinghost_t *table[PING_TABLE_LEN];