summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/NEWS25
-rw-r--r--debian/README.Debian9
-rw-r--r--debian/README.source33
-rw-r--r--debian/changelog215
-rw-r--r--debian/compat1
-rw-r--r--debian/control183
-rw-r--r--debian/copyright1132
-rw-r--r--debian/docs3
-rw-r--r--debian/gbp.conf9
-rw-r--r--debian/golang-doc.dirs1
-rw-r--r--debian/golang-doc.install3
-rw-r--r--debian/golang-doc.links3
-rw-r--r--debian/golang-go.dirs3
-rw-r--r--debian/golang-go.install19
-rw-r--r--debian/golang-go.links1
-rw-r--r--debian/golang-go.lintian-overrides16
-rw-r--r--debian/golang-mode.emacsen-install34
-rw-r--r--debian/golang-mode.emacsen-remove9
-rw-r--r--debian/golang-mode.emacsen-startup7
-rw-r--r--debian/golang-mode.install1
-rw-r--r--debian/golang-tools.dirs1
-rw-r--r--debian/golang-tools.install6
-rw-r--r--debian/golang-tools.lintian-overrides20
-rw-r--r--debian/kate-syntax-go.install1
-rw-r--r--debian/native-symlinks.mk14
-rw-r--r--debian/patches/001-allow_IPv4_on_IPv6_sockets.patch26
-rw-r--r--debian/patches/003-set_correct_runpath.patch11
-rw-r--r--debian/patches/005-goinstall_dont_call_home_by_default.patch22
-rw-r--r--debian/patches/006-fix_kfreebsd_build.patch100
-rw-r--r--debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch22
-rw-r--r--debian/patches/008-emacs-mode-key-literal-indent.patch19
-rw-r--r--debian/patches/009-goinstall_can_install_to_GOPATH.patch13
-rw-r--r--debian/patches/series7
-rwxr-xr-xdebian/rules139
-rw-r--r--debian/source/format1
-rw-r--r--debian/vim-registry/vim-syntax-go.yaml8
-rw-r--r--debian/vim-syntax-go.install5
37 files changed, 2122 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 000000000..b3df2a717
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,25 @@
+golang (1:58-1) unstable; urgency=low
+
+ Most significant upstream changes in this release:
+ * As usual, gofix will handle the bulk of the rewrites necessary for
+ these changes to package APIs.
+ * Package http drops the finalURL return value from the Client.Get
+ method. The value is now available via the new Request field on
+ http.Response. Most instances of the type map[string][]string in have
+ been replaced with the new Values type.
+ * Package exec has been redesigned with a more convenient and succinct
+ API.
+ * Package strconv's Quote function now escapes only those Unicode code
+ points not classified as printable by unicode.IsPrint. Previously
+ Quote would escape all non-ASCII characters. This also affects the fmt
+ package's "%q" formatting directive. The previous quoting behavior is
+ still available via strconv's new QuoteToASCII function.
+ * Package os/signal's Signal and UnixSignal types have been moved to
+ the os package.
+ * Package image/draw is the new name for exp/draw. The GUI-related code
+ from exp/draw is now located in the exp/gui package.
+ * Goinstall now observes the GOPATH environment variable to build and
+ install your own code and external libraries outside of the Go tree
+ (and avoid writing Makefiles).
+
+ -- Ondřej Surý <ondrej@debian.org> Thu, 30 Jun 2011 15:39:21 +0200
diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 000000000..5eb699d99
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,9 @@
+ == Installation of additional packages with goinstall ==
+
+Debian's goinstall was modified to not install dependencies by
+default, because it tries to recompile system libraries, which fails.
+If you want to use goinstall you are probably better using golang-go
+installed in your home, because goinstall is not very FHS friendly
+now.
+
+ -- Ondřej Surý <ondrej@debian.org>, Fri, 18 Feb 2011 15:38:47 +0100
diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 000000000..1c65c0c0d
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,33 @@
+The golang package is generated only for i386, amd64, armel, armhf and
+kfreebsd-* architectures, because of upstream restrictions.
+
+Quoting from upstream documentation (http://golang.org/doc/install.html):
+
+ The Go compilers support three instruction sets. There are
+ important differences in the quality of the compilers for the
+ different architectures.
+
+ amd64 (a.k.a. x86-64); 6g,6l,6c,6a
+ The most mature implementation. The compiler has an effective
+ optimizer (registerizer) and generates good code (although
+ gccgo can do noticeably better sometimes).
+
+ 386 (a.k.a. x86 or x86-32); 8g,8l,8c,8a
+ Comparable to the amd64 port.
+
+ arm (a.k.a. ARM); 5g,5l,5c,5a
+ Incomplete. It only supports Linux binaries, the optimizer is
+ incomplete, and floating point uses the VFP unit. However, all
+ tests pass. Work on the optimizer is continuing. Tested
+ against a Nexus One.
+
+ Except for things like low-level operating system interface code,
+ the run-time support is the same in all ports and includes a
+ mark-and-sweep garbage collector (a fancier one is in the works),
+ efficient array and string slicing, support for segmented stacks,
+ and a strong goroutine implementation.
+
+ The compilers can target the FreeBSD, Linux, and OS X
+ (a.k.a. Darwin) operating systems.
+
+ -- Ondřej Surý <ondrej@debian.org>, Thu, 28 Apr 2011 11:33:26 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 000000000..5edae2225
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,215 @@
+golang (1:58-1) unstable; urgency=low
+
+ * Imported Upstream version 58
+ + Add NEWS file with upstream API changes
+ * Remove patch to not update standard package, fixed in upstream
+
+ -- Ondřej Surý <ondrej@debian.org> Thu, 30 Jun 2011 15:36:35 +0200
+
+golang (1:57.2-1) unstable; urgency=low
+
+ * Imported Upstream version 57.2
+ * More spelling fixes (Closes: #630660)
+
+ -- Ondřej Surý <ondrej@debian.org> Thu, 16 Jun 2011 11:10:58 +0200
+
+golang (1:57.1-4) unstable; urgency=low
+
+ * Description update to have proper articles and capitalization
+ (Closes: #630189)
+ * Add extended description about Go being experimental and that the
+ languager can change between releases
+
+ -- Ondřej Surý <ondrej@debian.org> Tue, 14 Jun 2011 21:38:11 +0200
+
+golang (1:57.1-3) unstable; urgency=low
+
+ * Fix "the Google's Go implementation" in extended description
+ (Closes: #627814)
+ * Update Vcs-* links
+ * Install vim ftplugin files into correct directory (Closes: #629844)
+
+ -- Ondřej Surý <ondrej@debian.org> Thu, 09 Jun 2011 10:10:41 +0200
+
+golang (1:57.1-2) unstable; urgency=low
+
+ * Bump standards version to 3.9.2
+ * Capitalize Kate (Closes: #627036)
+ * Import slightly modified patch to be more clear about $GOPATH
+ installs for non-root users
+ * Remove don't install deps patch from goinstall; deprecated by
+ $GOPATH installs
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 23 May 2011 11:07:11 +0200
+
+golang (1:57.1-1) unstable; urgency=low
+
+ * Add support for dot-minor releases
+ * Imported Upstream version 57.1
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 16 May 2011 11:45:53 +0200
+
+golang (1:57-3) unstable; urgency=low
+
+ [ Florian Weimer ]
+ * golang-tools: install gofix binary
+
+ [ Ondřej Surý ]
+ * Add lintian-overrides for gofix binary
+
+ -- Ondřej Surý <ondrej@debian.org> Sat, 07 May 2011 20:41:58 +0200
+
+golang (1:57-2) unstable; urgency=low
+
+ * Remove weekly code from debian/rules
+ * Add golang meta-package
+ * Don't create tool chain symlinks twice
+ * Make debian/rules more generic for simpler sync between weekly
+ and release branches
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 04 May 2011 16:48:24 +0200
+
+golang (1:57-1) unstable; urgency=low
+
+ * Imported Upstream version r57
+ * Bumped epoch version to 1, to convert from date based versions
+ to release number based version
+ * Allow release to migrate to testing (Closes: #624408)
+ * Add kate and vim syntax highlighting (Closes: #624544)
+ * Add -dbg package with debugging symbols
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 04 May 2011 01:20:07 +0200
+
+golang (2011.04.27-2) unstable; urgency=low
+
+ * Fix yet another build failure on kfreebsd (use linux userspace)
+
+ -- Ondřej Surý <ondrej@debian.org> Fri, 29 Apr 2011 16:22:47 +0200
+
+golang (2011.04.27-1) unstable; urgency=low
+
+ * Imported Upstream version 2011.04.27
+ * Update debian/rules to allow pulling weekly upstream releases
+ * Don't remove RUNPATH from binaries; fixed upstream (golang#1527)
+ * Set GOHOSTOS and GOHOSTARCH to match dpkg-architecture variables
+ * Add support for kfreebsd-i386, kfreebsd-amd64, armel and armhf
+ architectures
+ + 006-fix_kfreebsd_build.patch:
+ - Add GNU/KFreeBSD support by replacing all uname calls by $(GOOS)
+ + 007-use_native_dynamic_linker_on_kfreebsd.patch:
+ - Use native kfreebsd dynamic linker (/lib/ld-*.so.1)
+ * Add information about available architectures (Closes: #623877)
+ * Don't strip gotest
+ * Add Depends: golang-go to golang-tools
+ * Add better support for armhf
+
+ -- Ondřej Surý <ondrej@debian.org> Thu, 28 Apr 2011 16:14:39 +0200
+
+golang (2011.04.13-1) unstable; urgency=low
+
+ [ Florian Weimer ]
+ * Delete bin directory in clean target
+ * Enable parallel build
+ * golang-src: install source files directly
+ * Use proper symlink targets for architecture-independent toolchain
+ names
+ * Emacs mode: indent keys in struct literals properly
+
+ [ Ondřej Surý ]
+ * Imported Upstream weekly version 2011.04.13
+ * Update patches to new weekly release
+ * Add lintian-override for gotest binary
+
+ -- Ondřej Surý <ondrej@debian.org> Tue, 26 Apr 2011 09:59:28 +0200
+
+golang (2011.03.07.1-1) unstable; urgency=low
+
+ * Imported Upstream version 2011.03.07.1
+ * Install to /usr/lib/go
+ * Remove xkcd strip to get rid of CC-NC-BY
+ * Update golang-src.install to new upstream
+ * Remove 002-use_GOROOT_FINAL_in_generated_binaries.patch; merged
+ upstream
+ * Make all .go files no-executable
+ * Update lintian-overrides to include both types of syntax
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 20 Apr 2011 17:36:48 +0200
+
+golang (2011.02.15-2) unstable; urgency=low
+
+ [ Ondřej Surý ]
+ * Add ${misc:Depends} to golang-mode to shutup lintian
+ * Rehaul build system and add golang-src package with .go source files
+ * goinstall: do not automatically install prerequisities
+ * goinstall: don't report to dashboard by default
+ * Add a README.Debian about local modifications to goinstall
+ * Add warning about local modifications also directly to goinstall command
+
+ [ Florian Weimer ]
+ * Fix syntax error in 004-
+ dont_reinstall_dependencies_in_goinstall.patch
+
+ -- Ondřej Surý <ondrej@debian.org> Fri, 18 Feb 2011 16:02:09 +0100
+
+golang (2011.02.15-1) unstable; urgency=low
+
+ [ Obey Arthur Liu ]
+ * Added pkg-google git repo to control file
+
+ [ Florian Weimer ]
+ * Build golang-mode package
+
+ [ Ondřej Surý ]
+ * Imported Upstream version 2011.02.15
+ * Don't compress godoc documentation
+ * Correctly use $GOROOT_FINAL in the build chain
+ * Remove RPATH/RUNPATH from go binaries
+
+ -- Ondřej Surý <ondrej@debian.org> Fri, 18 Feb 2011 11:39:10 +0100
+
+golang (2011.02.01.1-1) unstable; urgency=low
+
+ [ Ivan Wong ]
+ * Initial release (Closes: #574371)
+
+ [ Jonathan Nieder ]
+ * Fill out copyright file
+ * Rewrite debian/rules using dh driver
+ * debian: fix get-orig-source rule
+ * debian: do not install extra files on repeated build
+ * debian: fix reversed ‘if’
+ * debian: do not leave around stale debian/env.sh+ file
+ * debian: Build-Depends on awk instead of gawk
+ * debian: add run-time dependency on perl
+ * debian: add build-time dependency on perl
+ * debian: fix setting of GOARM on arm
+ * debian: do not compress files in web page
+ * debian: install favicon
+
+ [ Ondřej Surý ]
+ * Make myself a maintainer
+ * Add patch to allow IPv4 on IPv6 sockets (Courtesy of Florian Weimer)
+ * Use GOROOT_FINAL and change GOBIN to /usr/bin
+ * Get rid of env.sh and wrappers
+ * Add support for building in i386 pbuilder on amd64 architecture
+ * Rename source package to golang to match upstream repository name
+ * Add golang-doc package
+ * Split package into compiler, docs and tools
+ * Don't install quietgcc and hgpatch
+ * Don't generate fake gomake
+ * Update golang-doc package
+ * Export GOHOSTARCH and GOHOSTOS
+ * Disable build time checks
+ * Fail on missed installed files
+ * Revert s{tmp{golang-go{ change in DESTDIR
+ * Relicence debian/ files from versionless GPL to GPL-3
+ * Move golang-doc to doc section
+ * Add more lintian overrides for Go binaries
+ * Install all 6,8,5 variants of commands
+ * Install golang-* symlinks for 6,8,5* commands
+ * Don't strip govet as well
+ * Remove ${shlibs:Depends} where it doesn't belong
+ * Move more html files to golang-doc package
+ * Remove codereview directory - some python code to deal with mercurial
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 14 Feb 2011 17:42:39 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 000000000..7f8f011eb
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 000000000..8c4720b3a
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,183 @@
+Source: golang
+Section: devel
+Priority: optional
+Maintainer: Ondřej Surý <ondrej@debian.org>
+Vcs-Browser: http://git.debian.org/?p=pkg-google/golang.git
+Vcs-Git: git://git.debian.org/pkg-google/golang.git
+Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl
+Standards-Version: 3.9.2
+Homepage: http://golang.org/
+
+Package: golang-go
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
+Recommends: golang-tools
+Provides: go-compiler
+Description: Experimental Go programming language compiler
+ This package provides assembler, compiler and linker for the Go
+ programming language. This is Google's Go implementation of the
+ tool chain.
+ .
+ The Go programming language is an open source project to make
+ programmers more productive. Go is expressive, concise, clean, and
+ efficient. Its concurrency mechanisms make it easy to write programs
+ that get the most out of multicore and networked machines, while its
+ novel type system enables flexible and modular program construction.
+ Go compiles quickly to machine code yet has the convenience of
+ garbage collection and the power of run-time reflection. It's a
+ fast, statically typed, compiled language that feels like a
+ dynamically typed, interpreted language.
+ .
+ Go is an experiment. We hope adventurous users will give it a try and
+ see if they enjoy it. Not every programmer will, but we hope enough
+ will find satisfaction in the approach it offers to justify further
+ development. The language can (and still does) change between stable
+ releases, check http://golang.org/doc/devel/release.html before
+ upgrading this package.
+
+Package: golang-src
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}, golang-go
+Recommends: golang-tools
+Description: Go programming language compiler (.go source files)
+ This package provides the source files for the Go programming
+ language needed for godoc and goinstall.
+ .
+ The Go programming language is an open source project to make
+ programmers more productive. Go is expressive, concise, clean, and
+ efficient. Its concurrency mechanisms make it easy to write programs
+ that get the most out of multicore and networked machines, while its
+ novel type system enables flexible and modular program construction.
+ Go compiles quickly to machine code yet has the convenience of
+ garbage collection and the power of run-time reflection. It's a
+ fast, statically typed, compiled language that feels like a
+ dynamically typed, interpreted language.
+ .
+ Go is an experiment. We hope adventurous users will give it a try and
+ see if they enjoy it. Not every programmer will, but we hope enough
+ will find satisfaction in the approach it offers to justify further
+ development. The language can (and still does) change between stable
+ releases, check http://golang.org/doc/devel/release.html before
+ upgrading this package.
+
+Package: golang-doc
+Architecture: all
+Depends: ${misc:Depends}
+Section: doc
+Description: Documentation for Google's Go programming language
+ This package provides the documentation for the Go programming
+ language.
+ .
+ The Go programming language is an open source project to make
+ programmers more productive. Go is expressive, concise, clean, and
+ efficient. Its concurrency mechanisms make it easy to write programs
+ that get the most out of multicore and networked machines, while its
+ novel type system enables flexible and modular program construction.
+ Go compiles quickly to machine code yet has the convenience of
+ garbage collection and the power of run-time reflection. It's a
+ fast, statically typed, compiled language that feels like a
+ dynamically typed, interpreted language.
+ .
+ After installing golang-tools package, you can view a nicely
+ formatted documentation by running godoc --http=:6060 and then
+ visiting http://localhost:6060/doc/install.html.
+ .
+ Go is an experiment. We hope adventurous users will give it a try and
+ see if they enjoy it. Not every programmer will, but we hope enough
+ will find satisfaction in the approach it offers to justify further
+ development. The language can (and still does) change between stable
+ releases, check http://golang.org/doc/devel/release.html before
+ upgrading this package.
+
+Package: golang-tools
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: golang-go, ${shlibs:Depends}, ${misc:Depends}
+Recommends: golang-src
+Description: Tools for Google's Go programming language
+ This package provides various tools for the Go programming language:
+ * godoc - extracts and generates documentation for Go programs
+ * gofix - upgrade Go programs to the most recent release
+ * gofmt - formats Go programs
+ * goinstall - automatic package installation
+ * gotry - evaluate expressions on the command line
+ * govet - simple checking of Go source code
+ .
+ The Go programming language is an open source project to make
+ programmers more productive. Go is expressive, concise, clean, and
+ efficient. Its concurrency mechanisms make it easy to write programs
+ that get the most out of multicore and networked machines, while its
+ novel type system enables flexible and modular program construction.
+ Go compiles quickly to machine code yet has the convenience of
+ garbage collection and the power of run-time reflection. It's a
+ fast, statically typed, compiled language that feels like a
+ dynamically typed, interpreted language.
+ .
+ Go is an experiment. We hope adventurous users will give it a try and
+ see if they enjoy it. Not every programmer will, but we hope enough
+ will find satisfaction in the approach it offers to justify further
+ development. The language can (and still does) change between stable
+ releases, check http://golang.org/doc/devel/release.html before
+ upgrading this package.
+
+Package: golang-mode
+Architecture: all
+Depends: ${misc:Depends}, emacs23 | emacsen
+Suggests: golang-go
+Description: Go mode for GNU Emacs
+ Provides a major mode for GNU Emacs to edit programs written in Google's
+ Go programming language.
+
+Package: kate-syntax-go
+Architecture: all
+Depends: ${misc:Depends}, kate
+Suggests: golang-go
+Description: Syntax files to highlight Go in the Kate editor
+ Provides a syntax highlighting for the Kate editor to edit programs
+ written in Google's Go programming language.
+
+Package: vim-syntax-go
+Architecture: all
+Depends: ${misc:Depends}, vim
+Recommends: vim-addon-manager
+Suggests: golang-go
+Description: Syntax files to highlight Go in the Vim editor
+ Provides a syntax highlighting for the Vim editor to edit programs
+ written in Google's Go programming language.
+
+Package: golang-dbg
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: ${misc:Depends}, golang-go (= ${binary:Version})
+Recommends: gdb
+Section: debug
+Priority: extra
+Description: Go programming language tool chain [debug]
+ This package provides the debug symbols for Google's Go tool
+ chain binaries (assembler, compiler, linker) needed for properly
+ debugging errors in the tool chain with gdb.
+
+Package: golang
+Depends: ${misc:Depends},
+ golang-go (>= ${source:Version}),
+ golang-src (>= ${source:Version}),
+ golang-tools (>= ${source:Version})
+Architecture: all
+Description: Experimental Go programming language [meta package]
+ This package is a metapackage that, when installed, guarantees
+ that the full Go development environment is installed.
+ .
+ The Go programming language is an open source project to make
+ programmers more productive. Go is expressive, concise, clean, and
+ efficient. Its concurrency mechanisms make it easy to write programs
+ that get the most out of multicore and networked machines, while its
+ novel type system enables flexible and modular program construction.
+ Go compiles quickly to machine code yet has the convenience of
+ garbage collection and the power of run-time reflection. It's a
+ fast, statically typed, compiled language that feels like a
+ dynamically typed, interpreted language.
+ .
+ Go is an experiment. We hope adventurous users will give it a try and
+ see if they enjoy it. Not every programmer will, but we hope enough
+ will find satisfaction in the approach it offers to justify further
+ development. The language can (and still does) change between stable
+ releases, check http://golang.org/doc/devel/release.html before
+ upgrading this package.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 000000000..9c240a6e2
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,1132 @@
+Source: https://go.googlecode.com/hg/
+
+Files: *
+Copyright: © 2009, 2010, The Go Authors. All rights reserved.
+License: Go
+
+Files: include/*, src/lib9/*, src/libbio/*, src/pkg/runtime/386/*,
+ src/libmach/*, src/pkg/runtime/arm/vlop.s, src/pkg/runtime/arm/vlrt.c,
+ src/pkg/runtime/arm/memset.s, src/pkg/runtime/arm/memmove.s,
+ src/pkg/runtime/amd64/memmove.s, src/pkg/runtime/amd64/memmove.s,
+ src/pkg/math/fltasm_amd64.s, src/cmd/6c/txt.c, src/cmd/gopack/ar.c,
+ src/cmd/ld/lib.[ch], src/cmd/6a/a.[yh], src/cmd/6a/lex.c,
+ src/cmd/5g/gobj.c, src/cmd/5g/list.c, src/cmd/5g/gsubr.c,
+ src/cmd/5g/opt.h, src/cmd/8c/*, src/cmd/goyacc/goyacc.go,
+ src/cmd/5l/*, src/cmd/6g/reg.c, src/cmd/6g/gobj.c,
+ src/cmd/6g/peep.c, src/cmd/6g/list.c, src/cmd/6g/gsubr.c,
+ src/cmd/6g/opt.c, src/cmd/8l/*, src/cmd/nm/nm.c,
+ src/cmd/gc/bits.c, src/cmd/cc/*, src/cmd/5a/*, src/cmd/8g/reg.c,
+ src/cmd/8g/gobj.c, src/cmd/8g/peep.c, src/cmd/8g/list.c,
+ src/cmd/8g/gsubr.c, src/cmd/8g/opt.h, src/cmd/5c/*, src/cmd/6l/*,
+ src/cmd/8a/*
+Origin: Plan 9 from User Space include/, src/lib9/, src/libmach/
+ Inferno utils/include/, utils/libmach/, utils/6c/, utils/iar/,
+ utils/6l/, utils/6a/, utils/5c/, utils/8c/, utils/iyacc/,
+ utils/5l/, utils/6c/, utils/8l/, utils/nm/, utils/cc/,
+ utils/5a/, utils/8a/, lib9/, libkern/, libbio/
+Copyright: © 1994-1999 Lucent Technologies Inc. All rights reserved.
+ Portions © 1997-1999 Vita Nuova Limited
+ Portions © 2000-2007 Vita Nuova Holdings Limited (www.vitanuova.com)
+ Portions © 2001-2007 Russ Cox. All rights reserved.
+ Portions © 2004,2006 Bruce Ellis
+ Portions © 1995-2007 C H Forsyth (forsyth@terzarima.net)
+ Revisions © 2000-2007 Lucent Technologies Inc. and others
+ Portions © 2009 The Go Authors. All rights reserved.
+License: X11
+
+Files: src/lib9/goos.c, src/lib9/win32.c, src/lib9/Makefile,
+ src/pkg/runtime/386/asm.s, src/pkg/runtime/386/closure.c,
+ src/pkg/runtime/arm/asm.s, src/pkg/runtime/arm/closure.c,
+ src/pkg/runtime/arm/cas5.s, src/libmach/fakeobj.c,
+ src/libmach/macho.h, src/cmd/6c/doc.go, src/cmd/6c/Makefile,
+ src/cmd/8c/doc.go, src/cmd/8c/Makefile, src/cmd/5l/doc.go,
+ src/cmd/5l/softfloat.c, src/cmd/5l/Makefile, src/cmd/8l/doc.go,
+ src/cmd/8l/Makefile, src/cmd/cc/doc.go, src/cmd/cc/Makefile,
+ src/cmd/5a/doc.go, src/cmd/5a/Makefile, src/cmd/5c/doc.go,
+ src/cmd/5c/Makefile, src/cmd/6l/doc.go, src/cmd/6l/Makefile,
+ src/cmd/8a/doc.go, src/cmd/8a/Makefile
+Copyright: © 2009, 2010, The Go Authors. All rights reserved.
+License: Go
+
+Files: include/fmt.h, src/lib9/utf/*, src/lib9/fmt/*,
+ src/pkg/runtime/rune.c
+Copyright: © 1998-2002 by Lucent Technologies.
+ Portions © 2004 Google Inc.
+ Portions © 2009 The Go Authors. All rights reserved.
+License:
+ The authors of this software are Rob Pike and Ken Thompson,
+ with contributions from Mike Burrows and Sean Dorward.
+ Copyright (c) 1998-2006 by Lucent Technologies.
+ Portions Copyright (c) 2004 Google Inc.
+ Portions Copyright (c) 2009 The Go Authors. All rights reserved.
+ Permission to use, copy, modify, and distribute this software for any
+ purpose without fee is hereby granted, provided that this entire notice
+ is included in all copies of any software which is or includes a copy
+ or modification of this software and in all copies of the supporting
+ documentation for such software.
+ THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
+ WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY
+ REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY
+ OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE.
+
+Files: src/lib9/utf/mkrunetype.c
+Copyright: © 2009, The Go Authors. All rights reserved.
+License: Go
+
+Files: src/cmd/cov/tree.[ch]
+Copyright: © 2003-2007 Russ Cox, Tom Bergan, Austin Clements,
+ Massachusetts Institute of Technology
+ Portions © 2009 The Go Authors. All rights reserved.
+License: X11
+
+Files: src/cmd/prof/gopprof
+Origin: based on src/pprof from google-perftools
+Copyright: © 1998-2007, Google Inc.
+License: Perftools
+Notes:
+ This is a copy of http://google-perftools.googlecode.com/svn/trunk/src/pprof
+ with local modifications to handle generation of SVG images and
+ the Go-style pprof paths. These modifications will probably filter
+ back into the official source before long.
+ It's convenient to have a copy here because we need just the one
+ Perl script, not all the C++ libraries that surround it.
+
+Files: src/pkg/runtime/tiny/bootblock
+Origin: Xv6 rev3
+Copyright: © 2006-2009 Frans Kaashoek, Robert Morris, Russ Cox,
+ Massachusetts Institute of Technology
+License: X11
+
+Files: src/pkg/debug/dwarf/testdata/typedef.macho,
+ src/pkg/debug/dwarf/testdata/typedef.elf
+Source: src/pkg/debug/dwarf/testdata/typedef.c
+Copyright: © 2009, The Go Authors. All rights reserved.
+License: Go
+
+Files: src/pkg/debug/macho/testdata/gcc-amd64-darwin-exec-debug,
+ src/pkg/debug/macho/testdata/gcc-386-darwin-exec,
+ src/pkg/debug/macho/testdata/gcc-amd64-darwin-exec,
+ src/pkg/debug/elf/testdata/go-relocation-test-gcc424-x86-64.o,
+ src/pkg/debug/elf/testdata/gcc-amd64-linux-exec,
+ src/pkg/debug/elf/testdata/go-relocation-test-gcc441-x86.o,
+ src/pkg/debug/elf/testdata/gcc-386-freebsd-exec,
+ src/pkg/debug/elf/testdata/go-relocation-test-gcc441-x86-64.o
+Source: ?
+
+Files: src/pkg/debug/elf/elf.go, src/cmd/ld/elf.h
+Origin: FreeBSD src/sys/sys/elf{32,64,_common}.h, src/sys/*/include/elf.h
+Copyright: © 1996-1998 John D. Polstra. All rights reserved.
+ © 2001 David E. O'Brien
+ Portions © 2009 The Go Authors. All rights reserved.
+License: FreeBSD
+
+Files: src/pkg/math/log1p.go
+Origin: Translated and simplified from FreeBSD /usr/src/lib/msun/src/s_log1p.c
+Copyright: © 2010 The Go Authors. All rights reserved.
+ Based on code © 1993 by Sun Microsystems, Inc. All rights reserved.
+License: Go
+ The original C code, the long comment, and the constants
+ below are from FreeBSD's /usr/src/lib/msun/src/s_log1p.c
+ and came with this notice. The go code is a simplified
+ version of the original C.
+ .
+ ====================================================
+ Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
+ .
+ Developed at SunPro, a Sun Microsystems, Inc. business.
+ Permission to use, copy, modify, and distribute this
+ software is freely granted, provided that this notice
+ is preserved.
+
+Files: src/pkg/image/jpeg/idct.go
+Origin: Translated from idct.c in the MPEG-2 (ISO/IEC 13818-4)
+ technical report video software verifier (mpeg2decode)
+ version 960109
+Copyright: © 1996, MPEG Software Simulation Group. All Rights Reserved.
+License: MPEG
+
+Files: src/pkg/exp/spacewar/pdp1.go, src/pkg/exp/spacewar/spacewar.go
+Origin: Translated from the Java emulator pdp1.java in Spacewar!
+Copyright: © 1996 Barry Silverman, Brian Silverman, Vadim Gerasimov.
+ Portions © 2009 The Go Authors.
+License: Spacewar!
+
+Files: src/pkg/exp/spacewar/code.go
+Origin: The original Spacewar!
+Copyright: See license
+License: PD
+ This file contains the assembly language and machine code for
+ Spacewar!, the original PDP-1 video game. It is downloaded from
+ http://spacewar.oversigma.com/sources/sources.zip which has
+ the following notice at http://spacewar.oversigma.com/:
+ .
+ Spacewar! was conceived in 1961 by Martin Graetz, Stephen Russell,
+ and Wayne Wiitanen. It was first realized on the PDP-1 in 1962 by
+ Stephen Russell, Peter Samson, Dan Edwards, and Martin Graetz,
+ together with Alan Kotok, Steve Piner, and Robert A Saunders.
+ Spacewar! is in the public domain, but this credit paragraph must
+ accompany all distributed versions of the program.
+ .
+ This is the original version! Martin Graetz provided us with a
+ printed version of the source. We typed in in again - it was about
+ 40 pages long - and re-assembled it with a PDP-1 assembler written
+ in PERL. The resulting binary runs on a PDP-1 emulator written as
+ a Java applet. The code is extremely faithful to the original. There
+ are only two changes. 1)The spaceships have been made bigger and
+ 2) The overall timing has been special cased to deal with varying
+ machine speeds.
+ .
+ The "a", "s", "d", "f" keys control one of the spaceships. The "k",
+ "l", ";", "'" keys control the other. The controls are spin one
+ way, spin the other, thrust, and fire.
+ .
+ Barry Silverman
+ Brian Silverman
+ Vadim Gerasimov
+
+Files: src/pkg/exp/4s/xs.go, src/pkg/exp/4s/data.go
+Origin: Derived from Plan 9's /sys/src/games/xs.c
+Copyright: © 2003, Lucent Technologies Inc. and others. All Rights Reserved.
+ Portions © 2009 The Go Authors. All Rights Reserved.
+License: Plan9
+
+Files: src/cmd/goyacc/units.txt
+Origin: Plan9's /lib/units
+Copyright: © 2003, Lucent Technologies Inc. and others. All Rights Reserved.
+License: Plan9
+
+Files: src/cmd/goyacc/units.y
+Origin: Derived from Plan9's /sys/src/cmd/units.y
+Copyright: © 2003, Lucent Technologies Inc. and others. All Rights Reserved.
+ Portions © 2009 The Go Authors. All Rights Reserved.
+License: Plan9
+
+Files: src/pkg/html/testdata/webkit/*
+Origin: WebKit LayoutTests/html5lib/resources/
+Copyright: © 2009, Apple Inc. All rights reserved.
+License: WebKit
+
+Files: src/pkg/image/png/testdata/pngsuite/*
+Origin: libpng 1.2.40, contrib/pngsuite/*
+Copyright: © Willem van Schaik, 1999
+License: noderivs
+ Permission to use, copy, and distribute these images for any purpose and
+ without fee is hereby granted.
+
+Files: lib/codereview/*
+Copyright: © 2007-2009 Google Inc.
+License: Apache-2.0
+
+Files: lib/godoc/godoc.html
+Copyright: © 2009, 2010, The Go Authors. All rights reserved.
+License: CC-BY-3.0
+ Except as noted, this content is licensed under Creative Commons
+ Attribution 3.0
+
+Files: misc/cgo/gmp/pi.go
+Copyright: Brent Fulgham
+Authors: contributed by The Go Authors.
+ based on pidigits.c (by Paolo Bonzini & Sean Bartlett,
+ modified by Michael Mellor)
+License: Shootout
+
+Files: test/garbage/tree.go, test/bench/*
+Copyright: Brent Fulgham
+License: Shootout
+
+Files: favicon.ico, doc/gopher/*
+Author: Renée French
+License: CC-BY-3.0
+ The mascot and logo were designed by
+ Renée French <http://reneefrench.blogspot.com>, who also designed
+ Glenda <http://plan9.bell-labs.com/plan9/glenda.html>,
+ the Plan 9 bunny.
+ The gopher is derived from one she used for an WFMU <http://wfmu.org/>
+ T-shirt design some years ago.
+ The logo and mascot are covered by the
+ Creative Commons Attribution 3.0 <http://creativecommons.org/licenses/by/3.0>
+ license.
+
+Files: doc/*
+Copyright: © 2009, 2010, The Go Authors. All rights reserved.
+License: CC-BY-3.0
+ Except as noted, this content is licensed under Creative Commons
+ Attribution 3.0
+
+Files: doc/htmlgen.go, doc/makehtml, doc/popups.js, doc/style.css,
+ doc/Makefile, doc/codelab/wiki/Makefile, doc/prog.sh, doc/progs/*,
+ doc/codewalk/codewalk.css, doc/codewalk/codewalk.js,
+ doc/codewalk/urlpoll.go, doc/talks/io2010/*.go
+Copyright: © 2009, 2010, The Go Authors. All rights reserved.
+License: Go
+
+Files: doc/talks/slidy.*
+Origin: http://www.w3.org/Talks/Tools/Slidy/
+Copyright: © 2005 W3C (MIT, ERCIM, Keio), All Rights Reserved.
+License: W3C
+ W3C liability, trademark, document use and software licensing
+ rules apply, see:
+ .
+ http://www.w3.org/Consortium/Legal/copyright-documents
+ http://www.w3.org/Consortium/Legal/copyright-software
+
+Files: debian/*
+Copyright: © 2010, Ivan Wong <ivanwyc@gmail.com>, Ondřej Surý <ondrej@debian.org>
+License: GPL 3
+ See ‘/usr/share/common-licenses/GPL-3’.
+
+License: Go
+ Copyright © 2009 The Go Authors. All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * 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.
+ * Neither the name of Google Inc. 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 COPYRIGHT HOLDERS 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 COPYRIGHT
+ OWNER 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.
+ .
+ Subject to the terms and conditions of this License, Google hereby
+ grants to You a perpetual, worldwide, non-exclusive, no-charge,
+ royalty-free, irrevocable (except as stated in this section) patent
+ license to make, have made, use, offer to sell, sell, import, and
+ otherwise transfer this implementation of Go, where such license
+ applies only to those patent claims licensable by Google that are
+ necessarily infringed by use of this implementation of Go. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that this
+ implementation of Go or a Contribution incorporated within this
+ implementation of Go constitutes direct or contributory patent
+ infringement, then any patent licenses granted to You under this
+ License for this implementation of Go shall terminate as of the date
+ such litigation is filed.
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the Apache License, Version 2.0 can be found at
+ /usr/share/common-licenses/Apache-2.0.
+
+License: X11
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+
+License: FreeBSD
+ Copyright (c) 1996-1998 John D. Polstra. All rights reserved.
+ Copyright (c) 2001 David E. O'Brien
+ Portions Copyright 2009 The Go Authors. All rights reserved.
+ .
+ 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.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
+
+License: MPEG
+ These software programs are available to the user without any license fee or
+ royalty on an "as is" basis. The MPEG Software Simulation Group disclaims
+ any and all warranties, whether express, implied, or statuary, including any
+ implied warranties or merchantability or of fitness for a particular
+ purpose. In no event shall the copyright-holder be liable for any
+ incidental, punitive, or consequential damages of any kind whatsoever
+ arising from the use of these programs.
+ .
+ This disclaimer of warranty extends to the user of these programs and user's
+ customers, employees, agents, transferees, successors, and assigns.
+ .
+ The MPEG Software Simulation Group does not represent or warrant that the
+ programs furnished hereunder are free of infringement of any third-party
+ patents.
+ .
+ Commercial implementations of MPEG-1 and MPEG-2 video, including shareware,
+ are subject to royalty fees to patent holders. Many of these patents are
+ general enough such that they are unavoidable regardless of implementation
+ design.
+
+License: Perftools
+ Copyright (c) 1998-2007, Google Inc.
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are
+ met:
+ .
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ * 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.
+ * Neither the name of Google Inc. 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 COPYRIGHT HOLDERS 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 COPYRIGHT
+ OWNER 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.
+
+License: Shootout
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ * Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ .
+ * 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.
+ .
+ * Neither the name of "The Computer Language Benchmarks Game" nor the
+ name of "The Computer Language Shootout Benchmarks" 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 COPYRIGHT HOLDERS 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 COPYRIGHT OWNER 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.
+
+License: WebKit
+ Copyright (C) 2009 Apple Inc. All rights reserved.
+ .
+ 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.
+ .
+ THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS 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 APPLE INC. OR ITS 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.
+
+License: Spacewar!
+ Copyright (c) 1996 Barry Silverman, Brian Silverman, Vadim Gerasimov.
+ Portions Copyright (c) 2009 The Go Authors.
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.
+ .
+ This package and spacewar.go implement a simple PDP-1 emulator
+ complete enough to run the original PDP-1 video game Spacewar!
+ See nacl/README for details on running them.
+ .
+ They are a translation of the Java emulator pdp1.java in
+ http://spacewar.oversigma.com/sources/sources.zip.
+ .
+ See also the PDP-1 handbook at http://www.dbit.com/~greeng3/pdp1/pdp1.html
+ .
+ http://spacewar.oversigma.com/readme.html begins:
+ .
+ Spacewar! was conceived in 1961 by Martin Graetz, Stephen Russell,
+ and Wayne Wiitanen. It was first realized on the PDP-1 in 1962 by
+ Stephen Russell, Peter Samson, Dan Edwards, and Martin Graetz,
+ together with Alan Kotok, Steve Piner, and Robert A Saunders.
+ Spacewar! is in the public domain, but this credit paragraph must
+ accompany all distributed versions of the program.
+
+License: Plan9
+ Lucent Public License Version 1.02
+ .
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS PUBLIC LICENSE
+ ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM CONSTITUTES
+ RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
+ .
+ 1. DEFINITIONS
+ .
+ "Contribution" means:
+ .
+ a. in the case of Lucent Technologies Inc. ("LUCENT"), the Original Program,
+ and
+ b. in the case of each Contributor,
+ i. changes to the Program, and
+ ii. additions to the Program;
+ where such changes and/or additions to the Program were added to the
+ Program by such Contributor itself or anyone acting on such Contributor's
+ behalf, and the Contributor explicitly consents, in accordance with
+ Section 3C, to characterization of the changes and/or additions as
+ Contributions.
+ .
+ "Contributor" means LUCENT and any other entity that has Contributed a
+ Contribution to the Program.
+ .
+ "Distributor" means a Recipient that distributes the Program, modifications to
+ the Program, or any part thereof.
+ .
+ "Licensed Patents" mean patent claims licensable by a Contributor which are
+ necessarily infringed by the use or sale of its Contribution alone or when
+ combined with the Program.
+ .
+ "Original Program" means the original version of the software accompanying
+ this Agreement as released by LUCENT, including source code, object code and
+ documentation, if any.
+ .
+ "Program" means the Original Program and Contributions or any part thereof
+ .
+ "Recipient" means anyone who receives the Program under this Agreement,
+ including all Contributors.
+ .
+ 2. GRANT OF RIGHTS
+ .
+ a. Subject to the terms of this Agreement, each Contributor hereby grants
+ Recipient a non-exclusive, worldwide, royalty-free copyright license to
+ reproduce, prepare derivative works of, publicly display, publicly
+ perform, distribute and sublicense the Contribution of such Contributor,
+ if any, and such derivative works, in source code and object code form.
+ .
+ b. Subject to the terms of this Agreement, each Contributor hereby grants
+ Recipient a non-exclusive, worldwide, royalty-free patent license under
+ Licensed Patents to make, use, sell, offer to sell, import and otherwise
+ transfer the Contribution of such Contributor, if any, in source code and
+ object code form. The patent license granted by a Contributor shall also
+ apply to the combination of the Contribution of that Contributor and the
+ Program if, at the time the Contribution is added by the Contributor,
+ such addition of the Contribution causes such combination to be covered
+ by the Licensed Patents. The patent license granted by a Contributor
+ shall not apply to (i) any other combinations which include the
+ Contribution, nor to (ii) Contributions of other Contributors. No
+ hardware per se is licensed hereunder.
+ .
+ c. Recipient understands that although each Contributor grants the licenses
+ to its Contributions set forth herein, no assurances are provided by any
+ Contributor that the Program does not infringe the patent or other
+ intellectual property rights of any other entity. Each Contributor
+ disclaims any liability to Recipient for claims brought by any other
+ entity based on infringement of intellectual property rights or
+ otherwise. As a condition to exercising the rights and licenses granted
+ hereunder, each Recipient hereby assumes sole responsibility to secure
+ any other intellectual property rights needed, if any. For example, if a
+ third party patent license is required to allow Recipient to distribute
+ the Program, it is Recipient's responsibility to acquire that license
+ before distributing the Program.
+ .
+ d. Each Contributor represents that to its knowledge it has sufficient
+ copyright rights in its Contribution, if any, to grant the copyright
+ license set forth in this Agreement.
+ .
+ 3. REQUIREMENTS
+ .
+ A. Distributor may choose to distribute the Program in any form under this
+ Agreement or under its own license agreement, provided that:
+ .
+ a. it complies with the terms and conditions of this Agreement;
+ .
+ b. if the Program is distributed in source code or other tangible form, a
+ copy of this Agreement or Distributor's own license agreement is included
+ with each copy of the Program; and
+ .
+ c. if distributed under Distributor's own license agreement, such license
+ agreement:
+ i. effectively disclaims on behalf of all Contributors all warranties
+ and conditions, express and implied, including warranties or
+ conditions of title and non-infringement, and implied warranties or
+ conditions of merchantability and fitness for a particular purpose;
+ ii. effectively excludes on behalf of all Contributors all liability for
+ damages, including direct, indirect, special, incidental and
+ consequential damages, such as lost profits; and
+ iii. states that any provisions which differ from this Agreement are
+ offered by that Contributor alone and not by any other party.
+ .
+ B. Each Distributor must include the following in a conspicuous location in
+ the Program:
+ .
+ Copyright (C) 2003, Lucent Technologies Inc. and others. All Rights Reserved.
+ .
+ C. In addition, each Contributor must identify itself as the originator of its
+ Contribution in a manner that reasonably allows subsequent Recipients to
+ identify the originator of the Contribution. Also, each Contributor must agree
+ that the additions and/or changes are intended to be a Contribution. Once a
+ Contribution is contributed, it may not thereafter be revoked.
+ .
+ 4. COMMERCIAL DISTRIBUTION
+ .
+ Commercial distributors of software may accept certain responsibilities with
+ respect to end users, business partners and the like. While this license is
+ intended to facilitate the commercial use of the Program, the Distributor who
+ includes the Program in a commercial product offering should do so in a manner
+ which does not create potential liability for Contributors. Therefore, if a
+ Distributor includes the Program in a commercial product offering, such
+ Distributor ("Commercial Distributor") hereby agrees to defend and indemnify
+ every Contributor ("Indemnified Contributor") against any losses, damages and
+ costs (collectively "Losses") arising from claims, lawsuits and other legal
+ actions brought by a third party against the Indemnified Contributor to the
+ extent caused by the acts or omissions of such Commercial Distributor in
+ connection with its distribution of the Program in a commercial product
+ offering. The obligations in this section do not apply to any claims or Losses
+ relating to any actual or alleged intellectual property infringement. In order
+ to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
+ Distributor in writing of such claim, and b) allow the Commercial Distributor
+ to control, and cooperate with the Commercial Distributor in, the defense and
+ any related settlement negotiations. The Indemnified Contributor may
+ participate in any such claim at its own expense.
+ .
+ For example, a Distributor might include the Program in a commercial product
+ offering, Product X. That Distributor is then a Commercial Distributor. If
+ that Commercial Distributor then makes performance claims, or offers
+ warranties related to Product X, those performance claims and warranties are
+ such Commercial Distributor's responsibility alone. Under this section, the
+ Commercial Distributor would have to defend claims against the Contributors
+ related to those performance claims and warranties, and if a court requires
+ any Contributor to pay any damages as a result, the Commercial Distributor
+ must pay those damages.
+ .
+ 5. NO WARRANTY
+ .
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
+ IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
+ NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each
+ Recipient is solely responsible for determining the appropriateness of using
+ and distributing the Program and assumes all risks associated with its
+ exercise of rights under this Agreement, including but not limited to the
+ risks and costs of program errors, compliance with applicable laws, damage to
+ or loss of data, programs or equipment, and unavailability or interruption of
+ operations.
+ .
+ 6. DISCLAIMER OF LIABILITY
+ .
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
+ CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION
+ LOST PROFITS), 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 OR DISTRIBUTION OF THE PROGRAM OR THE
+ EXERCISE OF ANY RIGHTS GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY
+ OF SUCH DAMAGES.
+ .
+ 7. EXPORT CONTROL
+ .
+ Recipient agrees that Recipient alone is responsible for compliance with the
+ United States export administration regulations (and the export control laws
+ and regulation of any other countries).
+ .
+ 8. GENERAL
+ .
+ If any provision of this Agreement is invalid or unenforceable under
+ applicable law, it shall not affect the validity or enforceability of the
+ remainder of the terms of this Agreement, and without further action by the
+ parties hereto, such provision shall be reformed to the minimum extent
+ necessary to make such provision valid and enforceable.
+ .
+ If Recipient institutes patent litigation against a Contributor with respect
+ to a patent applicable to software (including a cross-claim or counterclaim in
+ a lawsuit), then any patent licenses granted by that Contributor to such
+ Recipient under this Agreement shall terminate as of the date such litigation
+ is filed. In addition, if Recipient institutes patent litigation against any
+ entity (including a cross-claim or counterclaim in a lawsuit) alleging that
+ the Program itself (excluding combinations of the Program with other software
+ or hardware) infringes such Recipient's patent(s), then such Recipient's
+ rights granted under Section 2(b) shall terminate as of the date such
+ litigation is filed.
+ .
+ All Recipient's rights under this Agreement shall terminate if it fails to
+ comply with any of the material terms or conditions of this Agreement and does
+ not cure such failure in a reasonable period of time after becoming aware of
+ such noncompliance. If all Recipient's rights under this Agreement terminate,
+ Recipient agrees to cease use and distribution of the Program as soon as
+ reasonably practicable. However, Recipient's obligations under this Agreement
+ and any licenses granted by Recipient relating to the Program shall continue
+ and survive.
+ .
+ LUCENT may publish new versions (including revisions) of this Agreement from
+ time to time. Each new version of the Agreement will be given a distinguishing
+ version number. The Program (including Contributions) may always be
+ distributed subject to the version of the Agreement under which it was
+ received. In addition, after a new version of the Agreement is published,
+ Contributor may elect to distribute the Program (including its Contributions)
+ under the new version. No one other than LUCENT has the right to modify this
+ Agreement. Except as expressly stated in Sections 2(a) and 2(b) above,
+ Recipient receives no rights or licenses to the intellectual property of any
+ Contributor under this Agreement, whether expressly, by implication, estoppel
+ or otherwise. All rights in the Program not expressly granted under this
+ Agreement are reserved.
+ .
+ This Agreement is governed by the laws of the State of New York and the
+ intellectual property laws of the United States of America. No party to this
+ Agreement will bring a legal action under this Agreement more than one year
+ after the cause of action arose. Each party waives its rights to a jury trial
+ in any resulting litigation.
+
+License: W3C
+ This work (and included software, documentation such as READMEs, or
+ other related items) is being provided by the copyright holders under
+ the following license.
+ .
+ By obtaining, using and/or copying this work, you (the licensee)
+ agree that you have read, understood, and will comply with the
+ following terms and conditions.
+ .
+ Permission to copy, modify, and distribute this software and its
+ documentation, with or without modification, for any purpose and
+ without fee or royalty is hereby granted, provided that you include
+ the following on ALL copies of the software and documentation or
+ portions thereof, including modifications:
+ .
+ * The full text of this NOTICE in a location viewable to users of
+ the redistributed or derivative work.
+ .
+ * Any pre-existing intellectual property disclaimers, notices, or
+ terms and conditions. If none exist, the W3C Software Short
+ Notice should be included (hypertext is preferred, text is
+ permitted) within the body of any redistributed or derivative
+ code.
+ .
+ * Notice of any changes or modifications to the files, including
+ the date changes were made. (We recommend you provide URIs to the
+ location from which the code is derived.)
+ .
+ THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT
+ HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED,
+ INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR FITNESS
+ FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE OR
+ DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS,
+ TRADEMARKS OR OTHER RIGHTS.
+ .
+ COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL
+ OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE SOFTWARE OR
+ DOCUMENTATION.
+ .
+ The name and trademarks of copyright holders may NOT be used in
+ advertising or publicity pertaining to the software without specific,
+ written prior permission. Title to copyright in this software and any
+ associated documentation will at all times remain with copyright
+ holders.
+ .
+ This version: http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
+ .
+ This formulation of W3C's notice and license became active on December
+ 31 2002. This version removes the copyright ownership notice such that
+ this license can be used with materials other than those owned by the
+ W3C, reflects that ERCIM is now a host of the W3C, includes references
+ to this specific dated version of the license, and removes the
+ ambiguous grant of "use". Otherwise, this version is the same as the
+ previous version and is written so as to preserve the Free Software
+ Foundation's assessment of GPL compatibility and OSI's certification
+ under the Open Source Definition.
+
+License: CC-BY-3.0
+ THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS
+ CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS
+ PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE
+ WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS
+ PROHIBITED.
+ .
+ BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND
+ AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS
+ LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU
+ THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH
+ TERMS AND CONDITIONS.
+ .
+ 1. Definitions
+ .
+ a. "Adaptation" means a work based upon the Work, or upon the Work
+ and other pre-existing works, such as a translation, adaptation,
+ derivative work, arrangement of music or other alterations of a
+ literary or artistic work, or phonogram or performance and
+ includes cinematographic adaptations or any other form in which
+ the Work may be recast, transformed, or adapted including in any
+ form recognizably derived from the original, except that a work
+ that constitutes a Collection will not be considered an
+ Adaptation for the purpose of this License. For the avoidance of
+ doubt, where the Work is a musical work, performance or
+ phonogram, the synchronization of the Work in timed-relation
+ with a moving image ("synching") will be considered an
+ Adaptation for the purpose of this License.
+ .
+ b. "Collection" means a collection of literary or artistic works,
+ such as encyclopedias and anthologies, or performances,
+ phonograms or broadcasts, or other works or subject matter other
+ than works listed in Section 1(f) below, which, by reason of the
+ selection and arrangement of their contents, constitute
+ intellectual creations, in which the Work is included in its
+ entirety in unmodified form along with one or more other
+ contributions, each constituting separate and independent works
+ in themselves, which together are assembled into a collective
+ whole. A work that constitutes a Collection will not be
+ considered an Adaptation (as defined above) for the purposes of
+ this License.
+ .
+ c. "Distribute" means to make available to the public the original
+ and copies of the Work or Adaptation, as appropriate, through
+ sale or other transfer of ownership.
+ .
+ d. "Licensor" means the individual, individuals, entity or entities
+ that offer(s) the Work under the terms of this License.
+ .
+ e. "Original Author" means, in the case of a literary or artistic
+ work, the individual, individuals, entity or entities who
+ created the Work or if no individual or entity can be
+ identified, the publisher; and in addition (i) in the case of a
+ performance the actors, singers, musicians, dancers, and other
+ persons who act, sing, deliver, declaim, play in, interpret or
+ otherwise perform literary or artistic works or expressions of
+ folklore; (ii) in the case of a phonogram the producer being the
+ person or legal entity who first fixes the sounds of a
+ performance or other sounds; and, (iii) in the case of
+ broadcasts, the organization that transmits the broadcast.
+ .
+ f. "Work" means the literary and/or artistic work offered under the
+ terms of this License including without limitation any
+ production in the literary, scientific and artistic domain,
+ whatever may be the mode or form of its expression including
+ digital form, such as a book, pamphlet and other writing; a
+ lecture, address, sermon or other work of the same nature; a
+ dramatic or dramatico-musical work; a choreographic work or
+ entertainment in dumb show; a musical composition with or
+ without words; a cinematographic work to which are assimilated
+ works expressed by a process analogous to cinematography; a work
+ of drawing, painting, architecture, sculpture, engraving or
+ lithography; a photographic work to which are assimilated works
+ expressed by a process analogous to photography; a work of
+ applied art; an illustration, map, plan, sketch or
+ three-dimensional work relative to geography, topography,
+ architecture or science; a performance; a broadcast; a
+ phonogram; a compilation of data to the extent it is protected
+ as a copyrightable work; or a work performed by a variety or
+ circus performer to the extent it is not otherwise considered a
+ literary or artistic work.
+ .
+ g. "You" means an individual or entity exercising rights under this
+ License who has not previously violated the terms of this
+ License with respect to the Work, or who has received express
+ permission from the Licensor to exercise rights under this
+ License despite a previous violation.
+ .
+ h. "Publicly Perform" means to perform public recitations of the
+ Work and to communicate to the public those public recitations,
+ by any means or process, including by wire or wireless means or
+ public digital performances; to make available to the public
+ Works in such a way that members of the public may access these
+ Works from a place and at a place individually chosen by them;
+ to perform the Work to the public by any means or process and
+ the communication to the public of the performances of the Work,
+ including by public digital performance; to broadcast and
+ rebroadcast the Work by any means including signs, sounds or
+ images.
+ .
+ i. "Reproduce" means to make copies of the Work by any means
+ including without limitation by sound or visual recordings and
+ the right of fixation and reproducing fixations of the Work,
+ including storage of a protected performance or phonogram in
+ digital form or other electronic medium.
+ .
+ 2. Fair Dealing Rights. Nothing in this License is intended to
+ reduce, limit, or restrict any uses free from copyright or rights
+ arising from limitations or exceptions that are provided for in
+ connection with the copyright protection under copyright law or other
+ applicable laws.
+ .
+ 3. License Grant. Subject to the terms and conditions of this License,
+ Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
+ perpetual (for the duration of the applicable copyright) license to
+ exercise the rights in the Work as stated below:
+ .
+ a. to Reproduce the Work, to incorporate the Work into one or more
+ Collections, and to Reproduce the Work as incorporated in the
+ Collections;
+ .
+ b. to create and Reproduce Adaptations provided that any such
+ Adaptation, including any translation in any medium, takes
+ reasonable steps to clearly label, demarcate or otherwise
+ identify that changes were made to the original Work. For
+ example, a translation could be marked "The original work was
+ translated from English to Spanish," or a modification could
+ indicate "The original work has been modified.";
+ .
+ c. to Distribute and Publicly Perform the Work including as
+ incorporated in Collections; and,
+ .
+ d. to Distribute and Publicly Perform Adaptations.
+ .
+ e. For the avoidance of doubt:
+ .
+ i. Non-waivable Compulsory License Schemes. In those
+ jurisdictions in which the right to collect royalties
+ through any statutory or compulsory licensing scheme cannot
+ be waived, the Licensor reserves the exclusive right to
+ collect such royalties for any exercise by You of the
+ rights granted under this License;
+ .
+ ii. Waivable Compulsory License Schemes. In those jurisdictions
+ in which the right to collect royalties through any
+ statutory or compulsory licensing scheme can be waived, the
+ Licensor waives the exclusive right to collect such
+ royalties for any exercise by You of the rights granted
+ under this License; and,
+ .
+ iii. Voluntary License Schemes. The Licensor waives the right to
+ collect royalties, whether individually or, in the event
+ that the Licensor is a member of a collecting society that
+ administers voluntary licensing schemes, via that society,
+ from any exercise by You of the rights granted under this
+ License.
+ .
+ The above rights may be exercised in all media and formats whether
+ now known or hereafter devised. The above rights include the right to
+ make such modifications as are technically necessary to exercise the
+ rights in other media and formats. Subject to Section 8(f), all
+ rights not expressly granted by Licensor are hereby reserved.
+ .
+ 4. Restrictions. The license granted in Section 3 above is expressly
+ made subject to and limited by the following restrictions:
+ .
+ a. You may Distribute or Publicly Perform the Work only under the
+ terms of this License. You must include a copy of, or the
+ Uniform Resource Identifier (URI) for, this License with every
+ copy of the Work You Distribute or Publicly Perform. You may not
+ offer or impose any terms on the Work that restrict the terms of
+ this License or the ability of the recipient of the Work to
+ exercise the rights granted to that recipient under the terms of
+ the License. You may not sublicense the Work. You must keep
+ intact all notices that refer to this License and to the
+ disclaimer of warranties with every copy of the Work You
+ Distribute or Publicly Perform. When You Distribute or Publicly
+ Perform the Work, You may not impose any effective technological
+ measures on the Work that restrict the ability of a recipient of
+ the Work from You to exercise the rights granted to that
+ recipient under the terms of the License. This Section 4(a)
+ applies to the Work as incorporated in a Collection, but this
+ does not require the Collection apart from the Work itself to be
+ made subject to the terms of this License. If You create a
+ Collection, upon notice from any Licensor You must, to the
+ extent practicable, remove from the Collection any credit as
+ required by Section 4(b), as requested. If You create an
+ Adaptation, upon notice from any Licensor You must, to the
+ extent practicable, remove from the Adaptation any credit as
+ required by Section 4(b), as requested.
+ .
+ b. If You Distribute, or Publicly Perform the Work or any
+ Adaptations or Collections, You must, unless a request has been
+ made pursuant to Section 4(a), keep intact all copyright notices
+ for the Work and provide, reasonable to the medium or means You
+ are utilizing: (i) the name of the Original Author (or
+ pseudonym, if applicable) if supplied, and/or if the Original
+ Author and/or Licensor designate another party or parties (e.g.,
+ a sponsor institute, publishing entity, journal) for attribution
+ ("Attribution Parties") in Licensor's copyright notice, terms of
+ service or by other reasonable means, the name of such party or
+ parties; (ii) the title of the Work if supplied; (iii) to the
+ extent reasonably practicable, the URI, if any, that Licensor
+ specifies to be associated with the Work, unless such URI does
+ not refer to the copyright notice or licensing information for
+ the Work; and (iv) , consistent with Section 3(b), in the case
+ of an Adaptation, a credit identifying the use of the Work in
+ the Adaptation (e.g., "French translation of the Work by
+ Original Author," or "Screenplay based on original Work by
+ Original Author"). The credit required by this Section 4 (b) may
+ be implemented in any reasonable manner; provided, however, that
+ in the case of a Adaptation or Collection, at a minimum such
+ credit will appear, if a credit for all contributing authors of
+ the Adaptation or Collection appears, then as part of these
+ credits and in a manner at least as prominent as the credits for
+ the other contributing authors. For the avoidance of doubt, You
+ may only use the credit required by this Section for the purpose
+ of attribution in the manner set out above and, by exercising
+ Your rights under this License, You may not implicitly or
+ explicitly assert or imply any connection with, sponsorship or
+ endorsement by the Original Author, Licensor and/or Attribution
+ Parties, as appropriate, of You or Your use of the Work, without
+ the separate, express prior written permission of the Original
+ Author, Licensor and/or Attribution Parties.
+ .
+ c. Except as otherwise agreed in writing by the Licensor or as may
+ be otherwise permitted by applicable law, if You Reproduce,
+ Distribute or Publicly Perform the Work either by itself or as
+ part of any Adaptations or Collections, You must not distort,
+ mutilate, modify or take other derogatory action in relation to
+ the Work which would be prejudicial to the Original Author's
+ honor or reputation. Licensor agrees that in those jurisdictions
+ (e.g. Japan), in which any exercise of the right granted in
+ Section 3(b) of this License (the right to make Adaptations)
+ would be deemed to be a distortion, mutilation, modification or
+ other derogatory action prejudicial to the Original Author's
+ honor and reputation, the Licensor will waive or not assert, as
+ appropriate, this Section, to the fullest extent permitted by
+ the applicable national law, to enable You to reasonably
+ exercise Your right under Section 3(b) of this License (right to
+ make Adaptations) but not otherwise.
+ .
+ 5. Representations, Warranties and Disclaimer
+ .
+ UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING,
+ LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR
+ WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED,
+ STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF
+ TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE,
+ NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY,
+ OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE.
+ SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES,
+ SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
+ .
+ 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY
+ APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY
+ LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR
+ EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK,
+ EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ .
+ 7. Termination
+ .
+ a. This License and the rights granted hereunder will terminate
+ automatically upon any breach by You of the terms of this
+ License. Individuals or entities who have received Adaptations
+ or Collections from You under this License, however, will not
+ have their licenses terminated provided such individuals or
+ entities remain in full compliance with those licenses.
+ Sections 1, 2, 5, 6, 7, and 8 will survive any termination of
+ this License.
+ .
+ b. Subject to the above terms and conditions, the license granted
+ here is perpetual (for the duration of the applicable copyright
+ in the Work). Notwithstanding the above, Licensor reserves the
+ right to release the Work under different license terms or to
+ stop distributing the Work at any time; provided, however that
+ any such election will not serve to withdraw this License (or
+ any other license that has been, or is required to be, granted
+ under the terms of this License), and this License will continue
+ in full force and effect unless terminated as stated above.
+ .
+ 8. Miscellaneous
+ .
+ a. Each time You Distribute or Publicly Perform the Work or a
+ Collection, the Licensor offers to the recipient a license to
+ the Work on the same terms and conditions as the license granted
+ to You under this License.
+ .
+ b. Each time You Distribute or Publicly Perform an Adaptation,
+ Licensor offers to the recipient a license to the original Work
+ on the same terms and conditions as the license granted to You
+ under this License.
+ .
+ c. If any provision of this License is invalid or unenforceable
+ under applicable law, it shall not affect the validity or
+ enforceability of the remainder of the terms of this License,
+ and without further action by the parties to this agreement,
+ such provision shall be reformed to the minimum extent necessary
+ to make such provision valid and enforceable.
+ .
+ d. No term or provision of this License shall be deemed waived and
+ no breach consented to unless such waiver or consent shall be in
+ writing and signed by the party to be charged with such waiver
+ or consent.
+ .
+ e. This License constitutes the entire agreement between the
+ parties with respect to the Work licensed here. There are no
+ understandings, agreements or representations with respect to
+ the Work not specified here. Licensor shall not be bound by any
+ additional provisions that may appear in any communication from
+ You. This License may not be modified without the mutual written
+ agreement of the Licensor and You.
+ .
+ f. The rights granted under, and the subject matter referenced, in
+ this License were drafted utilizing the terminology of the Berne
+ Convention for the Protection of Literary and Artistic Works (as
+ amended on September 28, 1979), the Rome Convention of 1961, the
+ WIPO Copyright Treaty of 1996, the WIPO Performances and
+ Phonograms Treaty of 1996 and the Universal Copyright Convention
+ (as revised on July 24, 1971). These rights and subject matter
+ take effect in the relevant jurisdiction in which the License
+ terms are sought to be enforced according to the corresponding
+ provisions of the implementation of those treaty provisions in
+ the applicable national law. If the standard suite of rights
+ granted under applicable copyright law includes additional
+ rights not granted under this License, such additional rights
+ are deemed to be included in the License; this License is not
+ intended to restrict the license of any rights under applicable law.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 000000000..9975f3967
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,3 @@
+README
+AUTHORS
+CONTRIBUTORS
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 000000000..ed92c529b
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+debian-branch = debian-sid
+debian-tag = debian/%(version)s
+upstream-branch = upstream-sid
+upstream-tag = upstream/%(version)s
+pristine-tar = True
+
+[git-dch]
+meta = 1
diff --git a/debian/golang-doc.dirs b/debian/golang-doc.dirs
new file mode 100644
index 000000000..7f9b877df
--- /dev/null
+++ b/debian/golang-doc.dirs
@@ -0,0 +1 @@
+usr/share/doc/golang-doc/html
diff --git a/debian/golang-doc.install b/debian/golang-doc.install
new file mode 100644
index 000000000..53461e50d
--- /dev/null
+++ b/debian/golang-doc.install
@@ -0,0 +1,3 @@
+doc/* /usr/share/doc/golang-doc/html/
+lib/godoc /usr/share/doc/golang-doc
+favicon.ico /usr/share/doc/golang-doc
diff --git a/debian/golang-doc.links b/debian/golang-doc.links
new file mode 100644
index 000000000..0169ca730
--- /dev/null
+++ b/debian/golang-doc.links
@@ -0,0 +1,3 @@
+usr/share/doc/golang-doc/html /usr/lib/go/doc
+usr/share/doc/golang-doc/godoc /usr/lib/go/lib/godoc
+usr/share/doc/golang-doc/favicon.ico /usr/lib/go/favicon.ico
diff --git a/debian/golang-go.dirs b/debian/golang-go.dirs
new file mode 100644
index 000000000..33522f9a3
--- /dev/null
+++ b/debian/golang-go.dirs
@@ -0,0 +1,3 @@
+usr/bin
+usr/lib/go
+usr/share/go/src/
diff --git a/debian/golang-go.install b/debian/golang-go.install
new file mode 100644
index 000000000..3a1dc542a
--- /dev/null
+++ b/debian/golang-go.install
@@ -0,0 +1,19 @@
+pkg /usr/lib/go/
+bin/godefs /usr/bin/
+bin/gopack /usr/bin/
+bin/gotest /usr/bin/
+bin/cgo /usr/bin/
+bin/goyacc /usr/bin/
+bin/ebnflint /usr/bin/
+bin/gopprof /usr/bin/
+bin/gomake /usr/bin/
+bin/?l /usr/bin/
+bin/?cov /usr/bin/
+bin/?prof /usr/bin/
+bin/?c /usr/bin/
+bin/?a /usr/bin/
+bin/?nm /usr/bin/
+bin/?g /usr/bin/
+src/Make.* /usr/share/go/src/
+src/pkg/runtime/cgocall.h /usr/share/go/src/pkg/runtime/
+src/pkg/runtime/runtime.h /usr/share/go/src/pkg/runtime/
diff --git a/debian/golang-go.links b/debian/golang-go.links
new file mode 100644
index 000000000..1deec127d
--- /dev/null
+++ b/debian/golang-go.links
@@ -0,0 +1 @@
+usr/share/go/src /usr/lib/go/src
diff --git a/debian/golang-go.lintian-overrides b/debian/golang-go.lintian-overrides
new file mode 100644
index 000000000..66b6ac9d9
--- /dev/null
+++ b/debian/golang-go.lintian-overrides
@@ -0,0 +1,16 @@
+golang-go: unstripped-binary-or-object usr/bin/cgo
+golang-go: statically-linked-binary usr/bin/cgo
+golang-go: unstripped-binary-or-object usr/bin/ebnflint
+golang-go: statically-linked-binary usr/bin/ebnflint
+golang-go: unstripped-binary-or-object usr/bin/goyacc
+golang-go: statically-linked-binary usr/bin/goyacc
+golang-go: unstripped-binary-or-object usr/bin/gotest
+golang-go: statically-linked-binary usr/bin/gotest
+golang-go: unstripped-binary-or-object ./usr/bin/cgo
+golang-go: statically-linked-binary ./usr/bin/cgo
+golang-go: unstripped-binary-or-object ./usr/bin/ebnflint
+golang-go: statically-linked-binary ./usr/bin/ebnflint
+golang-go: unstripped-binary-or-object ./usr/bin/goyacc
+golang-go: statically-linked-binary ./usr/bin/goyacc
+golang-go: unstripped-binary-or-object ./usr/bin/gotest
+golang-go: statically-linked-binary ./usr/bin/gotest
diff --git a/debian/golang-mode.emacsen-install b/debian/golang-mode.emacsen-install
new file mode 100644
index 000000000..5521e515c
--- /dev/null
+++ b/debian/golang-mode.emacsen-install
@@ -0,0 +1,34 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/install/golang-mode
+
+FLAVOR=$1
+PACKAGE=golang-mode
+
+# Do nothing if generic flavor.
+if [ ${FLAVOR} = emacs ]; then
+ exit 0;
+fi
+
+echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR}
+
+# The byte-compiled files goes into the site-lisp directory.
+BCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+install -m 755 -d ${BCDIR}
+
+# The elisp source files are in the generic site-list directory.
+SRCDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+SRC=`find ${SRCDIR} -name '*.el' -exec basename '{}' ';'`
+
+# Prepare for byte-compiling the source files.
+cd ${BCDIR}
+ln -sf ${SRCDIR}/*.el .
+cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+
+# Byte-compile elisp files.
+FLAGS="--no-site-file --no-init-file --batch -l path.el -f batch-byte-compile"
+${FLAVOR} ${FLAGS} ${SRC}
+rm -f path.el
+
+exit 0
diff --git a/debian/golang-mode.emacsen-remove b/debian/golang-mode.emacsen-remove
new file mode 100644
index 000000000..a56922eb6
--- /dev/null
+++ b/debian/golang-mode.emacsen-remove
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+# /usr/lib/emacsen-common/packages/remove/golang-mode
+FLAVOR=$1
+PACKAGE=golang-mode
+if [ ${FLAVOR} != emacs ]; then
+ echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR}
+ rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+fi
+exit 0
diff --git a/debian/golang-mode.emacsen-startup b/debian/golang-mode.emacsen-startup
new file mode 100644
index 000000000..378f11f5f
--- /dev/null
+++ b/debian/golang-mode.emacsen-startup
@@ -0,0 +1,7 @@
+;; -*-emacs-lisp-*-
+
+(let ((path "/usr/share/emacs/site-lisp/golang-mode"))
+ (when (file-exists-p path)
+ (add-to-list 'load-path path t)
+ (require 'go-mode-load)))
+
diff --git a/debian/golang-mode.install b/debian/golang-mode.install
new file mode 100644
index 000000000..1453aa7b5
--- /dev/null
+++ b/debian/golang-mode.install
@@ -0,0 +1 @@
+misc/emacs/*.el usr/share/emacs/site-lisp/golang-mode/
diff --git a/debian/golang-tools.dirs b/debian/golang-tools.dirs
new file mode 100644
index 000000000..415f082dd
--- /dev/null
+++ b/debian/golang-tools.dirs
@@ -0,0 +1 @@
+/usr/bin
diff --git a/debian/golang-tools.install b/debian/golang-tools.install
new file mode 100644
index 000000000..379de2c5e
--- /dev/null
+++ b/debian/golang-tools.install
@@ -0,0 +1,6 @@
+bin/godoc /usr/bin
+bin/gofix /usr/bin
+bin/gofmt /usr/bin
+bin/goinstall /usr/bin
+bin/gotry /usr/bin
+bin/govet /usr/bin
diff --git a/debian/golang-tools.lintian-overrides b/debian/golang-tools.lintian-overrides
new file mode 100644
index 000000000..47e4d6d5d
--- /dev/null
+++ b/debian/golang-tools.lintian-overrides
@@ -0,0 +1,20 @@
+golang-tools: statically-linked-binary usr/bin/godoc
+golang-tools: unstripped-binary-or-object usr/bin/godoc
+golang-tools: statically-linked-binary usr/bin/gofix
+golang-tools: unstripped-binary-or-object usr/bin/gofix
+golang-tools: statically-linked-binary usr/bin/gofmt
+golang-tools: unstripped-binary-or-object usr/bin/gofmt
+golang-tools: statically-linked-binary usr/bin/goinstall
+golang-tools: unstripped-binary-or-object usr/bin/goinstall
+golang-tools: statically-linked-binary usr/bin/govet
+golang-tools: unstripped-binary-or-object usr/bin/govet
+golang-tools: statically-linked-binary ./usr/bin/godoc
+golang-tools: unstripped-binary-or-object ./usr/bin/godoc
+golang-tools: statically-linked-binary ./usr/bin/gofix
+golang-tools: unstripped-binary-or-object ./usr/bin/gofix
+golang-tools: statically-linked-binary ./usr/bin/gofmt
+golang-tools: unstripped-binary-or-object ./usr/bin/gofmt
+golang-tools: statically-linked-binary ./usr/bin/goinstall
+golang-tools: unstripped-binary-or-object ./usr/bin/goinstall
+golang-tools: statically-linked-binary ./usr/bin/govet
+golang-tools: unstripped-binary-or-object ./usr/bin/govet
diff --git a/debian/kate-syntax-go.install b/debian/kate-syntax-go.install
new file mode 100644
index 000000000..978ab81e3
--- /dev/null
+++ b/debian/kate-syntax-go.install
@@ -0,0 +1 @@
+misc/kate/go.xml /usr/share/kde4/apps/katepart/syntax/
diff --git a/debian/native-symlinks.mk b/debian/native-symlinks.mk
new file mode 100644
index 000000000..6cbbe2eb4
--- /dev/null
+++ b/debian/native-symlinks.mk
@@ -0,0 +1,14 @@
+# Create architecture-independent toolchain names
+
+# Reuse GOARCH detection logic
+export GOROOT = .
+include src/Make.inc
+
+bindir = debian/$(PACKAGE)-go/usr/bin
+basenames = a c cov g l nm prof
+
+.PHONY: all
+all:
+ for b in $(basenames) ; do \
+ ln -s $O$$b $(bindir)/golang-$$b; \
+ done
diff --git a/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch b/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch
new file mode 100644
index 000000000..b4dcc275d
--- /dev/null
+++ b/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch
@@ -0,0 +1,26 @@
+# HG changeset patch
+# User fw@deneb.enyo.de
+# Date 1282471319 -7200
+# Node ID d68478aa6899b45b119c044ed8f819fe5cb8bd30
+# Parent c6b2f56925705655af802e6093072b63bbf86486
+Allow IPv4 on IPv6 sockets
+
+--- a/src/pkg/net/sock.go
++++ b/src/pkg/net/sock.go
+@@ -35,6 +35,16 @@ func socket(net string, f, p, t int, la,
+
+ setKernelSpecificSockopt(s, f)
+
++ // Allow IPv4 on IPv6 sockets.
++ if f == syscall.AF_INET6 {
++ e = syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6,
++ syscall.IPV6_V6ONLY, 0)
++ if e != 0 {
++ syscall.Close(s)
++ return nil, os.Errno(e)
++ }
++ }
++
+ if la != nil {
+ e = syscall.Bind(s, la)
+ if e != 0 {
diff --git a/debian/patches/003-set_correct_runpath.patch b/debian/patches/003-set_correct_runpath.patch
new file mode 100644
index 000000000..e090573d7
--- /dev/null
+++ b/debian/patches/003-set_correct_runpath.patch
@@ -0,0 +1,11 @@
+--- a/src/Make.cmd
++++ b/src/Make.cmd
+@@ -17,7 +17,7 @@ include $(QUOTED_GOROOT)/src/Make.common
+ PREREQ+=$(patsubst %,%.make,$(DEPS))
+
+ $(TARG): _go_.$O
+- $(LD) $(LDIMPORTS) -o $@ _go_.$O
++ $(LD) $(LDIMPORTS) -o $@ -r $(QUOTED_GOROOT_FINAL)/pkg/$(GOOS)_$(GOARCH) _go_.$O
+
+ _go_.$O: $(GOFILES) $(PREREQ)
+ $(GC) $(GCIMPORTS) -o $@ $(GOFILES)
diff --git a/debian/patches/005-goinstall_dont_call_home_by_default.patch b/debian/patches/005-goinstall_dont_call_home_by_default.patch
new file mode 100644
index 000000000..5d093f87f
--- /dev/null
+++ b/debian/patches/005-goinstall_dont_call_home_by_default.patch
@@ -0,0 +1,22 @@
+--- a/src/cmd/goinstall/main.go
++++ b/src/cmd/goinstall/main.go
+@@ -36,7 +36,7 @@ var (
+ installedPkgs = make(map[string]bool)
+
+ allpkg = flag.Bool("a", false, "install all previously installed packages")
+- reportToDashboard = flag.Bool("dashboard", true, "report public packages at "+dashboardURL)
++ reportToDashboard = flag.Bool("dashboard", false, "report public packages at "+dashboardURL)
+ logPkgs = flag.Bool("log", true, "log installed packages to $GOROOT/goinstall.log for use by -a")
+ update = flag.Bool("u", false, "update already-downloaded packages")
+ clean = flag.Bool("clean", false, "clean the package directory before installing")
+--- a/src/cmd/goinstall/doc.go
++++ b/src/cmd/goinstall/doc.go
+@@ -14,7 +14,7 @@ Usage:
+ Flags and default settings:
+ -a=false install all previously installed packages
+ -clean=false clean the package directory before installing
+- -dashboard=true tally public packages on godashboard.appspot.com
++ -dashboard=false tally public packages on godashboard.appspot.com
+ -log=true log installed packages to $GOROOT/goinstall.log for use by -a
+ -u=false update already-downloaded packages
+ -v=false verbose operation
diff --git a/debian/patches/006-fix_kfreebsd_build.patch b/debian/patches/006-fix_kfreebsd_build.patch
new file mode 100644
index 000000000..6b353eb5e
--- /dev/null
+++ b/debian/patches/006-fix_kfreebsd_build.patch
@@ -0,0 +1,100 @@
+--- a/src/libmach/Makefile
++++ b/src/libmach/Makefile
+@@ -49,15 +49,8 @@ OFILES=\
+ 6obj.$O\
+ 8obj.$O\
+
+-ifneq ($(GOHOSTOS),windows)
+ OFILES+=\
+- $(shell uname | tr A-Z a-z).$O\
+-
+-else
+-OFILES+=\
+- windows.$O\
+-
+-endif
++ $(GOOS).$O\
+
+ HFILES=../../include/mach.h elf.h macho.h obj.h
+
+--- a/src/cmd/cov/Makefile
++++ b/src/cmd/cov/Makefile
+@@ -23,11 +23,7 @@ LIB=\
+ NOINSTALL=1
+ include ../../Make.ccmd
+
+-ifeq ($(GOOS),windows)
+-NAME=windows
+-else
+-NAME=$(shell uname | tr A-Z a-z)
+-endif
++NAME=$(GOOS)
+
+ install: install-$(NAME)
+ install-linux: install-default
+--- a/src/cmd/prof/Makefile
++++ b/src/cmd/prof/Makefile
+@@ -19,11 +19,7 @@ LIB=\
+ NOINSTALL=1
+ include ../../Make.ccmd
+
+-ifeq ($(GOOS),windows)
+-NAME=windows
+-else
+-NAME=$(shell uname | tr A-Z a-z)
+-endif
++NAME=$(GOOS)
+
+ install: install-$(NAME) install-pprof
+ install-linux: install-default
+--- a/src/pkg/syscall/mkerrors.sh
++++ b/src/pkg/syscall/mkerrors.sh
+@@ -13,9 +13,7 @@ export LC_CTYPE=C
+
+ GCC=gcc
+
+-uname=$(uname)
+-
+-includes_Linux='
++includes_linux='
+ #define _LARGEFILE_SOURCE
+ #define _LARGEFILE64_SOURCE
+ #define _FILE_OFFSET_BITS 64
+@@ -41,7 +39,7 @@ includes_Linux='
+ #include <netpacket/packet.h>
+ '
+
+-includes_Darwin='
++includes_darwin='
+ #define _DARWIN_C_SOURCE
+ #define KERNEL
+ #define _DARWIN_USE_64_BIT_INODE
+@@ -61,7 +59,7 @@ includes_Darwin='
+ #include <netinet/ip_mroute.h>
+ '
+
+-includes_FreeBSD='
++includes_freebsd='
+ #include <sys/types.h>
+ #include <sys/event.h>
+ #include <sys/socket.h>
+@@ -105,7 +103,7 @@ done
+
+ # Write godefs input.
+ (
+- indirect="includes_$(uname)"
++ indirect="includes_$(GOOS)"
+ echo "${!indirect} $includes"
+ echo
+ echo 'enum {'
+--- a/src/pkg/net/Makefile
++++ b/src/pkg/net/Makefile
+@@ -35,7 +35,7 @@ GOFILES_freebsd=\
+ sock_bsd.go\
+
+ CGOFILES_freebsd=\
+- cgo_bsd.go\
++ cgo_linux.go\
+ cgo_unix.go\
+
+ GOFILES_darwin=\
diff --git a/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch b/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch
new file mode 100644
index 000000000..c86dda68e
--- /dev/null
+++ b/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch
@@ -0,0 +1,22 @@
+--- a/src/cmd/8l/asm.c
++++ b/src/cmd/8l/asm.c
+@@ -40,7 +40,7 @@
+ #define Dbufslop 100
+
+ char linuxdynld[] = "/lib/ld-linux.so.2";
+-char freebsddynld[] = "/usr/libexec/ld-elf.so.1";
++char freebsddynld[] = "/lib/ld.so.1";
+
+ int32
+ entryvalue(void)
+--- a/src/cmd/6l/asm.c
++++ b/src/cmd/6l/asm.c
+@@ -42,7 +42,7 @@
+ #define PADDR(a) ((uint32)(a) & ~0x80000000)
+
+ char linuxdynld[] = "/lib64/ld-linux-x86-64.so.2";
+-char freebsddynld[] = "/libexec/ld-elf.so.1";
++char freebsddynld[] = "/lib/ld-kfreebsd-x86-64.so.1";
+
+ char zeroes[32];
+
diff --git a/debian/patches/008-emacs-mode-key-literal-indent.patch b/debian/patches/008-emacs-mode-key-literal-indent.patch
new file mode 100644
index 000000000..6f11ed7ac
--- /dev/null
+++ b/debian/patches/008-emacs-mode-key-literal-indent.patch
@@ -0,0 +1,19 @@
+--- a/misc/emacs/go-mode.el
++++ b/misc/emacs/go-mode.el
+@@ -7,7 +7,6 @@
+ ;;; To do:
+
+ ;; * Indentation is *almost* identical to gofmt
+-;; ** We think struct literal keys are labels and outdent them
+ ;; ** We disagree on the indentation of function literals in arguments
+ ;; ** There are bugs with the close brace of struct literals
+ ;; * Highlight identifiers according to their syntactic context: type,
+@@ -401,7 +400,7 @@ indented one level."
+ (setq first nil))))
+
+ ;; case, default, and labels are outdented 1 level
+- (when (looking-at "\\<case\\>\\|\\<default\\>\\|\\w+\\s *:\\(\\S.\\|$\\)")
++ (when (looking-at "\\<case\\>\\|\\<default\\>\\|\\w+[:space:]*:[:space:]**$")
+ (decf indent tab-width))
+
+ ;; Continuation lines are indented 1 level
diff --git a/debian/patches/009-goinstall_can_install_to_GOPATH.patch b/debian/patches/009-goinstall_can_install_to_GOPATH.patch
new file mode 100644
index 000000000..cc97b8f8f
--- /dev/null
+++ b/debian/patches/009-goinstall_can_install_to_GOPATH.patch
@@ -0,0 +1,13 @@
+--- a/src/cmd/goinstall/main.go
++++ b/src/cmd/goinstall/main.go
+@@ -75,6 +75,10 @@ func main() {
+ os.Exit(1)
+ }
+
++ if os.Getuid() != 0 && os.Getenv("GOPATH") == "" {
++ fmt.Fprintf(os.Stderr, "%s: set $GOPATH to the directory you want packages installed to if you get permission denied error\n", argv0)
++ }
++
+ // special case - "unsafe" is already installed
+ visit["unsafe"] = done
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 000000000..11d541638
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,7 @@
+001-allow_IPv4_on_IPv6_sockets.patch
+003-set_correct_runpath.patch
+005-goinstall_dont_call_home_by_default.patch
+006-fix_kfreebsd_build.patch
+007-use_native_dynamic_linker_on_kfreebsd.patch
+008-emacs-mode-key-literal-indent.patch
+009-goinstall_can_install_to_GOPATH.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..7d413bdc1
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,139 @@
+#!/usr/bin/make -f
+# This file is in the public domain.
+# You may freely use, modify, distribute, and relicense it.
+
+PACKAGE = golang
+
+libexecdir := /usr/lib/go
+datadir := /usr/share/go
+bindir := /bin
+
+build clean install binary-arch binary-indep binary:
+ +dh --parallel $(opt_no_act) $@
+
+override_dh_auto_clean:
+ rm -rf bin
+ rm -f debian/*+
+ rm -f debian/build.stamp
+ : NEEDSWORK: update src/pkg/Makefile.
+ #cd src/pkg && $(GOBIN)/gomake exp/ogle.clean
+ rm -f src/pkg/Make.deps
+ rm -f test/pass.out test/run.out test/times.out
+
+override_dh_auto_build: debian/build.stamp
+
+override_dh_auto_test:
+ :
+# $(no_check) || { cd src && bash ./run.bash --no-rebuild; }
+
+override_dh_compress:
+ dh_compress -Xusr/share/doc/$(PACKAGE)-doc/html -Xusr/share/doc/$(PACKAGE)-doc/godoc
+
+override_dh_install:
+ dh_install --fail-missing
+ for f in $$(find src/cmd -name doc.go ; find src/pkg -name \*.go); do \
+ install -D -m 0644 $$f debian/$(PACKAGE)-src/$(datadir)/$$f; \
+ done
+ make -f debian/native-symlinks.mk PACKAGE=$(PACKAGE)
+
+override_dh_strip:
+ dh_strip -X".a" -Xgoinstall -Xgodoc -Xgoyacc -Xbin/cgo -Xebnflint -Xgofix -Xgofmt -Xgovet -Xgotest --dbg-package=$(PACKAGE)-dbg
+
+debian/build.stamp:
+ rm -f debian/build.stamp
+ mkdir -p $(GOBIN)
+ +cd src && bash ./make.bash
+ >debian/build.stamp
+
+opt_no_act =
+no_check = ! :
+
+ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
+ $(warning no support for disabling optimization)
+endif
+
+ifneq (,$(findstring n,$(MAKEFLAGS)))
+ opt_no_act = --no-act
+endif
+
+ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ no_check = :
+endif
+
+GOROOT := $(CURDIR)
+GOROOT_FINAL := $(libexecdir)
+GOBIN := $(CURDIR)$(bindir)
+GOARM :=
+
+DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null)
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
+DEB_HOST_ARCH_CPU := $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU 2>/dev/null)
+DEB_BUILD_ARCH_OS := $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS 2>/dev/null)
+DEB_BUILD_ARCH_CPU := $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU 2>/dev/null)
+
+ifeq ($(DEB_BUILD_ARCH_OS), kfreebsd)
+ GOHOSTOS := freebsd
+else ifeq ($(DEB_BUILD_ARCH_OS), linux)
+ GOHOSTOS := linux
+else
+ $(error unrecongized build host kernel $(DEB_BUILD_ARCH_OS)!)
+endif
+
+ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
+ GOOS := freebsd
+else ifeq ($(DEB_HOST_ARCH_OS), linux)
+ GOOS := linux
+else
+ $(error unrecognized kernel $(DEB_HOST_ARCH_OS)!)
+endif
+
+ifeq ($(DEB_BUILD_ARCH_CPU), i386)
+ GOHOSTARCH := 386
+else ifeq ($(DEB_BUILD_ARCH_CPU), amd64)
+ GOHOSTARCH := amd64
+else ifeq ($(DEB_BUILD_ARCH_CPU), arm)
+ GOHOSTARCH := arm
+else ifeq ($(DEB_BUILD_ARCH_CPU), armhf)
+ GOHOSTARCH := arm
+else
+ $(error unrecognized build host instruction set $(DEB_HOST_ARCH_CPU)!)
+endif
+
+ifeq ($(DEB_HOST_ARCH_CPU), i386)
+ GOARCH := 386
+ GOPREFIX := 8
+else ifeq ($(DEB_HOST_ARCH_CPU), amd64)
+ GOARCH := amd64
+ GOPREFIX := 6
+else ifeq ($(DEB_HOST_ARCH_CPU), arm)
+ GOARCH := arm
+ GOPREFIX := 5
+ifeq ($(DEB_HOST_ARCH), armel)
+ GOARM := 5
+else ifeq ($(DEB_HOST_ARCH), armhf)
+ GOARM := 6
+else
+ $(error unrecognized arm architecture $(DEB_HOST_ARCH)!)
+endif
+else
+ $(error unrecognized instruction set $(DEB_HOST_ARCH_CPU)!)
+endif
+
+export GOROOT GOROOT_FINAL GOOS GOARCH GOARM GOBIN GOHOSTARCH GOHOSTOS
+
+REPO = https://go.googlecode.com/hg/
+GOLANG_ORIG_DIR = $(CURDIR)/../go
+REV = release
+get-orig-source:
+ -set -e; \
+ if [ ! -d $(GOLANG_ORIG_DIR) ]; then \
+ hg clone -r"$(REV)" "$(REPO)" "$(GOLANG_ORIG_DIR)"; \
+ fi
+ cd "$(GOLANG_ORIG_DIR)"; \
+ hg pull; \
+ hg update "$(REV)"; \
+ VERSION=$$(hg identify -t -r"$(REV)" | perl -e '<> =~ /$(REV)\.r([\d.]+)/; print "$$1"'); \
+ hg archive -ttgz -p"$(PACKAGE)-$$VERSION/" -r"$(REV)" -X'.hg*' -X'doc/talks/go_talk-20091030.pdf' "$(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz"; \
+ echo "Now run git-import-orig $(CURDIR)/../$(PACKAGE)_$$VERSION.orig.tar.gz"
+
+.PHONY: build clean install binary-arch binary-indep binary
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 000000000..163aaf8d8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/vim-registry/vim-syntax-go.yaml b/debian/vim-registry/vim-syntax-go.yaml
new file mode 100644
index 000000000..aee788212
--- /dev/null
+++ b/debian/vim-registry/vim-syntax-go.yaml
@@ -0,0 +1,8 @@
+addon: go-syntax
+description: "Addon to highlight Google's Go"
+files:
+ - syntax/go.vim
+ - ftdetect/gofiletype.vim
+ - ftplugin/go/fmt.vim
+ - ftplugin/go/import.vim
+ - indent/go.vim \ No newline at end of file
diff --git a/debian/vim-syntax-go.install b/debian/vim-syntax-go.install
new file mode 100644
index 000000000..3c3bd54f4
--- /dev/null
+++ b/debian/vim-syntax-go.install
@@ -0,0 +1,5 @@
+misc/vim/ftdetect/*.vim /usr/share/vim/addons/ftdetect/
+misc/vim/syntax/*.vim /usr/share/vim/addons/syntax/
+misc/vim/ftplugin/go/*.vim /usr/share/vim/addons/ftplugin/go/
+misc/vim/indent/*.vim /usr/share/vim/addons/indent/
+debian/vim-registry/*.yaml /usr/share/vim/registry/