# HG changeset patch # User Srinivasa Sarva # Date 1297815160 28800 # Node ID 5483a3df388e832de7f04c1717625682bc9535db # Parent b48900498bf4c418e090e6615765f5be558fc668 7019432 Move tcpdump to userland diff -r b48900498bf4 -r 5483a3df388e components/tcpdump/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/tcpdump/Makefile Tue Feb 15 16:12:40 2011 -0800 @@ -0,0 +1,53 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# +include ../../make-rules/shared-macros.mk + +COMPONENT_NAME= tcpdump +COMPONENT_VERSION= 4.1.1 +COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) +COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz +COMPONENT_ARCHIVE_HASH= sha1:8f356cbc781192ecb527623d68db90e06aa9d4b9 +COMPONENT_ARCHIVE_URL= http://www.tcpdump.org/release/$(COMPONENT_ARCHIVE) + +include ../../make-rules/prep.mk +include ../../make-rules/configure.mk +include ../../make-rules/ips.mk + +CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" +CONFIGURE_OPTIONS += --enable-ipv6=yes +CONFIGURE_OPTIONS += --with-user=nobody +CONFIGURE_OPTIONS += --without-crypto + +# common targets +build: $(BUILD_32) + +install: $(INSTALL_32) + +test: + @echo "no tests available" + + +BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) + +include ../../make-rules/depend.mk + diff -r b48900498bf4 -r 5483a3df388e components/tcpdump/SUNWtcpdump.p5m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/tcpdump/SUNWtcpdump.p5m Tue Feb 15 16:12:40 2011 -0800 @@ -0,0 +1,33 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# + +# +# Legacy package information for renamed SUNWtcpdump package +# + +set name=pkg.fmri value=pkg:/SUNWtcpdump@4.1.1,5.11-0.133 +set name=pkg.renamed value=true + +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +depend fmri=diagnostic/tcpdump@4.1.1-0.133 type=require diff -r b48900498bf4 -r 5483a3df388e components/tcpdump/tcpdump.license --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/tcpdump/tcpdump.license Tue Feb 15 16:12:40 2011 -0800 @@ -0,0 +1,76 @@ +Copyright (C) 1982,1986,1988-2002 The Regents of the University of California +Copyright (C) 1998-2007 The TCPDUMP project +Copyright (C) 1995-1999,2001 WIDE Project +Copyright (C) 2003 Bruce M. Simpson +Copyright (C) 2002 Guy Harris +Copyright (C) 1997 Yen Yen Lim and North Dakota State University +Copyright (C) 1988,1989 Carnegie Mellon +Copyright (C) 1992-2006 Free Software Foundation, Inc. +Copyright (C) 2003-2004 David Young. +Copyright (C) 2004 2004 Arnaldo Carvalho de Melo +Copyright (C) 2005 Ian McDonald +Copyright (C) 2005 Yoshifumi Nishida +Copyright (C) 1995-1998 John Ioannidis, Angelos D. Keromytis and Niels Provos +Copyright (C) 2001 Angelos D. Keromytis +Copyright (C) 2001 Fortress Technologies +Copyright (C) 1991 Massachusetts Institute of Technology +Copyright (C) 1990,1996 John Robert LoVersoi +Copyright (C) 1999-2001 William C. Fenneri +Copyright (C) 1993 by Digital Equipment Corporation +Copyright (C) 1998-2004 Michael Richardson +Copyright (C) 1993-1994 Jeffrey C. Mogul, Digital Equipment Corporation, Western Research Laboratory +Copyright (C) 2001 Compaq Computer Corporation +Copyright (C) 1984 Sun Microsystems, Inc. +Copyright (C) 2001 Fortress Technologies, Inc. Charlie Lenahan (clenahan@fortresstech.com) +Copyright (C) 2003 Bruce M. Simpson +Copyright (C) 1997-1998 The NetBSD Foundation, Inc. +Copyright (C) 2000 Richard Sharpe +Copyright (C) 2007 paolo.abeni@email.it +Copyright (C) 1998 Michael Shalayeff +Copyright (C) 2005 Arnaldo Carvalho de Melo +Copyright (C) 2005 Ian McDonald +Copyright (C) 2005 Yoshifumi Nishida +Copyright (C) 2004 Michael Richardson +Copyright (C) 1998-2004 Hannes Gredler +Copyright (C) 2002 Jason L. Wright (jason@thought.net) +Copyright (C) 2001 Julian Cowley +Copyright (C) 2000 Alfredo Andres Omella +Copyright (C) 2007 Andrey "nording" Chernyak +Copyright (C) 2000 United States Government as represented by the Secretary of the Navy +Copyright (C) 2001 NETLAB, Temple University +Copyright (C) 2001 Protocol Engineering Lab, University of Delaware +Copyright (C) 1995-1999 Andrew Tridgell +Copyright (C) 2001 Seth Webster +Copyright (C) 2002-2003 NetGroup, Politecnico di Torino (Italy) +Copyright (C) 1990-1991, 1993-1997 John Robert LoVerso +Copyright (C) 1999 J. Schoenwaelder +Copyright (C) 2000 Lennert Buytenhek +Copyright (C) 1998-2004 Hannes Gredler +Copyright (C) 1994 Simon J. Gerraty +Copyright (C) 2000 Ben Smithurst +Copyright (C) 2001 Nickolai Zeldovich +Copyright (C) 1999 Cisco And Motorola +Copyright (C) 1995-1999 Andrew Tridgell +Copyright (C) 1998, Larry Lile + + + +License: BSD + +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. The names of the authors may not be used to endorse or promote + products derived from this software without specific prior + written permission. + +THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. diff -r b48900498bf4 -r 5483a3df388e components/tcpdump/tcpdump.p5m --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/tcpdump/tcpdump.p5m Tue Feb 15 16:12:40 2011 -0800 @@ -0,0 +1,45 @@ +# +# CDDL HEADER START +# +# The contents of this file are subject to the terms of the +# Common Development and Distribution License (the "License"). +# You may not use this file except in compliance with the License. +# +# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE +# or http://www.opensolaris.org/os/licensing. +# See the License for the specific language governing permissions +# and limitations under the License. +# +# When distributing Covered Code, include this CDDL HEADER in each +# file and include the License file at usr/src/OPENSOLARIS.LICENSE. +# If applicable, add the following below this CDDL HEADER, with the +# fields enclosed by brackets "[]" replaced with your own identifying +# information: Portions Copyright [yyyy] [name of copyright owner] +# +# CDDL HEADER END +# +# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. +# +set name=pkg.fmri value=pkg:/diagnostic/tcpdump@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) +set name=pkg.summary value="network traffic sniffer" +set name=pkg.description value="A tool for network monitoring and data acquisition" +set name=info.classification value="org.opensolaris.category.2008:Applications/Internet" +set name=info.upstream_url value=http://www.tcpdump.org +set name=info.source_url value=$(COMPONENT_ARCHIVE_URL) +set name=org.opensolaris.consolidation value=$(CONSOLIDATION) + +dir path=usr +dir path=usr/sbin +dir path=usr/share +dir path=usr/share/man +dir path=usr/share/man/man1 +file path=usr/sbin/tcpdump +file path=usr/share/man/man1/tcpdump.1 + +license tcpdump.license license="BSD" + +legacy pkg=SUNWtcpdump \ + name="tcpdump - network traffic sniffer" \ + desc="tcpdump - A tool for network monitoring and data acquisition 4.1.1" + +