--- openvas-libnasl-2.0.0.orig/include/config.h +++ openvas-libnasl-2.0.0/include/config.h @@ -0,0 +1,159 @@ +/* include/config.h. Generated from config.h.in by configure. */ +/* Pkt_forge + * + * Copyright (C) 1999 Renaud Deraison + * + * Please see PKT_LICENSE for the license details + * + */ + +#ifndef CONFIG_H__ +#define CONFIG_H__ + +/* + * Host specs. + * + * Set this if you are running OpenBSD < 2.1 or all FreeBSD or + * all netBSD, or BSDi < 3.0 + * + * If you have run this script as root, then it should be correctly + * set up + * + */ +/* #undef BSD_BYTE_ORDERING */ + + + +#ifndef _CYGWIN_ +/* #undef _CYGWIN_ */ +#endif + +#define STDC_HEADERS 1 +#define HAVE_UNISTD_H 1 +#define HAVE_ASSERT_H 1 +/* #undef HAVE_FNMATCH */ +#define HAVE_LSTAT 1 +/* #undef HAVE_MMAP */ +#define HAVE_BZERO 1 +#define HAVE_BCOPY 1 +#define HAVE_RAND 1 +#define HAVE_POLL 1 +#define HAVE_SELECT 1 +#define HAVE_POLL_H 1 +#define HAVE_GETTIMEOFDAY 1 +/* #undef GETTIMEOFDAY_ONE_ARGUMENT */ +/* #undef HAVE_TIMEVAL */ +/* #undef HAVE_GETHRTIME */ +#define HAVE_GETRUSAGE 1 +#define HAVE_LONG_FILE_NAMES 1 +#define HAVE_GETOPT_H 1 +#define HAVE_STRING_H 1 +#define HAVE_STRINGS_H 1 +#define HAVE_SYS_POLL_H 1 +/* #undef HAVE_SYS_SOCKIO_H */ +/* #undef HAVE_SYS_SOCKETIO_H */ +#define HAVE_SYS_SOCKET_H 1 +#define HAVE_SYS_PARAM_H 1 +#define HAVE_NETDB_H 1 +#define HAVE_ARPA_INET_H 1 +#define HAVE_NETINET_TCP_H 1 +#define HAVE_NET_IF_H 1 +/* #undef HAVE_NETINET_TCPIP_H */ +#define HAVE_NETINET_IN_H 1 +#define HAVE_NETINET_IN_SYSTM_H 1 +/* #undef HAVE_NETINET_IP_UDP_H */ +/* #undef HAVE_NETINET_UDP_H */ +/* #undef HAVE_NETINET_PROTOCOLS_H */ +#define HAVE_NETINET_IP_H 1 +#define HAVE_NETINET_IP_ICMP_H 1 +/* #undef HAVE_NETINET_IP_TCP_H */ +/* #undef HAVE_NETINET_PROTOCOLS_H */ +#define HAVE_VSNPRINTF 1 +#define HAVE_STRUCT_IP 1 +#define HAVE_STRUCT_ICMP 1 +#define HAVE_STRUCT_TCPHDR 1 +#define HAVE_IP_HL 1 +#define HAVE_TCPHDR_TH_OFF 1 +/* #undef HAVE_TCPHDR_TH_X2_OFF */ +#define HAVE_STRUCT_UDPHDR 1 +#define HAVE_BSD_STRUCT_UDPHDR 1 +/* #undef HAVE_ICMP_ICMP_LIFETIME */ +#define HAVE_SYS_WAIT_H 1 +#define HAVE_SYS_STAT_H 1 +/* #undef HAVE_STAT_H */ +#define TIME_WITH_SYS_TIME 1 +/* #undef HAVE_SYS_TIME_H */ +#define HAVE_SYS_IOCTL_H 1 +#define HAVE_DIRENT_H 1 +/* #undef HAVE_SYS_NDIR_H */ +/* #undef HAVE_SYS_DIR_H */ +/* #undef HAVE_NDIR_H */ +#define HAVE_STRCHR 1 +#define HAVE_MEMCPY 1 +#define HAVE_MEMMOVE 1 +#define HAVE_MEMMEM 1 +#define HAVE_ALLOCA 1 +#define HAVE_ALLOCA_H 1 +#define HAVE_LOCALE_H 1 +#define HAVE_PTHREAD_H 1 +/* #undef HAVE_PTHREAD_CANCEL */ +#define HAVE_DLFCN_H 1 +#define HAVE_RPC_RPC_H 1 +/* #undef WORDS_BIGENDIAN */ +#define SIZEOF_SHORT 2 +#define SIZEOF_INT 4 +#define SIZEOF_LONG 4 +/* #undef SIZEOF_UNSIGNED_INT */ +/* #undef SIZEOF_UNSIGNED_LONG */ +#define HAVE_MEMORY_H 1 +/* #undef HAVE_ADDR2ASCII */ +/* #undef HAVE_INET_NETA */ +#define HAVE_SYS_UN_H 1 +#define HAVE_CTYPE_H 1 +#define HAVE_SYS_TYPES_H 1 +#define HAVE_ERRNO_H 1 +#define HAVE_PWD_H 1 +#define HAVE_STDLIB_H 1 +#define HAVE_STDIO_H 1 +/* #undef HAVE_SYS_FILIO_H */ +#define HAVE_SEARCH_H 1 +/* #undef HAVE_XDR_MON */ +/* #undef HAVE_SOCKADDR_SA_LEN */ +#define HAVE_SYS_MMAN_H 1 +#define HAVE_SIGACTION 1 +#define HAVE_SIGNAL 1 +#define HAVE_WAIT 1 +#define HAVE_WAIT3 1 +#define HAVE_WAIT4 1 +#define HAVE_WAITPID 1 + +#define LINUX 1 +/* #undef FREEBSD */ +/* #undef OPENBSD */ +/* #undef SOLARIS */ +/* #undef SUNOS */ +/* #undef BSDI */ +/* #undef IRIX */ +/* #undef NETBSD */ + +/* #undef HAVE_REGEX_SUPPORT */ +#define HAVE_INET_ATON 1 +/* #undef STUPID_SOLARIS_CHECKSUM_BUG */ +/* #undef HAVE_STRUCT_IP_CSUM */ +/* #undef HAVE_GETHOSTBYNAME_R */ +/* #undef HAVE_SOLARIS_GETHOSTBYNAME_R */ +/* #undef HAVE_SOLARIS_GETHOSTBYADDR_R */ +/* #undef USE_SYSLOG */ + +/* #undef PCAP_RESTART */ +/* #undef BROKEN_PTHREAD_CLEANUP_PUSH */ + +#define HAVE_LFIND 1 +/* #undef HAVE_STRNDUP_ALREADY */ + +#define NESS_COMPILER "(unknown)" +#define NESS_OS_NAME "(unknown)" +#define NESS_OS_VERSION "(unknown)" + + +#endif --- openvas-libnasl-2.0.0.orig/debian/libopenvasnasl1.install +++ openvas-libnasl-2.0.0/debian/libopenvasnasl1.install @@ -0,0 +1 @@ +usr/lib/lib*.so.* --- openvas-libnasl-2.0.0.orig/debian/copyright +++ openvas-libnasl-2.0.0/debian/copyright @@ -0,0 +1,129 @@ +This package was debianized by Tim Brown on +Tue, 05 Feb 2008 23:29:47 +0000. + +It was downloaded from http://www.openvas.org/ + +Upstream Author: OpenVAS + +Copyright: + + - Libnasl library: + * Copyright (C) 1999 Renaud Deraison + * Copyright (C) 2002 - 2004 Michel Arboi and Renaud Deraison + * Copyright (C) 2002 - 2005 Tenable Network Security + * Copyright (C) 2004 Michel Arboi + * Copyright (C) 2006 Free Software Foundation, Inc. [regex] + * Copyright (C) 2007 Intevation GmbH [nasl_signature] + * Copyright (C) Andrew Tridgell 1992-2000 [hmacmd5] + * Copyright (C) Luke Kenneth Casson Leighton 1996-2000 [hmacmd5] + * Copyright (C) 1989, 1993 The Regents of the University of California + [lsearch] + +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: + + - Libnasl library: + + * Renaud Deraison + * Michael Arboi + * Jan-Oliver Wagner + * Andrew Tridgell + * Luke Kenneth Casson Leighton + +License: + +This package holds software with three different licenses: + +- GNU General Public License version 2 or later: the build scripts, hmacmd5 + and nasl_signature source +- GNU General Public License version 2: the regex source +- GNU General Public License version 2 with an OpenSSL linking exemption: + the majority of the library itself + +The following text explains which licenses apply to which parts of the code. In +case of doubt the interested party should review the copyright headers of the +affected files. + +The license for most of the software in this package is the following: + + This software 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. + + This software 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 + +Notice that some parts of the software (source code files) are available +at a GPL version 2 or (at your choice) a later version, as described above. + +On Debian systems, the complete text of the GNU General +Public License can be found in `/usr/share/common-licenses/GPL-2'. + +In addition, as a special exception, the copyright holders give +permission to link the code of portions of this program with the +OpenSSL library under certain conditions as described in each +individual source file, and distribute linked combinations +including the two. + +The Debian package is not compiled using this library but uses the GnuTLS +library available in the Debian archive (libgnutls26). This is because +the OpenSSL library linking exemption was not uniformly applied to all +parts of the original pre-fork Nessus code base, but only nessus-client +and libnasl2 despite the aggregate work needing SSL support. + +You must obey the GNU General Public License in all respects +for all of the code used other than OpenSSL. If you modify +file(s) with this exception, you may extend this exception to your +version of the file(s), but you are not obligated to do so. If +you do not wish to do so, delete this exception statement from your +version. If you delete this exception statement from all source +files in the program, then also delete it here. + +include/config.h.in make reference to PKT_LICENSE. This file was not +present in Nessus and the file not shipped with Nessus either. The +PKT_LICENSE was not found via Internet search engines nor is found +the software "pkt_forge" which seems to be origin. In fact it is said +that pkt_forge formed a part of NASL. Thus we do believe it is a +accidental left-over, but we do not have a clearifing statement by the +author. + +nasl/lsearch.c has 3 clause BSD license: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the University nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND + ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE + FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + SUCH DAMAGE. + +The Debian packaging is (C) 2007, Tim Brown and +is licensed under the GPL, see above version 2 (or later). --- openvas-libnasl-2.0.0.orig/debian/libopenvasnasl1-dev.install +++ openvas-libnasl-2.0.0/debian/libopenvasnasl1-dev.install @@ -0,0 +1,8 @@ +usr/include/* +usr/lib/lib*.a +usr/lib/lib*.so +usr/lib/*.la +usr/share/man/man1/openvas-libnasl-config.1 +usr/share/man/man1/openvas-nasl.1 +usr/bin/openvas-libnasl-config +usr/bin/openvas-nasl --- openvas-libnasl-2.0.0.orig/debian/compat +++ openvas-libnasl-2.0.0/debian/compat @@ -0,0 +1 @@ +5 --- openvas-libnasl-2.0.0.orig/debian/rules +++ openvas-libnasl-2.0.0/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f +# Derived from dh_make example. + +#export DH_VERBOSE=1 +export DH_OPTIONS + +version := $(shell cat VERSION) +tmp := $(CURDIR)/debian/tmp + +CFLAGS := -g -Wall -D_REENTRANT +ifneq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" "" +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: config.status + dh_testdir + $(MAKE) localstatedir=/var + touch $@ + +config.status: configure + CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --sysconfdir=/etc \ + --localstatedir=/var --mandir='$${prefix}/share/man' \ + --enable-static --enable-cipher + +clean: + dh_testdir + dh_testroot + touch nasl.tmpl + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean build-stamp + +install: DH_OPTIONS= +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install DESTDIR=$(tmp)/ + dh_installdirs -plibopenvasnasl1-dev usr/share/doc/libopenvasnasl1 + dh_install --sourcedir=debian/tmp + find debian/libopenvasnasl1/usr -type d -empty | xargs -r rmdir -p --ignore-fail-on-non-empty + find debian/libopenvasnasl1-dev/usr -type d -empty | xargs -r rmdir -p --ignore-fail-on-non-empty + +binary-indep: +# Nothing. + +binary-arch: DH_OPTIONS=-a +binary-arch: install + dh_testdir + dh_testroot + dh_installdocs + ( cd debian/libopenvasnasl1-dev/usr/share/doc/ ; rm -rf libopenvasnasl1-dev; ln -s libopenvasnasl1 libopenvasnasl1-dev; ) + dh_installchangelogs +ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" "" + dh_strip +endif + dh_compress + dh_fixperms + dh_makeshlibs -V "libopenvasnasl1 (>= $(version))" + 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-libnasl-2.0.0.orig/debian/control +++ openvas-libnasl-2.0.0/debian/control @@ -0,0 +1,41 @@ +Source: openvas-libnasl +Section: libs +Priority: optional +Maintainer: Debian OpenVAS Maintainers +Uploaders: Tim Brown , Javier Fernandez-Sanguino Pen~a , Jan Wagner +Build-Depends: debhelper (>= 5), autotools-dev, libopenvas1-dev (>= 2.0.0) , libgpgme11-dev (>= 1.1.5), bison, libpcap0.8-dev, libgcrypt11-dev, libgnutls-dev, libglib2.0-dev +Homepage: http://www.openvas.org/ +Vcs-Browser: http://wald.intevation.org/plugins/scmsvn/viewcvs.php/trunk/openvas-libnasl/packaging/debian/?root=openvas +Vcs-Svn: https://svn.wald.intevation.org/svn/openvas/trunk/openvas-libnasl/packaging/debian/ +Standards-Version: 3.8.0 + +Package: libopenvasnasl1-dev +Section: libdevel +Architecture: any +Depends: libopenvasnasl1 (= ${binary:Version}), ${shlibs:Depends}, libopenvas1-dev (>= 2.0.0) , libgpgme11-dev (>= 1.1.5), libpcap0.8-dev, libgcrypt11-dev, libgnutls-dev +Description: OpenVAS static libraries and headers + The OpenVAS Security Scanner is a security auditing tool. It makes + possible to test security modules in an attempt to find vulnerable + spots 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 the user a nice X11/GTK+ interface. + . + This package contains the required static libraries, headers, and + the openvas-config script. + +Package: libopenvasnasl1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: OpenVAS shared libraries + The OpenVAS Security Scanner is a security auditing tool. It makes + possible to test security modules in an attempt to find vulnerable + spots 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 the user a nice X11/GTK+ interface. + . + This package contains the required shared libraries. --- openvas-libnasl-2.0.0.orig/debian/changelog +++ openvas-libnasl-2.0.0/debian/changelog @@ -0,0 +1,77 @@ +openvas-libnasl (2.0.0-1v2) unstable; urgency=low + + * Added libglib2.0-dev to the build deps. + + -- Ludwig Reiter Wed, 14 Jan 2009 16:22:41 +0100 + +openvas-libnasl (2.0.0-1) unstable; urgency=low + + * New upstream release + + -- Javier Fernandez-Sanguino Pen~a Fri, 02 Jan 2009 01:21:09 +0100 + +openvas-libnasl (1.0.1-1) unstable; urgency=low + + * New upstream release + * Set Debian Maintainers Mailing List as Maintainer + * Add Tim and myself to Uploaders + * Add Vcs-Headers + * bump Standards Version to 3.8.0, no changes needed + * setting version build dependency of libopenvas1-dev to (>= 1.0.2) + * remove trailing whitespaces from EOL and EOF in debian/* + * also depend on libopenvas1-dev (>= 1.0.2) , libgpgme11-dev (>= 1.1.5), + libpcap0.8-dev, libgcrypt11-dev, libgnutls-dev for -dev + * remove dependency on libopenvas1 for libopenvasnasl1 and make use of + ${misc:Depends} + * remove debian/*.dirs since unneeded + + -- Jan Wagner Fri, 04 Jul 2008 14:45:39 +0200 + +openvas-libnasl (1.0.0-6) unstable; urgency=low + + * Replaced nasl/lfind.c from upstream's tarball and replaced with + http://ftp.netbsd.org/pub/NetBSD/NetBSD-release-3-1/src/lib/libc/stdlib/lsearch.c. + This fixes a problem where the original file was 4-clause BSD + * Expanded the debian/copyright notice to cover change to nasl/lsearch.c, + the missing PKT_LICENSE file and the OpenSSL-exemption + * Minor updates to control file, fixed Build-Depend directive + + -- Tim Brown Fri, 13 Jun 2008 09:40:16 +0100 + +openvas-libnasl (1.0.0-5) unstable; urgency=low + + * Expand the debian/copyright information based on a deep review of the + copyright notices of all the source code + + -- Tim Brown Fri, 23 May 2008 13:27:14 +0100 + +openvas-libnasl (1.0.0-4) unstable; urgency=low + + * Minor updates to control file to fix issues highlighted by jfs in regard + to the priority + + -- Tim Brown Wed, 30 Apr 2008 23:26:14 +0100 + +openvas-libnasl (1.0.0-3) unstable; urgency=low + + * Modify nasl/Makefile to make it clean properly the openvasl-nasl binary + file. + * Modify Makefile and nasl/Makefile to restore the DESTDIR definitions so + that the binaries can be properly installed from within the package + + -- Javier Fernandez-Sanguino Pen~a Wed, 16 Apr 2008 14:37:44 +0200 + +openvas-libnasl (1.0.0-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 libopenvas1-dev.install + + -- Tim Brown Wed, 16 Apr 2008 07:13:14 +0100 + +openvas-libnasl (1.0.0-1) unstable; urgency=low + + * Initial release + + -- Tim Brown Tue, 05 Feb 2008 23:29:47 +0000