--- openvas-libraries-2.0.4.orig/debian/README.source +++ openvas-libraries-2.0.4/debian/README.source @@ -0,0 +1,3 @@ +We use dpatch for patch handling inside our package(s). Please see +/usr/share/doc/dpatch/README.source.gz (if you have installed dpatch) for +documentation about dpatch. --- openvas-libraries-2.0.4.orig/debian/compat +++ openvas-libraries-2.0.4/debian/compat @@ -0,0 +1 @@ +5 --- openvas-libraries-2.0.4.orig/debian/libopenvas2.install +++ openvas-libraries-2.0.4/debian/libopenvas2.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- openvas-libraries-2.0.4.orig/debian/libopenvas2-dev.dirs +++ openvas-libraries-2.0.4/debian/libopenvas2-dev.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- openvas-libraries-2.0.4.orig/debian/libopenvas2-dev.install +++ openvas-libraries-2.0.4/debian/libopenvas2-dev.install @@ -0,0 +1,6 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/*.la +usr/share/man/man1/libopenvas-config.1 +usr/bin/libopenvas-config --- openvas-libraries-2.0.4.orig/debian/libopenvas2.dirs +++ openvas-libraries-2.0.4/debian/libopenvas2.dirs @@ -0,0 +1,2 @@ +usr/lib +usr/share/doc/libopenvas2 --- openvas-libraries-2.0.4.orig/debian/watch +++ openvas-libraries-2.0.4/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://wald.intevation.org/frs/?group_id=29 \ + /frs/download.php/.*/openvas-libraries-(.*).tar.gz --- openvas-libraries-2.0.4.orig/debian/control +++ openvas-libraries-2.0.4/debian/control @@ -0,0 +1,45 @@ +Source: openvas-libraries +Section: libs +Priority: optional +Maintainer: Debian OpenVAS Maintainers +Uploaders: Tim Brown , Javier Fernandez-Sanguino Pen~a , Jan Wagner +Build-Depends: debhelper (>= 5), autotools-dev, libgnutls-dev, libpcap-dev, libglib2.0-dev, dpatch +Homepage: http://www.openvas.org/ +Vcs-Browser: http://wald.intevation.org/plugins/scmsvn/viewcvs.php/trunk/openvas-libraries/packaging/debian/?root=openvas +Vcs-Svn: https://svn.wald.intevation.org/svn/openvas/trunk/openvas-libraries/packaging/debian/ +Standards-Version: 3.8.3 + +Package: libopenvas2-dev +Section: libdevel +Architecture: any +Depends: libopenvas2 (= ${binary:Version}), libgnutls-dev, libpcap-dev +Replaces: libopenvas1-dev +Conflicts: libopenvas1-dev +Description: remote network security auditor - static libraries and headers + The Open Vulnerability Assessment System is a modular security auditing + tool, used for testing remote systems for vulnerabilities that should be + fixed. + . + It is made up of two parts: a server, and a client. The server/daemon, + openvasd, is in charge of the attacks, whereas the client, + OpenVAS-Client, provides an X11/GTK+ user interface. + . + This package contains the required static libraries, headers, and + libopenvas-config script. + +Package: libopenvas2 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: libopenvas1 +Conflicts: libopenvas1 +Description: remote network security auditor - shared libraries + The Open Vulnerability Assessment System is a modular security auditing + tool, used for testing remote systems for vulnerabilities that should be + fixed. + . + It is made up of two parts: a server, and a client. The server/daemon, + openvasd, is in charge of the attacks, whereas the client, + OpenVAS-Client, provides an X11/GTK+ user interface. + . + This package contains the required shared libraries. --- openvas-libraries-2.0.4.orig/debian/copyright +++ openvas-libraries-2.0.4/debian/copyright @@ -0,0 +1,70 @@ +This package was debianized by Tim Brown on +Wed, 19 Sep 2007 01:41:35 +0100. + +It was downloaded from http://www.openvas.org/ + +Upstream Author: OpenVAS + +Copyright: + + - Libnessus library: + * Copyright (C) 1998-2002 Renaud Deraison + * Copyright (C) 2001 Michael Arboi + * Copyright (c) Nessus Consulting S.A.R.L., 2000 - 2001 + * Copyright (c) mjh-EDV Beratung, 1996-1999 + * Copyright (C) Free Software Foundation, Inc., [getopt] + * Copyright (c) 1995-1999 Kungliga Tekniska Högskolan + (Royal Institute of Technology, Stockholm, Sweden). [snprintf] + * Copyright 1988-2002, Patrick Powell, San Diego, CA [proctitle] + * Copyright 2001 Niels Provos [share_fd] + * Copyright (C) 2008 Intevation GmbH + +Other copyrights: + + - Autoconf: + Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, + 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, + Inc. + +Authors: + + - Libnessus library: + + * Renaud Deraison + * Michael Arboi + * Bernhard Herzog + * Jan-Oliver Wagner + * Michael Wiegand + * Tim Brown + * Vlatko Kosturjak + * Felix Wolfsteller + +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; either version 2 of the License, or + (at your option) any later version. + + 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 can be found in `/usr/share/common-licenses/GPL'. + +The Debian packaging is licensed under the GPL-3 and + Copyright (c) 2007, Tim Brown + Copyright (c) 2008, 2009 Jan Wagner + +On Debian systems, the complete text of the GNU General +Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'. + +Portions of the Debian packing are heavily based on the packaging of +nessus-libraries which is (C) 1998, Javier Fernandez-Sanguino +Pe�a which is licensed under the GPL, see above. --- openvas-libraries-2.0.4.orig/debian/changelog +++ openvas-libraries-2.0.4/debian/changelog @@ -0,0 +1,158 @@ +openvas-libraries (2.0.4-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Empty dependency_libs in libtool la file(s). Closes: 620631 + http://wiki.debian.org/ReleaseGoals/LAFileRemoval + + -- Andreas Metzler Sat, 09 Apr 2011 14:17:39 +0200 + +openvas-libraries (2.0.4-2) unstable; urgency=medium + + * Add README.source + * add 10_fix_llib.dpatch to remove llib to fix problems on mips + * add 10_fix_pcap_config.dpatch to get pcap recognized again + + -- Jan Wagner Tue, 08 Sep 2009 12:24:14 +0200 + +openvas-libraries (2.0.4-1) unstable; urgency=low + + * new upstream release + * drop configure-grypt dpatch + * relicense packaging to GPL-3 + * Bump Standards-Version to 3.8.3, no changes needed + + -- Jan Wagner Wed, 19 Aug 2009 13:24:35 +0200 + +openvas-libraries (2.0.3-1) unstable; urgency=low + + [ Javier Fernandez-Sanguino ] + * New upstream release + * add configure-grypt.dpatch to get grypt working well + * fixing DESTDIR in rules + * Add debian/watch to detect when a new version is available at + wald.intevation.org + + [ Jan Wagner ] + * Bump Standards-Version to 3.8.2, no changes needed + + -- Jan Wagner Tue, 28 Jul 2009 01:05:17 +0200 + +openvas-libraries (2.0.2-1) unstable; urgency=low + + [ Tim Brown ] + * New upstream release + * Updated the control file to take account of translation work as part + of the Smith review project + * Include dpatch infrastructure + + [ Jan Wagner ] + * Add some copyright and author + + -- Jan Wagner Sat, 09 May 2009 12:54:24 +0200 + +openvas-libraries (2.0.0-2) unstable; urgency=low + + * Brown paper bug upload: Restore the changes introduced since 1.0.1-5 + * Make proper versioned binary packages for this library + * Add a Build-Depend on libglib2.0-dev (Closes: 511627) + * Conflict against libopenvas1-dev + + -- Javier Fernandez-Sanguino Pen~a Thu, 15 Jan 2009 22:19:53 +0100 + +openvas-libraries (2.0.0-1) unstable; urgency=low + + * New upstream release + + -- Javier Fernandez-Sanguino Pen~a Fri, 02 Jan 2009 01:21:09 +0100 + +openvas-libraries (2.0.0.beta2-1) UNRELEASED; urgency=low + + * New upstream release + + -- Tim Brown Sat, 15 Nov 2008 12:52:28 +0000 + +openvas-libraries (2.0.0.beta1-1) UNRELEASED; urgency=low + + * New upstream release + * Cleaned up the rules + * Updated copyright + + -- Tim Brown Sun, 12 Oct 2008 19:23:20 +0100 + +openvas-libraries (1.0.2-2) UNRELEASED; urgency=low + + * Not released yet + + -- Jan Wagner Tue, 08 Jul 2008 10:10:47 +0200 + +openvas-libraries (1.0.2-1) unstable; urgency=low + + * New upstream release + * Add Tim and myself to Uploaders + * Set Debian Maintainers Mailing List as Maintainer + * Add Vcs-Headers + * Bump Standards Version to 3.8.0, no changes needed + * Remove trailing whitespaces from EOL and EOF in debian/* + * Move Section to right place for openvas-libraries in control + * Also depend on libgnutls-dev, libpcap-dev for -dev + * Remove debian/*.dirs since unneeded + + -- Jan Wagner Mon, 07 Jul 2008 16:17:53 +0200 + +openvas-libraries (1.0.1-5) unstable; urgency=low + + * Fix the Makefile so that the library is linked with the appropriate + libraries. Also change openvas-libraries.tmpl + * Drop the libgpgme11-dev Build-Dep, we actually don't need it, none of the + sources build use the gpgme.h header. + + -- Javier Fernandez-Sanguino Pen~a Fri, 02 May 2008 21:20:05 +0200 + +openvas-libraries (1.0.1-4) unstable; urgency=low + + * Minor updates to control and copyright file to fix issues highlighted + by jfs in regard to the priority and copyright of the packaging + respectively + * Minor update to control to fix differing dependency between + openvas-libraries and openvas-libnasl as highlighted by jfs + + -- Tim Brown Wed, 30 Apr 2008 23:23:27 +0100 + +openvas-libraries (1.0.1-3) unstable; urgency=low + + * Minor update to control file, fixed dependency on ${source:Version} substvar + + -- Tim Brown Wed, 16 Apr 2008 05:57:27 +0100 + +openvas-libraries (1.0.1-2) unstable; urgency=low + + * Minor updates to control file, now lists jfs as uploader, fixed deprecated + ${Source-Version} substvar, Build-Depends directive + * Minor update to rules file, DH_COMPAT environment variable no longer required + * Minor update to libopenvas2-dev.install + + -- Tim Brown Wed, 16 Apr 2008 05:21:09 +0100 + +openvas-libraries (1.0.1-1) unstable; urgency=low + + * New upstream release + + -- Tim Brown Thu, 03 Apr 2008 01:18:00 +0100 + +openvas-libraries (1.0.0-1) unstable; urgency=low + + * New upstream release + + -- Tim Brown Tue, 05 Feb 2008 22:12:21 +0000 + +openvas-libraries (0.9.1-2) unstable; urgency=low + + * Minor updates to the control and copyright files + + -- Tim Brown Wed, 31 Oct 2007 02:29:25 +0000 + +openvas-libraries (0.9.1-1) unstable; urgency=low + + * Initial release + + -- Tim Brown Wed, 19 Sep 2007 01:41:35 +0100 --- openvas-libraries-2.0.4.orig/debian/rules +++ openvas-libraries-2.0.4/debian/rules @@ -0,0 +1,99 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. + +# 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) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + +include /usr/share/dpatch/dpatch.make + +# shared library versions, option 1 +version=2.0.5 +major=2 +# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so +#version=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` +#major=`ls src/.libs/lib*.so.* | \ +# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: patch-stamp configure + dh_testdir + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --localstatedir=/var CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + touch openvas-libraries.tmpl + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp/ install + find debian/tmp/usr/lib -name "*.la" -exec \ + sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + dh_install --sourcedir=debian/tmp + ( cd debian/libopenvas2-dev/usr/share/doc/ ; rm -rf libopenvas2-dev; ln -s libopenvas2 libopenvas2-dev; ) + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs -V + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- openvas-libraries-2.0.4.orig/debian/patches/10_fix_llib.dpatch +++ openvas-libraries-2.0.4/debian/patches/10_fix_llib.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_fix_llib.dpatch by Jan Wagner +## +## DP: remove broken llibs + +@DPATCH@ +diff -urNad openvas-libraries-2.0.4~/libopenvas-config.in openvas-libraries-2.0.4/libopenvas-config.in +--- openvas-libraries-2.0.4~/libopenvas-config.in 2009-08-07 12:23:15.000000000 +0200 ++++ openvas-libraries-2.0.4/libopenvas-config.in 2009-09-08 09:24:04.000000000 +0200 +@@ -35,7 +35,7 @@ + LIBDIR=@libdir@ + INCLUDEDIR=@includedir@ + VERSION=@version@ +-EXTRA="@EXTRA@ @llib@" ++EXTRA="@EXTRA@" + EGDPATH="@egdpath@" + + --- openvas-libraries-2.0.4.orig/debian/patches/00list +++ openvas-libraries-2.0.4/debian/patches/00list @@ -0,0 +1,2 @@ +10_fix_llib.dpatch +10_fix_pcap_config.dpatch --- openvas-libraries-2.0.4.orig/debian/patches/10_fix_pcap_config.dpatch +++ openvas-libraries-2.0.4/debian/patches/10_fix_pcap_config.dpatch @@ -0,0 +1,76 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 10_fix_pcap_config.dpatch by Jan Wagner +## +## DP: migrate from symbol pcap_restart to pcap_version for checking if pcap +## DP: is installed + +@DPATCH@ +diff -urNad openvas-libraries-2.0.4~/configure openvas-libraries-2.0.4/configure +--- openvas-libraries-2.0.4~/configure 2009-08-07 12:23:15.000000000 +0200 ++++ openvas-libraries-2.0.4/configure 2009-09-08 10:22:57.000000000 +0200 +@@ -19413,9 +19413,9 @@ + fi + + +-{ echo "$as_me:$LINENO: checking for pcap_restart in -lpcap" >&5 +-echo $ECHO_N "checking for pcap_restart in -lpcap... $ECHO_C" >&6; } +-if test "${ac_cv_lib_pcap_pcap_restart+set}" = set; then ++{ echo "$as_me:$LINENO: checking for pcap_version in -lpcap" >&5 ++echo $ECHO_N "checking for pcap_version in -lpcap... $ECHO_C" >&6; } ++if test "${ac_cv_lib_pcap_pcap_version+set}" = set; then + echo $ECHO_N "(cached) $ECHO_C" >&6 + else + ac_check_lib_save_LIBS=$LIBS +@@ -19433,11 +19433,11 @@ + #ifdef __cplusplus + extern "C" + #endif +-char pcap_restart (); ++char pcap_version (); + int + main () + { +-return pcap_restart (); ++return pcap_version (); + ; + return 0; + } +@@ -19460,21 +19460,21 @@ + test ! -s conftest.err + } && test -s conftest$ac_exeext && + $as_test_x conftest$ac_exeext; then +- ac_cv_lib_pcap_pcap_restart=yes ++ ac_cv_lib_pcap_pcap_version=yes + else + echo "$as_me: failed program was:" >&5 + sed 's/^/| /' conftest.$ac_ext >&5 + +- ac_cv_lib_pcap_pcap_restart=no ++ ac_cv_lib_pcap_pcap_version=no + fi + + rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_lib_save_LIBS + fi +-{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_restart" >&5 +-echo "${ECHO_T}$ac_cv_lib_pcap_pcap_restart" >&6; } +-if test $ac_cv_lib_pcap_pcap_restart = yes; then ++{ echo "$as_me:$LINENO: result: $ac_cv_lib_pcap_pcap_version" >&5 ++echo "${ECHO_T}$ac_cv_lib_pcap_pcap_version" >&6; } ++if test $ac_cv_lib_pcap_pcap_version = yes; then + LIBS="-lpcap $LIBS" + else + { { echo "$as_me:$LINENO: error: you need to install pcap library with development files" >&5 +diff -urNad openvas-libraries-2.0.4~/configure.in openvas-libraries-2.0.4/configure.in +--- openvas-libraries-2.0.4~/configure.in 2009-08-07 12:23:15.000000000 +0200 ++++ openvas-libraries-2.0.4/configure.in 2009-09-08 10:22:57.000000000 +0200 +@@ -105,7 +105,7 @@ + AC_CHECK_LIB(gnutls, gnutls_init, LIBS="-lgnutls $LIBS", + AC_MSG_ERROR(you need to install gnutls library with development files)) + +-AC_CHECK_LIB(pcap, pcap_restart, LIBS="-lpcap $LIBS", ++AC_CHECK_LIB(pcap, pcap_version, LIBS="-lpcap $LIBS", + AC_MSG_ERROR(you need to install pcap library with development files)) + + # These libraries break stuff under IRIX