Code

Initial commit.
authorSebastian Harl <sh@tokkee.org>
Fri, 14 Jul 2006 15:38:41 +0000 (15:38 +0000)
committerSebastian Harl <sh@tokkee.org>
Fri, 14 Jul 2006 15:38:41 +0000 (15:38 +0000)
Added liboping-0.3.2.

debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/oping.overrides [new file with mode: 0644]
debian/rules [new file with mode: 0755]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..dcee0bf
--- /dev/null
@@ -0,0 +1,6 @@
+liboping (0.3.2-1) unstable; urgency=low
+
+  * Initial release (Closes: #377527).
+
+ -- Sebastian Harl <sh@tokkee.org>  Mon, 10 Jul 2006 00:29:07 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..1068d89
--- /dev/null
@@ -0,0 +1,36 @@
+Source: liboping
+Section: libs
+Priority: optional
+Maintainer: Sebastian Harl <sh@tokkee.org>
+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 (file)
index 0000000..ea347d8
--- /dev/null
@@ -0,0 +1,27 @@
+This package was debianized by Sebastian Harl <sh@tokkee.org> on
+Mon, 10 Jul 2006 00:29:07 +0200.
+
+It was downloaded from <http://verplant.org/liboping/files/>.
+
+Copyright Holder: Florian Forster <octo@verplant.org>
+
+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 (file)
index 0000000..f76af8d
--- /dev/null
@@ -0,0 +1,2 @@
+oping: setuid-binary
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..ac18b2c
--- /dev/null
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+# debian/rules for liboping
+#
+# Written by Sebastian Harl <sh@tokkee.org>
+
+# 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 
+