From 99110160014631095aba72cd3f683366f708060c Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 14 Jul 2006 15:38:41 +0000 Subject: [PATCH] Initial commit. Added liboping-0.3.2. --- debian/changelog | 6 +++ debian/compat | 1 + debian/control | 36 ++++++++++++++ debian/copyright | 27 +++++++++++ debian/oping.overrides | 2 + debian/rules | 106 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 178 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/oping.overrides create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..dcee0bf --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +liboping (0.3.2-1) unstable; urgency=low + + * Initial release (Closes: #377527). + + -- Sebastian Harl Mon, 10 Jul 2006 00:29:07 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..1068d89 --- /dev/null +++ b/debian/control @@ -0,0 +1,36 @@ +Source: liboping +Section: libs +Priority: optional +Maintainer: Sebastian Harl +Build-Depends: debhelper (>= 4.0.0), autotools-dev +Standards-Version: 3.7.2 + +Package: liboping0-dev +Section: libdevel +Architecture: any +Depends: liboping0 (= ${Source-Version}) +Description: C library to generate ICMP_ECHO requests (development files) + liboping features pinging multiple hosts in parallel using IPv4 or IPv6 + transparently. The interface is object oriented. + . + This package contains the shared library. + +Package: liboping0 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Description: C library to generate ICMP_ECHO requests + liboping features pinging multiple hosts in parallel using IPv4 or IPv6 + transparently. The interface is object oriented. + . + This package contains the header files, the static library and the manpages. + +Package: oping +Section: net +Architecture: any +Depends: ${shlibs:Depends} +Description: sends ICMP_ECHO requests to network hosts + oping uses ICMP packages (better known as "ping packets") to test the + reachability of network hosts. It supports pinging multiple hosts in parallel + using IPv4 or IPv6 transparently. + diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..ea347d8 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Sebastian Harl on +Mon, 10 Jul 2006 00:29:07 +0200. + +It was downloaded from . + +Copyright Holder: Florian Forster + +License: + + This package is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; only version 2 of the license is + applicable. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, + USA. + +On Debian systems, the complete text of the GNU General Public License v2 +can be found in `/usr/share/common-licenses/GPL-2'. + diff --git a/debian/oping.overrides b/debian/oping.overrides new file mode 100644 index 0000000..f76af8d --- /dev/null +++ b/debian/oping.overrides @@ -0,0 +1,2 @@ +oping: setuid-binary + diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ac18b2c --- /dev/null +++ b/debian/rules @@ -0,0 +1,106 @@ +#!/usr/bin/make -f +# debian/rules for liboping +# +# Written by Sebastian Harl + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +libdir="$(CURDIR)/debian/liboping0/usr/lib/" + +libdeveldir="$(CURDIR)/debian/liboping0-dev/usr/lib" +includedir="$(CURDIR)/debian/liboping0-dev/usr/include" +man3dir="$(CURDIR)/debian/liboping0-dev/usr/share/man/man3" + +bindir="$(CURDIR)/debian/oping/usr/bin" +man8dir="$(CURDIR)/debian/oping/usr/share/man/man8" +overridesdir="$(CURDIR)/debian/oping/usr/share/lintian/overrides" + +config.status: configure + dh_testdir + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ + --mandir=\$${prefix}/share/man + +build: build-stamp + +build-stamp: config.status + dh_testdir + + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + + mkdir -p $(libdir) + mv $(CURDIR)/debian/tmp/usr/lib/liboping.so.* $(libdir) + + mkdir -p $(includedir) + mkdir -p $(libdeveldir) + mkdir -p $(man3dir) + mv $(CURDIR)/debian/tmp/usr/include/* $(includedir) + mv $(CURDIR)/debian/tmp/usr/lib/liboping.a $(libdeveldir) + mv $(CURDIR)/debian/tmp/usr/lib/liboping.so $(libdeveldir) + mv $(CURDIR)/debian/tmp/usr/lib/liboping.la $(libdeveldir) + mv $(CURDIR)/debian/tmp/usr/share/man/man3/* $(man3dir) + + mkdir -p $(bindir) + mkdir -p $(man8dir) + mkdir -p $(overridesdir) + mv $(CURDIR)/debian/tmp/usr/bin/oping $(bindir) + chmod u+s $(bindir)/oping + mv $(CURDIR)/debian/tmp/usr/share/man/man8/* $(man8dir) + cp $(CURDIR)/debian/oping.overrides $(overridesdir)/oping + +binary-indep: + # nothing to do here + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs -A README + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms -Xusr/bin/oping + dh_makeshlibs + dh_installdeb + dh_shlibdeps -l$(libdir) + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + -- 2.30.2