summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/NEWS40
-rw-r--r--debian/README.Debian9
-rw-r--r--debian/README.source33
-rw-r--r--debian/changelog409
-rw-r--r--debian/compat1
-rw-r--r--debian/control148
-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-doc.lintian-overrides5
-rw-r--r--debian/golang-go.config23
-rw-r--r--debian/golang-go.dirs3
-rw-r--r--debian/golang-go.install4
-rw-r--r--debian/golang-go.links1
-rw-r--r--debian/golang-go.lintian-overrides8
-rw-r--r--debian/golang-go.manpages1
-rw-r--r--debian/golang-go.postinst72
-rw-r--r--debian/golang-go.postrm19
-rw-r--r--debian/golang-go.templates24
-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-src.install1
-rw-r--r--debian/kate-syntax-go.install1
-rw-r--r--debian/man/go-build.180
-rw-r--r--debian/man/go-clean.182
-rw-r--r--debian/man/go-doc.135
-rw-r--r--debian/man/go-env.121
-rw-r--r--debian/man/go-fix.125
-rw-r--r--debian/man/go-fmt.137
-rw-r--r--debian/man/go-get.159
-rw-r--r--debian/man/go-install.128
-rw-r--r--debian/man/go-list.1104
-rw-r--r--debian/man/go-packages.766
-rw-r--r--debian/man/go-path.777
-rw-r--r--debian/man/go-remote.7166
-rw-r--r--debian/man/go-run.124
-rw-r--r--debian/man/go-test.175
-rw-r--r--debian/man/go-testflag.787
-rw-r--r--debian/man/go-testfunc.763
-rw-r--r--debian/man/go-tool.126
-rw-r--r--debian/man/go-version.113
-rw-r--r--debian/man/go-vet.135
-rw-r--r--debian/man/go.166
-rw-r--r--debian/man/godoc.1209
-rw-r--r--debian/man/gofmt.1108
-rw-r--r--debian/patches/001-allow_IPv4_on_IPv6_sockets.patch25
-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.patch79
-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/010-goinstall_check_conf.patch28
-rw-r--r--debian/patches/011-__FreeBSD_kernel__.patch33
-rw-r--r--debian/patches/012-sigfillset_kFreeBSD.patch22
-rw-r--r--debian/patches/013-kFreeBSD-AI_MASK.patch9
-rw-r--r--debian/patches/014-dont_fail_test_with_missing_homedir.patch26
-rw-r--r--debian/patches/15-net-http-connection-close.patch164
-rw-r--r--debian/patches/godoc-symlinks.diff27
-rw-r--r--debian/patches/series13
-rw-r--r--debian/patches/version.patch14
-rw-r--r--debian/po/POTFILES.in1
-rw-r--r--debian/po/cs.po56
-rw-r--r--debian/po/da.po56
-rw-r--r--debian/po/de.po58
-rw-r--r--debian/po/es.po84
-rw-r--r--debian/po/fr.po57
-rw-r--r--debian/po/it.po59
-rw-r--r--debian/po/nl.po58
-rw-r--r--debian/po/pl.po61
-rw-r--r--debian/po/pt.po70
-rw-r--r--debian/po/ru.po60
-rw-r--r--debian/po/sv.po58
-rw-r--r--debian/po/templates.pot50
-rwxr-xr-xdebian/rules144
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides10
-rwxr-xr-xdebian/test.bash4
-rw-r--r--debian/vim-registry/vim-syntax-go.yaml8
-rw-r--r--debian/vim-syntax-go.install5
-rw-r--r--debian/watch2
86 files changed, 4919 insertions, 0 deletions
diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 000000000..2b66f4399
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,40 @@
+golang (2:1-1) unstable; urgency=low
+
+ Go 1 is a major release of Go that will be stable in the long term.
+ It is intended that programs written for Go 1 will continue to compile
+ and run correctly, unchanged, under future versions of Go 1.
+
+ The Go 1 release notes list the significant changes since the last
+ release and explain how to update your code:
+ http://golang.org/doc/go1.html
+
+ To learn about the future of Go 1, read the Go 1 compatibility document:
+ http://golang.org/doc/go1compat.html
+
+ -- Ondřej Surý <ondrej@debian.org> Fri, 06 Apr 2012 16:02:17 +0200
+
+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..6a5ce7b45
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,409 @@
+golang (2:1.1~hg20130405-1) experimental; urgency=low
+
+ * Provide a new hg tip snapshot. This includes what was recently released as
+ Go 1.1 beta.
+
+ -- Michael Stapelberg <stapelberg@debian.org> Fri, 05 Apr 2013 18:24:36 +0200
+
+golang (2:1.1~hg20130323-1) experimental; urgency=low
+
+ * Provide a new hg tip snapshot.
+ * Add debian/watch (Closes: #699698)
+
+ -- Michael Stapelberg <stapelberg@debian.org> Sat, 23 Mar 2013 11:31:26 +0100
+
+golang (2:1.1~hg20130304-2) experimental; urgency=low
+
+ * Fix FTBFS of binary-arch only builds (as performed by buildds)
+ caused by 'rm' not finding jquery.js in golang-doc
+ (Thanks Peter Green)
+
+ -- Michael Stapelberg <stapelberg@debian.org> Tue, 05 Mar 2013 00:49:27 +0100
+
+golang (2:1.1~hg20130304-1) experimental; urgency=low
+
+ * Provide a hg tip snapshot (2013-03-04) in Debian experimental.
+ Current hg tip is a good approximation to Go 1.1 and should get
+ some testing within Debian in order to package Go 1.1 well when
+ it is released. Thanks to Andrew Gerrand.
+
+ -- Michael Stapelberg <stapelberg@debian.org> Mon, 04 Mar 2013 21:28:58 +0100
+
+golang (2:1.0.2-2) unstable; urgency=low
+
+ * Add myself to uploaders, as discussed in #683421.
+ * cherry-pick r820ffde8c396 (net/http: non-keepalive connections close
+ successfully) (Closes: #683421)
+
+ -- Michael Stapelberg <stapelberg@debian.org> Thu, 02 Aug 2012 14:25:58 +0200
+
+golang (2:1.0.2-1.1) unstable; urgency=low
+
+ * Non-maintainer upload. (as discussed with Ondřej in #679692)
+ * Fix godoc-symlinks.diff (godoc didn’t find docs) (Closes: #679692)
+
+ -- Michael Stapelberg <stapelberg@debian.org> Fri, 20 Jul 2012 17:59:38 +0200
+
+golang (2:1.0.2-1) unstable; urgency=low
+
+ [ Ondřej Surý ]
+ * Imported Upstream version 1.0.2
+ * Update Vcs fields to reflect new git repository location
+ * Kill get-orig-source, since 1.0.0, the tarballs can be downloaded from
+ webpage
+
+ [ Michael Stapelberg ]
+ * golang-mode: use debian-pkg-add-load-path-item (Closes: #664802)
+ * add manpages (Closes: #632964)
+ * Use updated pt.po from Pedro Ribeiro (Closes: #674958)
+
+ -- Ondřej Surý <ondrej@sury.org> Thu, 28 Jun 2012 12:14:15 +0200
+
+golang (2:1.0.1-1) unstable; urgency=low
+
+ * Imported Upstream version 1.0.1
+ * Apply godoc patch to display package list correctly (Closes: #669354)
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 02 May 2012 15:44:59 +0200
+
+golang (2:1-6) unstable; urgency=low
+
+ * Merge upstream patch to fix homedir issue
+ (http://code.google.com/p/go/source/detail?r=709120aecee0)
+ * Disable GNU/KFreeBSD build (Closes: #668794)
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 18 Apr 2012 09:53:30 +0200
+
+golang (2:1-5) unstable; urgency=low
+
+ * Rewrite test conditions to make them more readable
+ (and fix the debian/rules to really not check on armel+kfreebsd)
+ * Patch upstream test to not fail on missing home directory
+
+ -- Ondřej Surý <ondrej@debian.org> Sun, 15 Apr 2012 12:35:53 +0200
+
+golang (2:1-4) unstable; urgency=low
+
+ * Disable tests on Debian GNU/KFreeBSD, they just hang now (Closes: #668794)
+ * Disable tests on armel, but the invalid instruction needs fixing in
+ upstream
+ * Create fake home directory to pass the os/user test
+
+ -- Ondřej Surý <ondrej@debian.org> Sun, 15 Apr 2012 10:49:09 +0200
+
+golang (2:1-3) unstable; urgency=high
+
+ * Use VERSION provided by upstream for packaging purposes
+ * Run tests as a part of a build process
+ * Install full src tree (except pkg/debug) because go command depend
+ on sources available
+ * Install sources without testdata and *_test.go
+ * Remove circular dependency golang-go->golang-doc->golang-go
+ * Make sure that timestamp on installed binaries and libraries is same
+ because go build/install recompiles everything if the go binary has
+ more recent timestamp than libraries (Closes: #668235)
+ + Need to update timestamps at postinst time because already created
+ directories can have time in the past
+ * Fix couple of lintian errors and warnings
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 11 Apr 2012 23:21:47 +0200
+
+golang (2:1-2) unstable; urgency=low
+
+ * Remove preserving of old -tools settings, there are too many options
+ now anyway (Closes: #666007)
+
+ -- Ondřej Surý <ondrej@debian.org> Fri, 06 Apr 2012 16:52:13 +0200
+
+golang (2:1-1) unstable; urgency=low
+
+ * New major upstream release Go 1 (Closes: #666942)
+ * Bumb epoch to 2, since 1 < 60 < 2011 (I wonder if next version will be 0 :)
+ * Debconf templates and debian/control reviewed by the debian-l10n-
+ english team as part of the Smith review project. (Closes: #663181)
+ * [Debconf translation updates]
+ + Pick existing translations from golang-weekly and do appropriate
+ sed magic to fit golang templates. (Closes: #666884, #666880, #666881)
+ + Dutch; (Jeroen Schot). (Closes: #664598)
+ + Czech (Michal Simunek). (Closes: #665385)
+ + Spanish; (Camaleón). (Closes: #666177)
+ + Danish (Joe Hansen). (Closes: #666526)
+
+ -- Ondřej Surý <ondrej@debian.org> Fri, 06 Apr 2012 16:04:17 +0200
+
+golang (1:60.3-2) unstable; urgency=low
+
+ * debconf-gettextize package templates
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 20 Feb 2012 22:01:10 +0100
+
+golang (1:60.3-1) unstable; urgency=low
+
+ * Imported Upstream version 60.3
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 28 Nov 2011 08:46:18 +0100
+
+golang (1:60.2-1) unstable; urgency=low
+
+ * Imported Upstream version 60.2
+
+ -- Ondřej Surý <ondrej@debian.org> Thu, 06 Oct 2011 08:57:00 +0200
+
+golang (1:60.1-1) unstable; urgency=low
+
+ * Imported Upstream version 60.1
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 19 Sep 2011 10:18:12 +0200
+
+golang (1:60-1) unstable; urgency=low
+
+ * Imported Upstream version 60
+ * Save upstream VERSION to the archive
+ * Use GOVERSION as generated by src/version.bash on hg archive time
+ * Add support for goinstall dashboard debconf question in the Debian
+ packaging
+ * Read goinstall dashboard option from debian configuration file
+ * Remove 005-goinstall_dont_call_home_by_default.patch; replaced by
+ configuration option
+ * Fix directory name for upstream archive checkout
+
+ -- Ondřej Surý <ondrej@debian.org> Tue, 13 Sep 2011 13:13:59 +0200
+
+golang (1:59-1) unstable; urgency=low
+
+ * Imported Upstream version 59
+ * Refresh patches to a new release
+ * Fix FTBFS on ARM (Closes: #634270)
+ * Update version.bash to work with Debian packaging and not hg
+ repository
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 03 Aug 2011 17:04:59 +0200
+
+golang (1:58.1-2) unstable; urgency=low
+
+ * Install golang-doc package by default (Recommends from golang-tools,
+ Depends from golang)
+
+ -- Ondřej Surý <ondrej@debian.org> Mon, 18 Jul 2011 09:13:43 +0200
+
+golang (1:58.1-1) unstable; urgency=low
+
+ * Imported Upstream version 58.1
+
+ -- Ondřej Surý <ondrej@debian.org> Wed, 13 Jul 2011 08:39:04 +0200
+
+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..546db3c12
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,148 @@
+Source: golang
+Section: devel
+Priority: optional
+Maintainer: Ondřej Surý <ondrej@debian.org>
+Uploaders: Michael Stapelberg <stapelberg@debian.org>
+Vcs-Browser: http://git.debian.org/?p=pkg-golang/golang.git
+Vcs-Git: git://git.debian.org/pkg-golang/golang.git
+Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl, netbase
+Build-Depends-Indep: po-debconf
+Standards-Version: 3.9.3
+Homepage: http://golang.org/
+
+Package: golang-go
+Architecture: i386 amd64 armel armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends},
+ golang-src (>= ${source:Version})
+Replaces: golang-weekly-go, golang-weekly-tools, golang-tools
+Conflicts: golang-weekly-go, golang-weekly-tools, golang-tools
+Provides: go-compiler, golang-weekly-go, golang-weekly-tools, golang-tools
+Description: Go programming language compiler
+ 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.
+ .
+ This package provides an assembler, a compiler, and a linker for the
+ Go programming language. This is Google's implementation of the Go
+ tool chain.
+
+Package: golang-src
+Replaces: golang-weekly-src, golang-go (<< 2:1-3~)
+Conflicts: golang-weekly-src
+Provides: golang-weekly-src
+Breaks: golang-go (<< 2:1-3~)
+Architecture: i386 amd64 armel armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Go programming language compiler - source files
+ 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.
+ .
+ This package provides the Go programming language source files needed
+ for godoc and goinstall.
+
+Package: golang-doc
+Replaces: golang-weekly-doc
+Conflicts: golang-weekly-doc
+Provides: golang-weekly-doc
+Depends: ${misc:Depends}, golang-go, libjs-jquery
+Architecture: all
+Section: doc
+Description: Go programming language compiler - documentation
+ 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.
+ .
+ This package provides the documentation for the Go programming
+ language. You can view the formatted documentation by running "godoc
+ --http=:6060", and then visiting http://localhost:6060/doc/install.html.
+
+Package: golang-dbg
+Replaces: golang-weekly-dbg
+Conflicts: golang-weekly-dbg
+Provides: golang-weekly-dbg
+Architecture: i386 amd64 armel armhf
+Depends: ${misc:Depends}, golang-go (= ${binary:Version})
+Recommends: gdb
+Section: debug
+Priority: extra
+Description: Go programming language compiler - debug files
+ 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.
+ .
+ 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
+Replaces: golang-weekly
+Conflicts: golang-weekly
+Provides: golang-weekly
+Depends: ${misc:Depends},
+ golang-go (>= ${source:Version}),
+ golang-src (>= ${source:Version}),
+ golang-doc (>= ${source:Version})
+Architecture: all
+Description: Go programming language compiler - metapackage
+ 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.
+ .
+ This package is a metapackage that, when installed, guarantees
+ that (most of) a full Go development environment is installed.
+
+Package: golang-mode
+Architecture: all
+Depends: ${misc:Depends}, emacs23 | emacsen, emacsen-common (>= 1.4.14)
+Suggests: golang-go
+Description: Go programming language - mode for GNU Emacs
+ This package provides a GNU Emacs major mode for editing code in
+ Google's Go programming language.
+
+Package: kate-syntax-go
+Architecture: all
+Depends: ${misc:Depends}, kate
+Suggests: golang-go
+Description: Go programming language - Kate highlighting syntax files
+ This package provides syntax files for the Kate editor for editing code
+ in Google's Go programming language.
+
+Package: vim-syntax-go
+Architecture: all
+Depends: ${misc:Depends}, vim
+Recommends: vim-addon-manager
+Suggests: golang-go
+Description: Go programming language - Vim highlighting syntax files
+ This package provides syntax files for the Vim editor for editing code
+ in Google's Go programming language.
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-doc.lintian-overrides b/debian/golang-doc.lintian-overrides
new file mode 100644
index 000000000..1d1f73718
--- /dev/null
+++ b/debian/golang-doc.lintian-overrides
@@ -0,0 +1,5 @@
+# While golang-doc ships HTML files, they are not intended to be viewed
+# directly in a browser or other HTML-capable tool. Instead, they have to be
+# served by using e.g. “godoc -http=:6060”, see also
+# http://bugs.debian.org/702642
+golang-doc: possible-documentation-but-no-doc-base-registration
diff --git a/debian/golang-go.config b/debian/golang-go.config
new file mode 100644
index 000000000..30fe76ffa
--- /dev/null
+++ b/debian/golang-go.config
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+set -e
+
+conffile=/etc/golang/goinstall.conf
+
+. /usr/share/debconf/confmodule
+
+if [ -f $conffile ] ; then
+ if grep -q DASHBOARD $conffile; then
+ :;
+ fi
+ . $conffile
+ if [ "$DASHBOARD" = "yes" ] ; then
+ DASHBOARD=true
+ else
+ DASHBOARD=false
+ fi
+ db_set golang-go/dashboard "$DASHBOARD"
+fi
+
+db_input high golang-go/dashboard || [ $? -eq 30 ]
+db_go || true
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..a94edb563
--- /dev/null
+++ b/debian/golang-go.install
@@ -0,0 +1,4 @@
+bin/go /usr/bin
+bin/godoc /usr/bin
+bin/gofmt /usr/bin
+pkg /usr/lib/go/
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..f4edd878c
--- /dev/null
+++ b/debian/golang-go.lintian-overrides
@@ -0,0 +1,8 @@
+golang-go: unstripped-binary-or-object usr/bin/godoc
+golang-go: unstripped-binary-or-object usr/bin/gofmt
+golang-go: statically-linked-binary usr/bin/gofmt
+golang-go: statically-linked-binary usr/lib/go/pkg/tool/linux_amd64/api
+golang-go: statically-linked-binary usr/lib/go/pkg/tool/linux_amd64/cgo
+golang-go: statically-linked-binary usr/lib/go/pkg/tool/linux_amd64/fix
+golang-go: statically-linked-binary usr/lib/go/pkg/tool/linux_amd64/vet
+golang-go: statically-linked-binary usr/lib/go/pkg/tool/linux_amd64/yacc
diff --git a/debian/golang-go.manpages b/debian/golang-go.manpages
new file mode 100644
index 000000000..19f429f39
--- /dev/null
+++ b/debian/golang-go.manpages
@@ -0,0 +1 @@
+debian/man/*
diff --git a/debian/golang-go.postinst b/debian/golang-go.postinst
new file mode 100644
index 000000000..9ef650615
--- /dev/null
+++ b/debian/golang-go.postinst
@@ -0,0 +1,72 @@
+#!/bin/sh
+
+# Load debconf variables
+. /usr/share/debconf/confmodule
+
+confdir=/etc/golang
+conffile=$confdir/goinstall.conf
+
+set -e
+
+if [ -e $conffile ] ; then
+ # Fetch current values.
+ . $conffile
+fi
+
+# Get this setting from debconf. It was set based on the content of
+# /etc/golang/goinstall.conf in the 'config' script, so it should be
+# safe to ignore the value fetched by loading the file above. This
+# should allow for using debconf to reconfigure the package.
+db_get golang-go/dashboard || true
+if [ "$RET" = "yes" ] || [ "$RET" = "YES" ] || [ "$RET" = "true" ]; then
+ DASHBOARD="yes"
+else
+ DASHBOARD="no"
+fi
+
+generate_conffile() {
+ if [ ! -d $confdir ]; then
+ mkdir $confdir
+ fi
+ cat <<-EOF >$conffile
+ # Config file for goinstall tool.
+ #
+ # To change this file, use:
+ # dpkg-reconfigure golang-go
+ #
+ # You can also edit it by hand, if you so choose.
+
+ DASHBOARD="$DASHBOARD"
+ EOF
+
+ # Make sure user nobody can read the file.
+ chmod a+r $conffile
+}
+
+case "$1" in
+ configure)
+ if [ ! -e $conffile ]; then
+ generate_conffile
+ else
+ # Replace only if the content changed, to avoid changing the
+ # config file date when no change was done.
+ sedopts=" \
+ s/^DASHBOARD=.*$/DASHBOARD=\"$DASHBOARD\"/; \
+ "
+ if sed "$sedopts" < $conffile > $conffile.new &&
+ ! cmp $conffile $conffile.new > /dev/null; then
+ mv $conffile.new $conffile
+ # Make sure user nobody can read the file.
+ chmod a+r $conffile
+ else
+ rm $conffile.new
+ fi
+ fi
+ # Very ugly hack to set timestamps same as /usr/bin/go
+ find /usr/lib/go/pkg -exec touch -r /usr/bin/go {} \;
+ ;;
+ *)
+ ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/golang-go.postrm b/debian/golang-go.postrm
new file mode 100644
index 000000000..2cf582ef7
--- /dev/null
+++ b/debian/golang-go.postrm
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+set -e
+
+# purge the config file which is created in the postinst script
+if [ "$1" = purge ] ; then
+ rm -f /etc/golang/goinstall.conf
+ rmdir /etc/golang || true
+fi
+
+if [ "$1" = "purge" ] && [ -e /usr/share/debconf/confmodule ]; then
+ # Source debconf library.
+ . /usr/share/debconf/confmodule
+ # Remove my changes to the db.
+ db_purge
+fi
+
+#DEBHELPER#
+
diff --git a/debian/golang-go.templates b/debian/golang-go.templates
new file mode 100644
index 000000000..8ec7bd3fc
--- /dev/null
+++ b/debian/golang-go.templates
@@ -0,0 +1,24 @@
+# These templates have been reviewed by the debian-l10n-english
+# team
+#
+# If modifications/additions/rewording are needed, please ask
+# debian-l10n-english@lists.debian.org for advice.
+#
+# Even minor modifications require translation updates and such
+# changes should be coordinated with translators and reviewers.
+
+Template: golang-go/dashboard
+Type: boolean
+Default: true
+_Description: Report installation of public packages to Go Dashboard?
+ The goinstall program reports the successful installation of the public Go
+ packages to godashboard.appspot.com, which increments a count associated
+ with the package and the time of its most recent installation. This mechanism
+ powers the package list at the Go Dashboard, allowing Go programmers to
+ learn about popular packages that might be worth looking at.
+ .
+ If you choose to participate, each successful
+ installation will be reported to the Go Dashboard.
+ .
+ This choice can be modified by running "dpkg-reconfigure
+ golang-go".
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..5565b9a2e
--- /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)
+ (debian-pkg-add-load-path-item path)
+ (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-src.install b/debian/golang-src.install
new file mode 100644
index 000000000..8885d62db
--- /dev/null
+++ b/debian/golang-src.install
@@ -0,0 +1 @@
+src /usr/share/go/
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/man/go-build.1 b/debian/man/go-build.1
new file mode 100644
index 000000000..6e1794c7d
--- /dev/null
+++ b/debian/man/go-build.1
@@ -0,0 +1,80 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-BUILD 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go build
+.RB [\|\-o
+.IR output \|]
+.RB [
+.IR "build flags"
+.RB ]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Build compiles the packages named by the import paths,
+along with their dependencies, but it does not install the results.
+
+If the arguments are a list of .go files, build treats them as a list
+of source files specifying a single package.
+
+When the command line specifies a single main package,
+build writes the resulting executable to output.
+Otherwise build compiles the packages but discards the results,
+serving only as a check that the packages can be built.
+
+The \-o flag specifies the output file name. If not specified, the
+name is packagename.a (for a non-main package) or the base
+name of the first source file (for a main package).
+.SH OPTIONS
+The build flags are shared by the build, install, run, and test commands:
+.TP
+.B \-a
+force rebuilding of packages that are already up-to-date.
+.TP
+.B \-n
+print the commands but do not run them.
+.TP
+.B \-p n
+the number of builds that can be run in parallel. The default is the number of CPUs available.
+.TP
+.B \-v
+print the names of packages as they are compiled.
+.TP
+.B \-work
+print the name of the temporary work directory and do not delete it when exiting.
+.TP
+.B \-x
+print the commands.
+.TP
+.B \-compiler name
+name of compiler to use, as in runtime.Compiler (gccgo or gc)
+.TP
+.B \-gccgoflags 'arg list'
+arguments to pass on each gccgo compiler/linker invocation
+.TP
+.B \-gcflags 'arg list'
+arguments to pass on each 5g, 6g, or 8g compiler invocation
+.TP
+.B \-ldflags 'flag list'
+arguments to pass on each 5l, 6l, or 8l linker invocation
+.TP
+.B \-tags 'tag list'
+a list of build tags to consider satisfied during the build.
+See the documentation for the go/build package for
+more information about build tags.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.P
+For more about where packages and binaries are installed, see \fBgo-gopath\fP(1).
+
+.SH SEE ALSO
+.BR go-install (1),
+.BR go-get (1),
+.BR go-clean (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-clean.1 b/debian/man/go-clean.1
new file mode 100644
index 000000000..bff689e2a
--- /dev/null
+++ b/debian/man/go-clean.1
@@ -0,0 +1,82 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-CLEAN 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go clean
+.RB [\|\-i\|]
+.RB [\|\-r\|]
+.RB [\|\-n\|]
+.RB [\|\-x\|]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Clean removes object files from package source directories.
+The go command builds most objects in a temporary directory,
+so go clean is mainly concerned with object files left by other
+tools or by manual invocations of go build.
+
+Specifically, clean removes the following files from each of the
+source directories corresponding to the import paths:
+
+.TP
+.B _obj/
+old object directory, left from Makefiles
+.TP
+.B _test/
+old test directory, left from Makefiles
+.TP
+.B _testmain.go
+old gotest file, left from Makefiles
+.TP
+.B test.out
+old test log, left from Makefiles
+.TP
+.B build.out
+old test log, left from Makefiles
+.TP
+.B *.[568ao]
+object files, left from Makefiles
+
+.TP
+.B DIR(.exe)
+from go build
+.TP
+.B DIR.test(.exe)
+from go test \-c
+.TP
+.B MAINFILE(.exe)
+from go build MAINFILE.go
+.P
+In the list, DIR represents the final path element of the
+directory, and MAINFILE is the base name of any Go source
+file in the directory that is not included when building
+the package.
+.SH OPTIONS
+.TP
+.B \-i
+The \-i flag causes clean to remove the corresponding installed
+archive or binary (what 'go install' would create).
+
+.TP
+.B \-n
+The \-n flag causes clean to print the remove commands it would execute,
+but not run them.
+
+.TP
+.B \-r
+The \-r flag causes clean to be applied recursively to all the
+dependencies of the packages named by the import paths.
+
+.TP
+.B \-x
+The \-x flag causes clean to print remove commands as it executes them.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-doc.1 b/debian/man/go-doc.1
new file mode 100644
index 000000000..cf20d784d
--- /dev/null
+++ b/debian/man/go-doc.1
@@ -0,0 +1,35 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-DOC 1 "2012-06-15"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go doc
+.RB [\|\-n\|]
+.RB [\|\-x\|]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Doc runs the godoc command on the packages named by the
+import paths.
+.P
+For more about godoc, see 'godoc godoc'.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.P
+To run godoc with specific options, run godoc itself.
+.SH OPTIONS
+.TP
+.B \-n
+The \-n flag causes tool to print the command that would be
+executed but not execute it.
+.TP
+.B \-x
+The \-x flag causes clean to print remove commands as it executes them.
+.SH SEE ALSO
+.BR godoc (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-env.1 b/debian/man/go-env.1
new file mode 100644
index 000000000..48a506dcd
--- /dev/null
+++ b/debian/man/go-env.1
@@ -0,0 +1,21 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-ENV 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go env
+.RB [
+.IR "var ..."
+.RB ]
+.SH DESCRIPTION
+Env prints Go environment information.
+
+By default env prints information as a shell script
+(on Windows, a batch file). If one or more variable
+names is given as arguments, env prints the value of
+each named variable on its own line.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-fix.1 b/debian/man/go-fix.1
new file mode 100644
index 000000000..ed368882d
--- /dev/null
+++ b/debian/man/go-fix.1
@@ -0,0 +1,25 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-FIX 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go fix
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Fix runs the Go fix command on the packages named by the import paths.
+.P
+For more about fix, see 'godoc fix'.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.P
+To run fix with specific options, run 'go tool fix'.
+.SH SEE ALSO
+.BR go-fmt (1),
+.BR go-vet (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-fmt.1 b/debian/man/go-fmt.1
new file mode 100644
index 000000000..fc555b821
--- /dev/null
+++ b/debian/man/go-fmt.1
@@ -0,0 +1,37 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-FMT 1 "2012-06-15"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go fmt
+.RB [\|\-n\|]
+.RB [\|\-x\|]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Fmt runs the command 'gofmt \-l \-w' on the packages named
+by the import paths. It prints the names of the files that are modified.
+.P
+For more about gofmt, see 'godoc gofmt'.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.P
+To run gofmt with specific options, run gofmt itself.
+.SH OPTIONS
+.TP
+.B \-n
+The \-n flag causes tool to print the command that would be
+executed but not execute it.
+.TP
+.B \-x
+The \-x flag causes clean to print remove commands as it executes them.
+.SH SEE ALSO
+.BR go-doc (1),
+.BR go-fix (1),
+.BR go-vet (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-get.1 b/debian/man/go-get.1
new file mode 100644
index 000000000..8f09ed1c8
--- /dev/null
+++ b/debian/man/go-get.1
@@ -0,0 +1,59 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-GET 1 "2012-06-15"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go get
+.RB [\|\-a\|]
+.RB [\|\-d\|]
+.RB [\|\-fix\|]
+.RB [\|\-n\|]
+.RB [\|\-p
+.IR n \|]
+.RB [\|\-u\|]
+.RB [\|\-v\|]
+.RB [\|\-x\|]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Get downloads and installs the packages named by the import paths,
+along with their dependencies.
+
+When checking out or updating a package, get looks for a branch or tag that
+matches the locally installed version of Go. The most important rule is that if
+the local installation is running version "go1", get searches for a branch or
+tag named "go1". If no such version exists it retrieves the most recent version
+of the package.
+
+.SH OPTIONS
+.TP
+.B \-a, \-n, \-v, \-x, \-p
+The \-a, \-n, \-v, \-x, and \-p flags have the same meaning as in 'go build'
+and 'go install'. See \fBgo-build\fP(1).
+.TP
+.B \-d
+The \-d flag instructs get to stop after downloading the packages; that is,
+it instructs get not to install the packages.
+.TP
+.B \-fix
+The \-fix flag instructs get to run the fix tool on the downloaded packages
+before resolving dependencies or building the code.
+.TP
+.B \-u
+The \-u flag instructs get to use the network to update the named packages
+and their dependencies. By default, get uses the network to check out
+missing packages but does not use it to look for updates to existing packages.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.P
+For more about how 'go get' finds source code to download, see \fBgo-remote\fP(7).
+.SH SEE ALSO
+.BR go-build (1),
+.BR go-install (1),
+.BR go-clean (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-install.1 b/debian/man/go-install.1
new file mode 100644
index 000000000..9e53bb2d8
--- /dev/null
+++ b/debian/man/go-install.1
@@ -0,0 +1,28 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-INSTALL 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go install
+.RB [
+.IR "build flags"
+.RB ]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Install compiles and installs the packages named by the import paths,
+along with their dependencies.
+.P
+For more about the build flags, see \fBgo-build\fP(1).
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.SH SEE ALSO
+.BR go-build (1),
+.BR go-get (1),
+.BR go-clean (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-list.1 b/debian/man/go-list.1
new file mode 100644
index 000000000..b97c2504f
--- /dev/null
+++ b/debian/man/go-list.1
@@ -0,0 +1,104 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-LIST 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go list
+.RB [\|\-e\|]
+.RB [\|\-f
+.IR format \|]
+.RB [\|\-json\|]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+List lists the packages named by the import paths, one per line.
+
+The default output shows the package import path:
+
+.Vb 6
+\& code.google.com/p/google-api-go-client/books/v1
+\& code.google.com/p/goauth2/oauth
+\& code.google.com/p/sqlite
+.Ve
+
+.SH OPTIONS
+
+.TP
+.B \-f
+The \-f flag specifies an alternate format for the list,
+using the syntax of package template. The default output
+is equivalent to \-f '{{.ImportPath}}'. The struct
+being passed to the template is:
+
+.Vb 6
+\& type Package struct {
+\& Dir string // directory containing package sources
+\& ImportPath string // import path of package in dir
+\& Name string // package name
+\& Doc string // package documentation string
+\& Target string // install path
+\& Goroot bool // is this package in the Go root?
+\& Standard bool // is this package part of the standard Go library?
+\& Stale bool // would 'go install' do anything for this package?
+\& Root string // Go root or Go path dir containing this package
+\&
+\& // Source files
+\& GoFiles []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
+\& CgoFiles []string // .go sources files that import "C"
+\& CFiles []string // .c source files
+\& HFiles []string // .h source files
+\& SFiles []string // .s source files
+\& SysoFiles []string // .syso object files to add to archive
+\&
+\& // Cgo directives
+\& CgoCFLAGS []string // cgo: flags for C compiler
+\& CgoLDFLAGS []string // cgo: flags for linker
+\& CgoPkgConfig []string // cgo: pkg-config names
+\&
+\& // Dependency information
+\& Imports []string // import paths used by this package
+\& Deps []string // all (recursively) imported dependencies
+\&
+\& // Error information
+\& Incomplete bool // this package or a dependency has an error
+\& Error *PackageError // error loading package
+\& DepsErrors []*PackageError // errors loading dependencies
+\&
+\& TestGoFiles []string // _test.go files in package
+\& TestImports []string // imports from TestGoFiles
+\& XTestGoFiles []string // _test.go files outside package
+\& XTestImports []string // imports from XTestGoFiles
+\& }
+.Ve
+.TP
+.B \-json
+The \-json flag causes the package data to be printed in JSON format
+instead of using the template format.
+.TP
+.B \-e
+The \-e flag changes the handling of erroneous packages, those that
+cannot be found or are malformed. By default, the list command
+prints an error to standard error for each erroneous package and
+omits the packages from consideration during the usual printing.
+With the \-e flag, the list command never prints errors to standard
+error and instead processes the erroneous packages with the usual
+printing. Erroneous packages will have a non-empty ImportPath and
+a non-nil Error field; other information may or may not be missing
+(zeroed).
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-packages.7 b/debian/man/go-packages.7
new file mode 100644
index 000000000..ab6078d48
--- /dev/null
+++ b/debian/man/go-packages.7
@@ -0,0 +1,66 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-PACKAGES 7 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH DESCRIPTION
+Many commands apply to a set of packages:
+
+.Vb 6
+\& go action [packages]
+.Ve
+
+Usually, [packages] is a list of import paths.
+
+An import path that is a rooted path or that begins with
+a . or .. element is interpreted as a file system path and
+denotes the package in that directory.
+
+Otherwise, the import path P denotes the package found in
+the directory DIR/src/P for some DIR listed in the GOPATH
+environment variable (see 'go help gopath').
+
+If no import paths are given, the action applies to the
+package in the current directory.
+
+The special import path "all" expands to all package directories
+found in all the GOPATH trees. For example, 'go list all'
+lists all the packages on the local system.
+
+The special import path "std" is like all but expands to just the
+packages in the standard Go library.
+
+An import path is a pattern if it includes one or more "..." wildcards,
+each of which can match any string, including the empty string and
+strings containing slashes. Such a pattern expands to all package
+directories found in the GOPATH trees with names matching the
+patterns. As a special case, x/... matches x as well as x's subdirectories.
+For example, net/... expands to net and packages in its subdirectories.
+
+An import path can also name a package to be downloaded from
+a remote repository. Run 'go help remote' for details.
+
+Every package in a program must have a unique import path.
+By convention, this is arranged by starting each path with a
+unique prefix that belongs to you. For example, paths used
+internally at Google all begin with 'google', and paths
+denoting remote repositories begin with the path to the code,
+such as 'code.google.com/p/project'.
+
+As a special case, if the package list is a list of .go files from a
+single directory, the command is applied to a single synthesized
+package made up of exactly those files, ignoring any build constraints
+in those files and ignoring any other files in the directory.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-path.7 b/debian/man/go-path.7
new file mode 100644
index 000000000..13f696a5c
--- /dev/null
+++ b/debian/man/go-path.7
@@ -0,0 +1,77 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-PATH 7 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH DESCRIPTION
+The Go path is used to resolve import statements.
+It is implemented by and documented in the go/build package.
+
+The GOPATH environment variable lists places to look for Go code.
+On Unix, the value is a colon-separated string.
+On Windows, the value is a semicolon-separated string.
+On Plan 9, the value is a list.
+
+GOPATH must be set to build and install packages outside the
+standard Go tree.
+
+Each directory listed in GOPATH must have a prescribed structure:
+
+The src/ directory holds source code. The path below 'src'
+determines the import path or executable name.
+
+The pkg/ directory holds installed package objects.
+As in the Go tree, each target operating system and
+architecture pair has its own subdirectory of pkg
+(pkg/GOOS_GOARCH).
+
+If DIR is a directory listed in the GOPATH, a package with
+source in DIR/src/foo/bar can be imported as "foo/bar" and
+has its compiled form installed to "DIR/pkg/GOOS_GOARCH/foo/bar.a".
+
+The bin/ directory holds compiled commands.
+Each command is named for its source directory, but only
+the final element, not the entire path. That is, the
+command with source in DIR/src/foo/quux is installed into
+DIR/bin/quux, not DIR/bin/foo/quux. The foo/ is stripped
+so that you can add DIR/bin to your PATH to get at the
+installed commands. If the GOBIN environment variable is
+set, commands are installed to the directory it names instead
+of DIR/bin.
+
+Here's an example directory layout:
+
+.Vb 4
+\& GOPATH=/home/user/gocode
+\&
+\& /home/user/gocode/
+\& src/
+\& foo/
+\& bar/ (go code in package bar)
+\& x.go
+\& quux/ (go code in package main)
+\& y.go
+\& bin/
+\& quux (installed command)
+\& pkg/
+\& linux_amd64/
+\& foo/
+\& bar.a (installed package object)
+.Ve
+
+Go searches each directory listed in GOPATH to find source code,
+but new packages are always downloaded into the first directory
+in the list.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-remote.7 b/debian/man/go-remote.7
new file mode 100644
index 000000000..a1ca7a9fb
--- /dev/null
+++ b/debian/man/go-remote.7
@@ -0,0 +1,166 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-REMOTE 7 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH DESCRIPTION
+An import path (see \fBgo-importpath\fP(1)) denotes a package
+stored in the local file system. Certain import paths also
+describe how to obtain the source code for the package using
+a revision control system.
+
+A few common code hosting sites have special syntax:
+
+.TP
+.B BitBucket (Mercurial)
+.Vb 4
+\&import "bitbucket.org/user/project"
+\&import "bitbucket.org/user/project/sub/directory"
+.Ve
+
+.TP
+.B GitHub (Git)
+.Vb 4
+\&import "github.com/user/project"
+\&import "github.com/user/project/sub/directory"
+.Ve
+
+.TP
+.B Google Code Project Hosting (Git, Mercurial, Subversion)
+.Vb 4
+\&import "code.google.com/p/project"
+\&import "code.google.com/p/project/sub/directory"
+.Ve
+
+.Vb 4
+\&import "code.google.com/p/project.subrepository"
+\&import "code.google.com/p/project.subrepository/sub/directory"
+.Ve
+
+.TP
+.B Launchpad (Bazaar)
+
+.Vb 4
+\&import "launchpad.net/project"
+\&import "launchpad.net/project/series"
+\&import "launchpad.net/project/series/sub/directory"
+.Ve
+
+.Vb 4
+\&import "launchpad.net/~user/project/branch"
+\&import "launchpad.net/~user/project/branch/sub/directory"
+.Ve
+
+.P
+For code hosted on other servers, import paths may either be qualified
+with the version control type, or the go tool can dynamically fetch
+the import path over https/http and discover where the code resides
+from a <meta> tag in the HTML.
+
+To declare the code location, an import path of the form
+
+.Vb 6
+\& repository.vcs/path
+.Ve
+
+specifies the given repository, with or without the .vcs suffix,
+using the named version control system, and then the path inside
+that repository. The supported version control systems are:
+
+.TP
+.B Bazaar
+ .bzr
+.TP
+.B Git
+ .git
+.TP
+.B Mercurial
+ .hg
+.TP
+.B Subversion
+ .svn
+
+.P
+For example,
+
+.Vb 6
+\& import "example.org/user/foo.hg"
+.Ve
+
+denotes the root directory of the Mercurial repository at
+example.org/user/foo or foo.hg, and
+
+.Vb 6
+\& import "example.org/repo.git/foo/bar"
+.Ve
+
+denotes the foo/bar directory of the Git repository at
+example.com/repo or repo.git.
+
+When a version control system supports multiple protocols,
+each is tried in turn when downloading. For example, a Git
+download tries git://, then https://, then http://.
+
+If the import path is not a known code hosting site and also lacks a
+version control qualifier, the go tool attempts to fetch the import
+over https/http and looks for a <meta> tag in the document's HTML
+<head>.
+
+The meta tag has the form:
+
+.Vb 6
+\& <meta name="go-import" content="import-prefix vcs repo-root">
+.Ve
+
+The import-prefix is the import path corresponding to the repository
+root. It must be a prefix or an exact match of the package being
+fetched with "go get". If it's not an exact match, another http
+request is made at the prefix to verify the <meta> tags match.
+
+The vcs is one of "git", "hg", "svn", etc,
+
+The repo-root is the root of the version control system
+containing a scheme and not containing a .vcs qualifier.
+
+For example,
+
+.Vb 6
+\& import "example.org/pkg/foo"
+.Ve
+
+will result in the following request(s):
+
+.Vb 6
+\& https://example.org/pkg/foo?go-get=1 (preferred)
+\& http://example.org/pkg/foo?go-get=1 (fallback)
+.Ve
+
+If that page contains the meta tag
+
+.Vb 6
+\& <meta name="go-import" content="example.org git https://code.org/r/p/exproj">
+.Ve
+
+the go tool will verify that https://example.org/?go-get=1 contains the
+same meta tag and then git clone https://code.org/r/p/exproj into
+GOPATH/src/example.org.
+
+New downloaded packages are written to the first directory
+listed in the GOPATH environment variable (see \fBgo-path\fP(1)).
+
+The go command attempts to download the version of the
+package appropriate for the Go release being used.
+See \fBgo-install\fP(1) for more.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-run.1 b/debian/man/go-run.1
new file mode 100644
index 000000000..a43f5038e
--- /dev/null
+++ b/debian/man/go-run.1
@@ -0,0 +1,24 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-RUN 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go run
+.RB [
+.IR "build flags"
+.RB ]
+.IR gofiles...
+.RB [
+.IR arguments...
+.RB ]
+.SH DESCRIPTION
+Run compiles and runs the main package comprising the named Go source files.
+.P
+For more about build flags, see \fBgo-build\fP(1).
+.SH SEE ALSO
+.BR go-build (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-test.1 b/debian/man/go-test.1
new file mode 100644
index 000000000..3fdfa20b0
--- /dev/null
+++ b/debian/man/go-test.1
@@ -0,0 +1,75 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-TEST 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go test
+.RB [\|\-c\|]
+.RB [\|\-i\|]
+.RB [
+.IR "build flags"
+.RB ]
+.RB [
+.IR packages
+.RB ]
+.RB [
+.IR "flags for test binary"
+.RB ]
+.SH DESCRIPTION
+"Go test" automates testing the packages named by the import paths.
+It prints a summary of the test results in the format:
+
+.Vb 6
+\& ok archive/tar 0.011s
+\& FAIL archive/zip 0.022s
+\& ok compress/gzip 0.033s
+\& ...
+.Ve
+
+followed by detailed output for each failed package.
+
+"Go test" recompiles each package along with any files with names matching
+the file pattern "*_test.go". These additional files can contain test functions,
+benchmark functions, and example functions. See \fBgo-testfunc\fP(7) for more.
+
+By default, go test needs no arguments. It compiles and tests the package
+with source in the current directory, including tests, and runs the tests.
+
+The package is built in a temporary directory so it does not interfere with the
+non-test installation.
+
+.SH OPTIONS
+
+In addition to the build flags, the flags handled by 'go test' itself are:
+
+.TP
+.B \-c
+Compile the test binary to pkg.test but do not run it.
+.TP
+.B \-i
+Install packages that are dependencies of the test.
+Do not run the test.
+.P
+The test binary also accepts flags that control execution of the test; these
+flags are also accessible by 'go test'. See \fBgo-testflag\fP(7) for details.
+.P
+For more about build flags, see \fBgo-build\fP(1).
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.SH SEE ALSO
+.BR go-build (1),
+.BR go-vet (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-testflag.7 b/debian/man/go-testflag.7
new file mode 100644
index 000000000..f2b9f4903
--- /dev/null
+++ b/debian/man/go-testflag.7
@@ -0,0 +1,87 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-TESTFLAG 7 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH DESCRIPTION
+The 'go test' command takes both flags that apply to 'go test' itself
+and flags that apply to the resulting test binary.
+
+The test binary, called pkg.test, where pkg is the name of the
+directory containing the package sources, has its own flags:
+
+.TP
+.B \-test.v
+Verbose output: log all tests as they are run.
+.TP
+.B \-test.run pattern
+Run only those tests and examples matching the regular expression.
+.TP
+.B \-test.bench pattern
+Run benchmarks matching the regular expression.
+By default, no benchmarks run.
+.TP
+.B \-test.cpuprofile cpu.out
+Write a CPU profile to the specified file before exiting.
+.TP
+.B \-test.memprofile mem.out
+Write a memory profile to the specified file when all tests
+are complete.
+.TP
+.B \-test.memprofilerate n
+Enable more precise (and expensive) memory profiles by setting
+runtime.MemProfileRate. See 'godoc runtime MemProfileRate'.
+To profile all memory allocations, use \-test.memprofilerate=1
+and set the environment variable GOGC=off to disable the
+garbage collector, provided the test can run in the available
+memory without garbage collection.
+.TP
+.B \-test.parallel n
+Allow parallel execution of test functions that call t.Parallel.
+The value of this flag is the maximum number of tests to run
+simultaneously; by default, it is set to the value of GOMAXPROCS.
+.TP
+.B \-test.short
+Tell long-running tests to shorten their run time.
+It is off by default but set during all.bash so that installing
+the Go tree can run a sanity check but not spend time running
+exhaustive tests.
+.TP
+.B \-test.timeout t
+If a test runs longer than t, panic.
+.TP
+.B \-test.benchtime n
+Run enough iterations of each benchmark to take n seconds.
+The default is 1 second.
+.TP
+.B \-test.cpu 1,2,4
+Specify a list of GOMAXPROCS values for which the tests or
+benchmarks should be executed. The default is the current value
+of GOMAXPROCS.
+.P
+For convenience, each of these \-test.X flags of the test binary is
+also available as the flag \-X in 'go test' itself. Flags not listed
+here are passed through unaltered. For instance, the command
+
+.Vb 6
+\& go test \-x \-v \-cpuprofile=prof.out \-dir=testdata \-update
+.Ve
+
+will compile the test binary and then run it as
+
+.Vb 6
+\& pkg.test \-test.v \-test.cpuprofile=prof.out \-dir=testdata \-update
+.Ve
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-testfunc.7 b/debian/man/go-testfunc.7
new file mode 100644
index 000000000..839fe1561
--- /dev/null
+++ b/debian/man/go-testfunc.7
@@ -0,0 +1,63 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GO-TESTFUNC 7 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH DESCRIPTION
+The 'go test' command expects to find test, benchmark, and example functions
+in the "*_test.go" files corresponding to the package under test.
+
+A test function is one named TestXXX (where XXX is any alphanumeric string
+not starting with a lower case letter) and should have the signature,
+
+.Vb 6
+\& func TestXXX(t *testing.T) { ... }
+.Ve
+
+A benchmark function is one named BenchmarkXXX and should have the signature,
+
+.Vb 6
+\& func BenchmarkXXX(b *testing.B) { ... }
+.Ve
+
+An example function is similar to a test function but, instead of using *testing.T
+to report success or failure, prints output to os.Stdout and os.Stderr.
+That output is compared against the function's "Output:" comment, which
+must be the last comment in the function body (see example below). An
+example with no such comment, or with no text after "Output:" is compiled
+but not executed.
+
+Godoc displays the body of ExampleXXX to demonstrate the use
+of the function, constant, or variable XXX. An example of a method M with
+receiver type T or *T is named ExampleT_M. There may be multiple examples
+for a given function, constant, or variable, distinguished by a trailing _xxx,
+where xxx is a suffix not beginning with an upper case letter.
+
+Here is an example of an example:
+
+.Vb 6
+\& func ExamplePrintln() {
+\& Println("The output of\\nthis example.")
+\& // Output: The output of
+\& // this example.
+\& }
+.Ve
+
+The entire test file is presented as the example when it contains a single
+example function, at least one other function, type, variable, or constant
+declaration, and no test or benchmark functions.
+
+See the documentation of the testing package for more information.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-tool.1 b/debian/man/go-tool.1
new file mode 100644
index 000000000..ebf8c26e0
--- /dev/null
+++ b/debian/man/go-tool.1
@@ -0,0 +1,26 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-TOOL 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go tool
+.RB [\|\-n\|]
+.IR command
+.RB [
+.IR args...
+.RB ]
+.SH DESCRIPTION
+Tool runs the go tool command identified by the arguments.
+With no arguments it prints the list of known tools.
+.SH OPTIONS
+.TP
+.B \-n
+The \-n flag causes tool to print the command that would be
+executed but not execute it.
+.P
+For more about each tool command, see 'go tool command \-h'.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-version.1 b/debian/man/go-version.1
new file mode 100644
index 000000000..2c1ebe0a4
--- /dev/null
+++ b/debian/man/go-version.1
@@ -0,0 +1,13 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-VERSION 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go version
+.SH DESCRIPTION
+Version prints the Go version, as reported by runtime.Version.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go-vet.1 b/debian/man/go-vet.1
new file mode 100644
index 000000000..a165fd5e6
--- /dev/null
+++ b/debian/man/go-vet.1
@@ -0,0 +1,35 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO-VET 1 "2012-06-15"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go vet
+.RB [\|\-n\|]
+.RB [\|\-x\|]
+.RB [
+.IR packages
+.RB ]
+.SH DESCRIPTION
+Vet runs the Go vet command on the packages named by the import paths.
+.P
+For more about vet, see 'godoc vet'.
+.P
+For more about specifying packages, see \fBgo-packages\fP(7).
+.P
+To run the vet tool with specific options, run 'go tool vet'.
+.SH OPTIONS
+.TP
+.B \-n
+The \-n flag causes tool to print the command that would be
+executed but not execute it.
+.TP
+.B \-x
+The \-x flag causes clean to print remove commands as it executes them.
+.SH SEE ALSO
+.BR go-fmt (1),
+.BR go-fix (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/go.1 b/debian/man/go.1
new file mode 100644
index 000000000..27ae4df98
--- /dev/null
+++ b/debian/man/go.1
@@ -0,0 +1,66 @@
+.\" Hey, EMACS: -*- nroff -*-
+.TH GO 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+go \- tool for managing Go source code
+.SH SYNOPSIS
+.B go
+.RI command
+.RI [ arguments ]
+.SH DESCRIPTION
+The Go distribution includes a command, named \fBgo\fP, that automates the
+downloading, building, installation, and testing of Go packages and commands.
+.SH COMMANDS
+Each command is documented in its own manpage. For example, the \fBbuild\fP
+command is documented in \fBgo-build\fP(1). The commands are:
+.TP
+.B build
+compile packages and dependencies
+.TP
+.B clean
+remove object files
+.TP
+.B doc
+run godoc on package sources
+.TP
+.B env
+print Go environment information
+.TP
+.B fix
+run go tool fix on packages
+.TP
+.B fmt
+run gofmt on package sources
+.TP
+.B get
+download and install packages and dependencies
+.TP
+.B install
+compile and install packages and dependencies
+.TP
+.B list
+list packages
+.TP
+.B run
+compile and run Go program
+.TP
+.B test
+test packages
+.TP
+.B tool
+run specified go tool
+.TP
+.B version
+print Go version
+.TP
+.B vet
+run go tool vet on packages
+.SH EXAMPLES
+TODO
+.SH SEE ALSO
+.BR go-build (1),
+.BR go-clean (1).
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/godoc.1 b/debian/man/godoc.1
new file mode 100644
index 000000000..1894445ac
--- /dev/null
+++ b/debian/man/godoc.1
@@ -0,0 +1,209 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GODOC 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+godoc \- extracts and generates documentation for Go programs
+.SH SYNOPSIS
+.B godoc
+.RI [ flag ]
+.RI command
+.RI [
+.IR "name ..."
+.RI ]
+.SH DESCRIPTION
+Godoc extracts and generates documentation for Go programs.
+
+It has two modes.
+
+Without the \-http flag, it runs in command-line mode and prints plain
+text documentation to standard output and exits. If both a library
+package and a command with the same name exists, using the prefix cmd/
+will force documentation on the command rather than the library package.
+If the \-src flag is specified, godoc prints the exported interface of a
+package in Go source form, or the implementation of a specific exported
+language entity:
+
+.Vb 6
+\& godoc fmt # documentation for package fmt
+\& godoc fmt Printf # documentation for fmt.Printf
+\& godoc cmd/go # force documentation for the go command
+\& godoc \-src fmt # fmt package interface in Go source form
+\& godoc \-src fmt Printf # implementation of fmt.Printf
+.Ve
+
+In command-line mode, the \-q flag enables search queries against a godoc
+running as a webserver. If no explicit server address is specified with
+the \-server flag, godoc first tries localhost:6060 and then
+http://golang.org.
+
+.Vb 6
+\& godoc \-q Reader
+\& godoc \-q math.Sin
+\& godoc \-server=:6060 \-q sin
+.Ve
+
+With the \-http flag, it runs as a web server and presents the
+documentation as a web page.
+
+.Vb 6
+\& godoc \-http=:6060
+.Ve
+
+By default, godoc looks at the packages it finds via $GOROOT and $GOPATH
+(if set). Additional directories may be specified via the \-path flag
+which accepts a list of colon-separated paths; unrooted paths are
+relative to the current working directory. Each path is considered as an
+additional root for packages in order of appearance. The last (absolute)
+path element is the prefix for the package path. For instance, given the
+flag value:
+
+.Vb 6
+\& path=".:/home/bar:/public"
+.Ve
+
+for a godoc started in /home/user/godoc, absolute paths are mapped to
+package paths as follows:
+
+.Vb 6
+\& /home/user/godoc/x -> godoc/x
+\& /home/bar/x -> bar/x
+\& /public/x -> public/x
+.Ve
+
+When godoc runs as a web server and \-index is set, a search index is
+maintained. The index is created at startup.
+
+The index contains both identifier and full text search information
+(searchable via regular expressions). The maximum number of full text
+search results shown can be set with the \-maxresults flag; if set to 0,
+no full text results are shown, and only an identifier index but no full
+text search index is created.
+
+The presentation mode of web pages served by godoc can be controlled
+with the "m" URL parameter; it accepts a comma-separated list of flag
+names as value:
+
+.TP
+.B all
+show documentation for all declarations, not just the exported ones
+.TP
+.B methods
+show all embedded methods, not just those of unexported anonymous fields
+.TP
+.B src
+show the original source code rather then the extracted documentation
+.TP
+.B text
+present the page in textual (command-line) form rather than HTML
+.TP
+.B flat
+present flat (not indented) directory listings using full paths
+.P
+For instance, http://golang.org/pkg/math/big/?m=all,text shows the
+documentation for all (not just the exported) declarations of package
+big, in textual form (as it would appear when using godoc from the
+command line: "godoc \-src math/big .*").
+
+By default, godoc serves files from the file system of the underlying
+OS. Instead, a .zip file may be provided via the \-zip flag, which
+contains the file system to serve. The file paths stored in the .zip
+file must use slash ('/') as path separator; and they must be unrooted.
+$GOROOT (or \-goroot) must be set to the .zip file directory path
+containing the Go root directory. For instance, for a .zip file created
+by the command:
+
+.Vb 6
+\& zip go.zip $HOME/go
+.Ve
+
+one may run godoc as follows:
+
+.Vb 6
+\& godoc \-http=:6060 \-zip=go.zip \-goroot=$HOME/go
+.Ve
+
+See "Godoc: documenting Go code" for how to write good comments for
+godoc: http://golang.org/doc/articles/godoc_documenting_go_code.html
+
+.SH OPTIONS
+
+.TP
+.B \-v
+verbose mode
+.TP
+.B \-q
+arguments are considered search queries: a legal query is a
+single identifier (such as ToLower) or a qualified identifier
+(such as math.Sin).
+.TP
+.B \-src
+print (exported) source in command-line mode
+.TP
+.B \-tabwidth=4
+width of tabs in units of spaces
+.TP
+.B \-timestamps=true
+show timestamps with directory listings
+.TP
+.B \-index
+enable identifier and full text search index
+(no search box is shown if \-index is not set)
+.TP
+.B \-index_files=""
+glob pattern specifying index files; if not empty,
+the index is read from these files in sorted order
+.TP
+.B \-index_throttle=0.75
+index throttle value; a value of 0 means no time is allocated
+to the indexer (the indexer will never finish), a value of 1.0
+means that index creation is running at full throttle (other
+goroutines may get no time while the index is built)
+.TP
+.B \-write_index=false
+write index to a file; the file name must be specified with
+\-index_files
+.TP
+.B \-maxresults=10000
+maximum number of full text search results shown
+(no full text index is built if maxresults <= 0)
+.TP
+.B \-path=""
+additional package directories (colon-separated)
+.TP
+.B \-html
+print HTML in command-line mode
+.TP
+.B \-goroot=$GOROOT
+Go root directory
+.TP
+.B \-http=addr
+HTTP service address (e.g., '127.0.0.1:6060' or just ':6060')
+.TP
+.B \-server=addr
+webserver address for command line searches
+.TP
+.B \-templates=""
+directory containing alternate template files; if set,
+the directory may provide alternative template files
+for the files in $GOROOT/lib/godoc
+.TP
+.B \-url=path
+print to standard output the data that would be served by
+an HTTP request for path
+.TP
+.B \-zip=""
+zip file providing the file system to serve; disabled if empty
+
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
diff --git a/debian/man/gofmt.1 b/debian/man/gofmt.1
new file mode 100644
index 000000000..969a245e1
--- /dev/null
+++ b/debian/man/gofmt.1
@@ -0,0 +1,108 @@
+.\" Hey, EMACS: -*- nroff -*-
+.de Vb \" Begin verbatim text
+.ft CW
+.nf
+.ne \\$1
+..
+.de Ve \" End verbatim text
+.ft R
+.fi
+..
+.TH GOFMT 1 "2012-05-13"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+gofmt \- formats Go programs
+.SH SYNOPSIS
+.B gofmt
+.RI [ flags ]
+.RI [
+.IR "path ..."
+.RI ]
+.SH DESCRIPTION
+Without an explicit path, it processes the standard input. Given a file,
+it operates on that file; given a directory, it operates on all .go
+files in that directory, recursively. (Files starting with a period are
+ignored.) By default, gofmt prints the reformatted sources to standard
+output.
+
+.SH OPTIONS
+.TP
+.B \-d
+Do not print reformatted sources to standard output.
+If a file's formatting is different than gofmt's, print diffs
+to standard output.
+.TP
+.B \-e
+Print all (including spurious) errors.
+.TP
+.B \-l
+Do not print reformatted sources to standard output.
+If a file's formatting is different from gofmt's, print its name
+to standard output.
+.TP
+.B \-r rule
+Apply the rewrite rule to the source before reformatting.
+.TP
+.B \-s
+Try to simplify code (after applying the rewrite rule, if any).
+.TP
+.B \-w
+Do not print reformatted sources to standard output.
+If a file's formatting is different from gofmt's, overwrite it
+with gofmt's version.
+.P
+Formatting control flags:
+.TP
+.B \-comments=true
+Print comments; if false, all comments are elided from the output.
+.TP
+.B \-tabs=true
+Indent with tabs; if false, spaces are used instead.
+.TP
+.B \-tabwidth=8
+Tab width in spaces.
+.P
+
+The rewrite rule specified with the \-r flag must be a string of the
+form:
+
+.Vb 6
+\& pattern -> replacement
+.Ve
+
+Both pattern and replacement must be valid Go expressions. In the
+pattern, single-character lowercase identifiers serve as wildcards
+matching arbitrary sub-expressions; those expressions will be
+substituted for the same identifiers in the replacement.
+
+When gofmt reads from standard input, it accepts either a full Go
+program or a program fragment. A program fragment must be a
+syntactically valid declaration list, statement list, or expression.
+When formatting such a fragment, gofmt preserves leading indentation as
+well as leading and trailing spaces, so that individual sections of a Go
+program can be formatted by piping them through gofmt.
+.SH EXAMPLES
+To check files for unnecessary parentheses:
+
+.Vb 6
+\& gofmt \-r '(a) \-> a' \-l *.go
+.Ve
+
+To remove the parentheses:
+
+.Vb 6
+\& gofmt \-r '(a) \-> a' \-w *.go
+.Ve
+
+To convert the package tree from explicit slice upper bounds to implicit
+ones:
+
+.Vb 6
+\& gofmt \-r 'α[β:len(α)] \-> α[β:]' \-w $GOROOT/src/pkg
+.Ve
+.SH BUGS
+The implementation of \-r is a bit slow.
+.SH AUTHOR
+.PP
+This manual page was written by Michael Stapelberg <stapelberg@debian.org>,
+for the Debian project (and may be used by others).
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..b8571ab4a
--- /dev/null
+++ b/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch
@@ -0,0 +1,25 @@
+# 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
+@@ -33,6 +33,15 @@ func socket(net string, f, t, p int, la,
+ return nil, err
+ }
+
++ // Allow IPv4 on IPv6 sockets.
++ if f == syscall.AF_INET6 {
++ err = syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6, syscall.IPV6_V6ONLY, 0)
++ if err != nil {
++ closesocket(s)
++ return nil, err
++ }
++ }
++
+ var bla syscall.Sockaddr
+ if la != nil {
+ bla, err = listenerSockaddr(s, f, la, toAddr)
diff --git a/debian/patches/003-set_correct_runpath.patch b/debian/patches/003-set_correct_runpath.patch
new file mode 100644
index 000000000..47219c4c6
--- /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) $(GCFLAGS) $(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..b0866a59a
--- /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
+@@ -38,7 +38,7 @@ var (
+ schemeRe = regexp.MustCompile(`^[a-z]+://`)
+
+ 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)
+ update = flag.Bool("u", false, "update already-downloaded packages")
+ doInstall = flag.Bool("install", true, "build and install")
+ clean = flag.Bool("clean", false, "clean the package directory before installing")
+--- a/src/cmd/goinstall/doc.go
++++ b/src/cmd/goinstall/doc.go
+@@ -15,7 +15,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
+ -install=true build and install the package and its dependencies
+ -nuke=false remove the target object and clean before installing
+ -u=false update already-downloaded packages
diff --git a/debian/patches/006-fix_kfreebsd_build.patch b/debian/patches/006-fix_kfreebsd_build.patch
new file mode 100644
index 000000000..981aa0613
--- /dev/null
+++ b/debian/patches/006-fix_kfreebsd_build.patch
@@ -0,0 +1,79 @@
+--- a/src/cmd/cov/Makefile
++++ b/src/cmd/cov/Makefile
+@@ -20,11 +20,7 @@ HFILES=\
+ 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
+@@ -16,11 +16,7 @@ OFILES=\
+ 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
+@@ -15,7 +15,7 @@ GCC=gcc
+
+ uname=$(uname)
+
+-includes_Darwin='
++includes_darwin='
+ #define _DARWIN_C_SOURCE
+ #define KERNEL
+ #define _DARWIN_USE_64_BIT_INODE
+@@ -37,7 +37,7 @@ includes_Darwin='
+ #include <termios.h>
+ '
+
+-includes_FreeBSD='
++includes_freebsd='
+ #include <sys/types.h>
+ #include <sys/event.h>
+ #include <sys/socket.h>
+@@ -55,7 +55,7 @@ includes_FreeBSD='
+ #include <netinet/ip_mroute.h>
+ '
+
+-includes_Linux='
++includes_linux='
+ #define _LARGEFILE_SOURCE
+ #define _LARGEFILE64_SOURCE
+ #define _FILE_OFFSET_BITS 64
+@@ -151,7 +151,7 @@ ccflags="$@"
+ echo package syscall
+ echo
+ echo '/*'
+- indirect="includes_$(uname)"
++ indirect="includes_$(GOOS)"
+ echo "${!indirect} $includes"
+ echo '*/'
+ echo 'import "C"'
+--- a/src/pkg/net/Makefile
++++ b/src/pkg/net/Makefile
+@@ -82,7 +82,7 @@ GOFILES_freebsd=\
+
+ ifeq ($(CGO_ENABLED),1)
+ CGOFILES_freebsd=\
+- cgo_bsd.go\
++ cgo_linux.go\
+ cgo_unix.go
+ else
+ GOFILES_freebsd+=cgo_stub.go
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..04bf8b820
--- /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
+@@ -38,7 +38,7 @@
+ #include "../ld/pe.h"
+
+ char linuxdynld[] = "/lib/ld-linux.so.2";
+-char freebsddynld[] = "/usr/libexec/ld-elf.so.1";
++char freebsddynld[] = "/lib/ld.so.1";
+ char openbsddynld[] = "/usr/libexec/ld.so";
+ char netbsddynld[] = "/usr/libexec/ld.elf_so";
+
+--- a/src/cmd/6l/asm.c
++++ b/src/cmd/6l/asm.c
+@@ -40,7 +40,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 openbsddynld[] = "/usr/libexec/ld.so";
+ char netbsddynld[] = "/libexec/ld.elf_so";
+
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..026b41d0a
--- /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
+@@ -121,6 +121,10 @@ func main() {
+ }
+ readPackageList()
+
++ 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/010-goinstall_check_conf.patch b/debian/patches/010-goinstall_check_conf.patch
new file mode 100644
index 000000000..64657a484
--- /dev/null
+++ b/debian/patches/010-goinstall_check_conf.patch
@@ -0,0 +1,28 @@
+--- a/src/cmd/goinstall/main.go
++++ b/src/cmd/goinstall/main.go
+@@ -38,7 +38,7 @@ var (
+ schemeRe = regexp.MustCompile(`^[a-z]+://`)
+
+ allpkg = flag.Bool("a", false, "install all previously installed packages")
+- reportToDashboard = flag.Bool("dashboard", true, "report public packages at "+dashboardURL)
++ reportToDashboard *bool
+ update = flag.Bool("u", false, "update already-downloaded packages")
+ doGofix = flag.Bool("fix", false, "gofix each package before building it")
+ doInstall = flag.Bool("install", true, "build and install")
+@@ -48,6 +48,16 @@ var (
+ verbose = flag.Bool("v", false, "verbose")
+ )
+
++func init() {
++ d := true
++ b, err := ioutil.ReadFile("/etc/golang/goinstall.conf")
++ if err == nil {
++ re := regexp.MustCompile(`(^|\n)DASHBOARD="[nN][oO]"($|\n)`)
++ d = !re.Match(b)
++ }
++ reportToDashboard = flag.Bool("dashboard", d, "report public packages at "+dashboardURL)
++}
++
+ type status int // status for visited map
+ const (
+ unvisited status = iota
diff --git a/debian/patches/011-__FreeBSD_kernel__.patch b/debian/patches/011-__FreeBSD_kernel__.patch
new file mode 100644
index 000000000..45be34f12
--- /dev/null
+++ b/debian/patches/011-__FreeBSD_kernel__.patch
@@ -0,0 +1,33 @@
+--- a/include/u.h
++++ b/include/u.h
+@@ -45,7 +45,7 @@ extern "C" {
+ # define _XOPEN_SOURCE 1000
+ # define _XOPEN_SOURCE_EXTENDED 1
+ #endif
+-#if defined(__FreeBSD__)
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+ # include <sys/cdefs.h>
+ /* for strtoll */
+ # undef __ISO_C_VISIBLE
+--- a/src/cmd/dist/unix.c
++++ b/src/cmd/dist/unix.c
+@@ -653,7 +653,7 @@ main(int argc, char **argv)
+ gohostarch = "amd64";
+ #elif defined(__linux__)
+ gohostos = "linux";
+-#elif defined(__FreeBSD__)
++#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+ gohostos = "freebsd";
+ #elif defined(__OpenBSD__)
+ gohostos = "openbsd";
+--- a/src/lib9/dirfwstat.c
++++ b/src/lib9/dirfwstat.c
+@@ -29,7 +29,7 @@ THE SOFTWARE.
+ #include <sys/time.h>
+ #include <sys/stat.h>
+
+-#if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__)
++#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(__linux__)
+ /* do nothing -- futimes exists and is fine */
+
+ #elif defined(__SunOS5_9__)
diff --git a/debian/patches/012-sigfillset_kFreeBSD.patch b/debian/patches/012-sigfillset_kFreeBSD.patch
new file mode 100644
index 000000000..40f01fb42
--- /dev/null
+++ b/debian/patches/012-sigfillset_kFreeBSD.patch
@@ -0,0 +1,22 @@
+--- a/src/pkg/runtime/cgo/gcc_freebsd_386.c
++++ b/src/pkg/runtime/cgo/gcc_freebsd_386.c
+@@ -33,7 +33,7 @@ libcgo_sys_thread_start(ThreadStart *ts)
+ size_t size;
+ int err;
+
+- SIGFILLSET(ign);
++ sigfillset(&ign);
+ sigprocmask(SIG_SETMASK, &ign, &oset);
+
+ pthread_attr_init(&attr);
+--- a/src/pkg/runtime/cgo/gcc_freebsd_amd64.c
++++ b/src/pkg/runtime/cgo/gcc_freebsd_amd64.c
+@@ -33,7 +33,7 @@ libcgo_sys_thread_start(ThreadStart *ts)
+ size_t size;
+ int err;
+
+- SIGFILLSET(ign);
++ sigfillset(&ign);
+ sigprocmask(SIG_SETMASK, &ign, &oset);
+
+ pthread_attr_init(&attr);
diff --git a/debian/patches/013-kFreeBSD-AI_MASK.patch b/debian/patches/013-kFreeBSD-AI_MASK.patch
new file mode 100644
index 000000000..e67a34058
--- /dev/null
+++ b/debian/patches/013-kFreeBSD-AI_MASK.patch
@@ -0,0 +1,9 @@
+--- a/src/pkg/net/cgo_bsd.go
++++ b/src/pkg/net/cgo_bsd.go
+@@ -12,5 +12,5 @@ package net
+ import "C"
+
+ func cgoAddrInfoMask() C.int {
+- return C.AI_MASK
++ return C.AI_CANONNAME | C.AI_V4MAPPED | C.AI_ALL
+ }
diff --git a/debian/patches/014-dont_fail_test_with_missing_homedir.patch b/debian/patches/014-dont_fail_test_with_missing_homedir.patch
new file mode 100644
index 000000000..ac81dd199
--- /dev/null
+++ b/debian/patches/014-dont_fail_test_with_missing_homedir.patch
@@ -0,0 +1,26 @@
+--- a/src/pkg/os/user/user_test.go
++++ b/src/pkg/os/user/user_test.go
+@@ -5,7 +5,6 @@
+ package user
+
+ import (
+- "os"
+ "runtime"
+ "testing"
+ )
+@@ -34,12 +33,11 @@ func TestCurrent(t *testing.T) {
+ if err != nil {
+ t.Fatalf("Current: %v", err)
+ }
+- fi, err := os.Stat(u.HomeDir)
+- if err != nil || !fi.IsDir() {
+- t.Errorf("expected a valid HomeDir; stat(%q): err=%v", u.HomeDir, err)
++ if u.HomeDir == "" {
++ t.Errorf("didn't get a HomeDir")
+ }
+ if u.Username == "" {
+- t.Fatalf("didn't get a username")
++ t.Errorf("didn't get a username")
+ }
+ }
+
diff --git a/debian/patches/15-net-http-connection-close.patch b/debian/patches/15-net-http-connection-close.patch
new file mode 100644
index 000000000..847a9f9bc
--- /dev/null
+++ b/debian/patches/15-net-http-connection-close.patch
@@ -0,0 +1,164 @@
+Description: net/http: non-keepalive connections close successfully
+ Connections did not close if Request.Close or Response.Close was true. This
+ meant that if the user wanted the connection to close, or if the server
+ requested it via "Connection: close", the connection would not be closed.
+Author: James Gray <james@james4k.com>
+Bug-Debian: http://bugs.debian.org/683421
+Origin: upstream, http://code.google.com/p/go/source/detail?r=820ffde8c396
+Forwarded: not-needed
+Last-Update: 2012-08-01
+
+---
+
+--- golang-1.0.2.orig/src/pkg/net/http/transport.go
++++ golang-1.0.2/src/pkg/net/http/transport.go
+@@ -603,6 +603,10 @@ func (pc *persistConn) readLoop() {
+ // before we race and peek on the underlying bufio reader.
+ if waitForBodyRead != nil {
+ <-waitForBodyRead
++ } else if !alive {
++ // If waitForBodyRead is nil, and we're not alive, we
++ // must close the connection before we leave the loop.
++ pc.close()
+ }
+ }
+ }
+--- golang-1.0.2.orig/src/pkg/net/http/transport_test.go
++++ golang-1.0.2/src/pkg/net/http/transport_test.go
+@@ -13,6 +13,7 @@ import (
+ "fmt"
+ "io"
+ "io/ioutil"
++ "net"
+ . "net/http"
+ "net/http/httptest"
+ "net/url"
+@@ -20,6 +21,7 @@ import (
+ "runtime"
+ "strconv"
+ "strings"
++ "sync"
+ "testing"
+ "time"
+ )
+@@ -35,6 +37,64 @@ var hostPortHandler = HandlerFunc(func(w
+ w.Write([]byte(r.RemoteAddr))
+ })
+
++type testCloseConn struct {
++ net.Conn
++ set *testConnSet
++}
++
++func (conn *testCloseConn) Close() error {
++ conn.set.remove(conn)
++ return conn.Conn.Close()
++}
++
++type testConnSet struct {
++ set map[net.Conn]bool
++ mutex sync.Mutex
++}
++
++func (tcs *testConnSet) insert(c net.Conn) {
++ tcs.mutex.Lock()
++ defer tcs.mutex.Unlock()
++ tcs.set[c] = true
++}
++
++func (tcs *testConnSet) remove(c net.Conn) {
++ tcs.mutex.Lock()
++ defer tcs.mutex.Unlock()
++ // just change to false, so we have a full set of opened connections
++ tcs.set[c] = false
++}
++
++// some tests use this to manage raw tcp connections for later inspection
++func makeTestDial() (*testConnSet, func(n, addr string) (net.Conn, error)) {
++ connSet := &testConnSet{
++ set: make(map[net.Conn]bool),
++ }
++ dial := func(n, addr string) (net.Conn, error) {
++ c, err := net.Dial(n, addr)
++ if err != nil {
++ return nil, err
++ }
++ tc := &testCloseConn{c, connSet}
++ connSet.insert(tc)
++ return tc, nil
++ }
++ return connSet, dial
++}
++
++func (tcs *testConnSet) countClosed() (closed, total int) {
++ tcs.mutex.Lock()
++ defer tcs.mutex.Unlock()
++
++ total = len(tcs.set)
++ for _, open := range tcs.set {
++ if !open {
++ closed += 1
++ }
++ }
++ return
++}
++
+ // Two subsequent requests and verify their response is the same.
+ // The response from the server is our own IP:port
+ func TestTransportKeepAlives(t *testing.T) {
+@@ -72,8 +132,12 @@ func TestTransportConnectionCloseOnRespo
+ ts := httptest.NewServer(hostPortHandler)
+ defer ts.Close()
+
++ connSet, testDial := makeTestDial()
++
+ for _, connectionClose := range []bool{false, true} {
+- tr := &Transport{}
++ tr := &Transport{
++ Dial: testDial,
++ }
+ c := &Client{Transport: tr}
+
+ fetch := func(n int) string {
+@@ -107,6 +171,13 @@ func TestTransportConnectionCloseOnRespo
+ t.Errorf("error in connectionClose=%v. unexpected bodiesDiffer=%v; body1=%q; body2=%q",
+ connectionClose, bodiesDiffer, body1, body2)
+ }
++
++ tr.CloseIdleConnections()
++ }
++
++ closed, total := connSet.countClosed()
++ if closed < total {
++ t.Errorf("%d out of %d tcp connections were not closed", total-closed, total)
+ }
+ }
+
+@@ -114,8 +185,12 @@ func TestTransportConnectionCloseOnReque
+ ts := httptest.NewServer(hostPortHandler)
+ defer ts.Close()
+
++ connSet, testDial := makeTestDial()
++
+ for _, connectionClose := range []bool{false, true} {
+- tr := &Transport{}
++ tr := &Transport{
++ Dial: testDial,
++ }
+ c := &Client{Transport: tr}
+
+ fetch := func(n int) string {
+@@ -149,6 +224,13 @@ func TestTransportConnectionCloseOnReque
+ t.Errorf("error in connectionClose=%v. unexpected bodiesDiffer=%v; body1=%q; body2=%q",
+ connectionClose, bodiesDiffer, body1, body2)
+ }
++
++ tr.CloseIdleConnections()
++ }
++
++ closed, total := connSet.countClosed()
++ if closed < total {
++ t.Errorf("%d out of %d tcp connections were not closed", total-closed, total)
+ }
+ }
+
diff --git a/debian/patches/godoc-symlinks.diff b/debian/patches/godoc-symlinks.diff
new file mode 100644
index 000000000..26539530a
--- /dev/null
+++ b/debian/patches/godoc-symlinks.diff
@@ -0,0 +1,27 @@
+--- a/src/cmd/godoc/filesystem.go
++++ b/src/cmd/godoc/filesystem.go
+@@ -121,7 +121,22 @@
+ }
+
+ func (root osFS) ReadDir(path string) ([]os.FileInfo, error) {
+- return ioutil.ReadDir(root.resolve(path)) // is sorted
++ dirName := root.resolve(path)
++ fis, err := ioutil.ReadDir(dirName) // is sorted
++ if err != nil {
++ return nil, err
++ }
++ // Replace symlinks with what they are pointing to
++ for i, fi := range fis {
++ if fi.Mode()&os.ModeSymlink != 0 {
++ fi, err = os.Stat(filepath.Join(dirName, fi.Name()))
++ if err != nil {
++ return nil, err
++ }
++ }
++ fis[i] = fi
++ }
++ return fis, nil
+ }
+
+ // hasPathPrefix returns true if x == y or x == y + "/" + more
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 000000000..b6337f8f8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,13 @@
+# commented out because i don’t precisely know what it’s for:
+# 001-allow_IPv4_on_IPv6_sockets.patch
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=574371#46
+#003-set_correct_runpath.patch
+#006-fix_kfreebsd_build.patch
+#007-use_native_dynamic_linker_on_kfreebsd.patch
+#009-goinstall_can_install_to_GOPATH.patch
+#010-goinstall_check_conf.patch
+#011-__FreeBSD_kernel__.patch
+#012-sigfillset_kFreeBSD.patch
+#013-kFreeBSD-AI_MASK.patch
+godoc-symlinks.diff
+version.patch
diff --git a/debian/patches/version.patch b/debian/patches/version.patch
new file mode 100644
index 000000000..2b1dc96cd
--- /dev/null
+++ b/debian/patches/version.patch
@@ -0,0 +1,14 @@
+Description: adds a VERSION since this is a hg snapshot
+Author: Michael Stapelberg <stapelberg@debian.org>
+
+---
+
+Forwarded: not-needed
+Last-Update: 2013-04-05
+
+Index: golang/VERSION
+===================================================================
+--- /dev/null 1970-01-01 00:00:00.000000000 +0000
++++ golang/VERSION 2013-03-04 21:33:29.611697403 +0100
+@@ -0,0 +1 @@
++1.1~hg20130405
diff --git a/debian/po/POTFILES.in b/debian/po/POTFILES.in
new file mode 100644
index 000000000..3e70bb3d9
--- /dev/null
+++ b/debian/po/POTFILES.in
@@ -0,0 +1 @@
+[type: gettext/rfc822deb] golang-go.templates
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 000000000..dc2311755
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,56 @@
+# Czech PO debconf template translation of golang.
+# Copyright (C) 2012 Michal Simunek <michal.simunek@gmail.com>
+# This file is distributed under the same license as the golang package.
+# Michal Simunek <michal.simunek@gmail.com>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 1:60.3-3\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-23 17:01+0100\n"
+"Last-Translator: Michal Simunek <michal.simunek@gmail.com>\n"
+"Language-Team: Czech <debian-l10n-czech@lists.debian.org>\n"
+"Language: cs\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Nahlašovat instalaci veřejných balíčků do Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Program goinstall nahlašuje úspěšné instalace veřejných Go balíčků do "
+"godashboard.appspot.com, který zvýší počet jeho instalací a čas poslední "
+"instalace. Tento mechanizmus vytváří přehled o balíčcích v Go Dashboard, "
+"umožňuje tak Go programátorům, aby se dozvěděly o oblíbených balíčcích, "
+"kterým stojí za to se věnovat."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Rozhodnete-li se k účasti, každá úspěšná instalace se nahlásí do Go "
+"Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr "Tuto volbu lze změnit spuštěním \"dpkg-reconfigure golang-go\"."
diff --git a/debian/po/da.po b/debian/po/da.po
new file mode 100644
index 000000000..f6d1e3cd3
--- /dev/null
+++ b/debian/po/da.po
@@ -0,0 +1,56 @@
+# Danish translation golang.
+# Copyright (C) 2012 golang & nedenstående oversættere.
+# This file is distributed under the same license as the golang package.
+# Joe Hansen (joedalton2@yahoo.dk), 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-31 12:52+0000\n"
+"Last-Translator: Joe Hansen <joedalton2@yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish@lists.debian.org>\n"
+"Language: da\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Rapporter installation af offentlige pakker til Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Programmet goinstall rapporterer installationen af de offentlige Go-pakker "
+"til godashboard.appspot.com, som trinvis øger en optælling forbundet med "
+"pakken og tidspunktet for dets seneste installation. Denne mekanisme styrer "
+"pakkelisten for Go Dashboard, så at Go-programmører kan få viden om populære "
+"pakker, som kan være interessante at kigge på."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Hvis du vælger at deltage, så vil goinstall rapportere hver succesfuld "
+"installation til Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr "Dette valg kan ændres ved at køre »dpkg-reconfigure golang-go«."
diff --git a/debian/po/de.po b/debian/po/de.po
new file mode 100644
index 000000000..6a9f0f81b
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,58 @@
+# German debconf translation of golang.
+# This file is distributed under the same license as the golang package.
+# Copyright (C) 2009, 2010, The Go Authors.
+# Copyright (C) of this file 2012 Chris Leick <c.leick@vollbio.de>.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 2012.01.27-3\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-01 18:44+0100\n"
+"Last-Translator: Chris Leick <c.leick@vollbio.de>\n"
+"Language-Team: German <debian-l10n-german@lists.debian.org>\n"
+"Language: de\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Installation öffentlicher Pakete an das Go Dashboard melden?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Das Programm Goinstall meldet die erfolgreiche Installation der öffentlichen "
+"Go-Pakete an godashboard.appspot.com, das einen Zähler erhöht, der mit dem "
+"Paket verbunden ist sowie die Zeit der aktuellsten Installation. Dieser "
+"Mechanismus befeuert die Paketliste auf dem Go Dashboard, die es Go-"
+"Programmierern ermöglicht, etwas über populäre Pakete zu lernen, die es Wert "
+"sind, einen Blick darauf zu werfen."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Falls Sie auswählen teilzunehmen, wird jede erfolgreiche Installation an das "
+"Go Dashboard gemeldet."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Diese Auswahl kann durch Ausführen von »dpkg-reconfigure golang-go« geändert werden."
diff --git a/debian/po/es.po b/debian/po/es.po
new file mode 100644
index 000000000..19c7edc28
--- /dev/null
+++ b/debian/po/es.po
@@ -0,0 +1,84 @@
+# golang po-debconf translation to Spanish
+# Copyright (C) 2010 Software in the Public Interest
+# This file is distributed under the same license as the golang package.
+#
+# Changes:
+# - Initial translation
+# Camaleón <noelamac@gmail.com>, 2012
+#
+# - Updates
+#
+#
+# Traductores, si no conocen el formato PO, merece la pena leer la
+# documentación de gettext, especialmente las secciones dedicadas a este
+# formato, por ejemplo ejecutando:
+# info -n '(gettext)PO Files'
+# info -n '(gettext)Header Entry'
+#
+# Equipo de traducción al español, por favor lean antes de traducir
+# los siguientes documentos:
+#
+# - El proyecto de traducción de Debian al español
+# http://www.debian.org/intl/spanish/
+# especialmente las notas y normas de traducción en
+# http://www.debian.org/intl/spanish/notas
+#
+# - La guía de traducción de po's de debconf:
+# /usr/share/doc/po-debconf/README-trans
+# o http://www.debian.org/intl/l10n/po-debconf/README-trans
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 1:60.3-3\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-25 11:55+0200\n"
+"Last-Translator: Camaleón <noelamac@gmail.com>\n"
+"Language-Team: Debian Spanish <debian-l10n-spanish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr ""
+"¿Desea informar sobre la instalación de paquetes públicos en Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"El programa goinstall envía informes a «godashboard.appspot.com» de los "
+"paquetes públicos de Go instalados correctamente. Esta información hace que "
+"se incremente el contador asociado al paquete así como la fecha almacenada "
+"de su instalación más reciente. Este mecanismo es el que se utiliza dentro "
+"de la lista de paquetes en el panel de Go Dashboard y ayuda a los "
+"programadores de Go a conocer cuáles son los paquetes más populares que "
+"puede merecer la pena revisar."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Si decide participar, se informará de cada instalación satisfactoria en Go "
+"Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Puede modificar esta elección ejecutando «dpkg-reconfigure golang-go»."
diff --git a/debian/po/fr.po b/debian/po/fr.po
new file mode 100644
index 000000000..91b031472
--- /dev/null
+++ b/debian/po/fr.po
@@ -0,0 +1,57 @@
+# Translation of golang debconf templates to French.
+# Copyright (C) 2012, French l10n team <debian-l10n-french@lists.debian.org>
+# This file is distributed under the same license as the golang package.
+# François LANKAR <lankarf@gmail.com>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-01 18:36+0100\n"
+"Last-Translator: François LANKAR <lankarf@gmail.com>\n"
+"Language-Team: FRENCH <debian-l10n-french@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Signaler les installations des paquets publics à Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Le programme goinstall signale l'installation réussie des paquets publics Go "
+"à godashboard.appspot.com, ce qui incrémente un compteur associé au paquet "
+"et le moment de son installation la plus récente. Ce mécanisme envoie la "
+"liste des paquets à Go Dashboard, ce qui permet aux développeurs Go de "
+"connaître les paquets populaires éventuellement intéressants à regarder."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Si vous choisissez de participer, chaque installation réussie sera signalée "
+"à Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Ce choix peut être modifié avec la commande « dpkg-reconfigure golang-go »."
diff --git a/debian/po/it.po b/debian/po/it.po
new file mode 100644
index 000000000..049378cb0
--- /dev/null
+++ b/debian/po/it.po
@@ -0,0 +1,59 @@
+# Italian description of golang debconf messages.
+# Copyright (C) 2012, golang package copyright holder.
+# This file is distributed under the same license as the golang package.
+# Beatrice Torracca <beatricet@libero.it>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-15 20:28+0200\n"
+"Last-Translator: Beatrice Torracca <beatricet@libero.it>\n"
+"Language-Team: Italian <debian-l10n-italian@lists.debian.org>\n"
+"Language: it\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Virtaal 0.7.1\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Segnalare a Go Dashboard l'installazione di pacchetti pubblici?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Il programma goinstall segnala le installazioni dei pacchetti pubblici Go "
+"avvenute con successo a godashboard.appshot.com, che incrementa un contatore "
+"associato con il pacchetto e aggiorna l'orario della sua installazione più "
+"recente. Questo meccanismo è alla base dell'elenco dei pacchetti di Go "
+"Dashboard e permette ai programmatori Go di conoscere i pacchetti popolari "
+"che vale la pena tenere d'occhio."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Se si sceglie di partecipare, ogni installazione avvenuta con successo sarà "
+"segnalata a Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Questa scelta può essere modificata eseguendo «dpkg-reconfigure golang-go»."
diff --git a/debian/po/nl.po b/debian/po/nl.po
new file mode 100644
index 000000000..f396fdcd5
--- /dev/null
+++ b/debian/po/nl.po
@@ -0,0 +1,58 @@
+# Dutch translation of golang debconf templates.
+# Copyright (C) 2012 THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the golang package.
+# Jeroen Schot <schot@a-eskwadraat.nl>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 1:60.3-3\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-19 10:27+0100\n"
+"Last-Translator: Jeroen Schot <schot@a-eskwadraat.nl>\n"
+"Language-Team: Debian l10n Dutch <debian-l10n-dutch@lists.debian.org>\n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Installatie van publieke pakketten melden bij het Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Het programma goinstall meldt de succesvolle installatie van de publieke Go-"
+"pakketten bij godashboard.appspot.com, welke voor pakketten een teller en de "
+"tijd van laatste installatie bijhoudt. Dit is de basis van de pakketlijst "
+"van het Go Dasboard en brengt Go-programmeurs op de hoogte van populaire "
+"pakketten die interessant kunnen zijn."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Als u ervoor kiest om mee te doen zal elke succesvolle installatie worden "
+"gemeld bij het Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"U kunt uw keuze altijd nog herzien via het commando \"dpkg-reconfigure "
+"golang-go\"."
diff --git a/debian/po/pl.po b/debian/po/pl.po
new file mode 100644
index 000000000..5ff99808f
--- /dev/null
+++ b/debian/po/pl.po
@@ -0,0 +1,61 @@
+# Translation of golang debconf templates to Polish.
+# Copyright (C) 2012
+# This file is distributed under the same license as the golang package.
+#
+# Michał Kułach <michal.kulach@gmail.com>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-01 19:15+0100\n"
+"Last-Translator: Michał Kułach <michal.kulach@gmail.com>\n"
+"Language-Team: Polish <debian-l10n-polish@lists.debian.org>\n"
+"Language: pl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.2\n"
+"Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 "
+"|| n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Odnotowywać instalację publicznych pakietów na Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Program goinstall odnotowuje pomyślne instalacje publicznych pakietów Go pod "
+"adresem godashboard.appspot.com, zwiększając wynik związany z pakietem i "
+"czasem jego ostatnich instalacji. Mechanizm ten jest używany przez listę "
+"pakietów na Go Dashboard, pozwalając programistom Go dowiedzieć się o "
+"popularnych pakietach, którymi, być może, warto się zainteresować."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Jeśli ta opcja zostanie aktywowana, każda pomyślna instalacja zostanie "
+"odnotowana na Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Można zmienić swój wybór później, wykonując polecenie \"dpkg-reconfigure "
+"golang-go\"."
diff --git a/debian/po/pt.po b/debian/po/pt.po
new file mode 100644
index 000000000..e9bb01b7c
--- /dev/null
+++ b/debian/po/pt.po
@@ -0,0 +1,70 @@
+# golang's portuguese debconf messages
+# Copyright (C) 2012
+# This file is distributed under the same license as the golang package.
+# Pedro Ribeiro <p.m42.ribeiro@gmail.com>, 2012
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2012-05-21 16:29+0200\n"
+"PO-Revision-Date: 2012-05-28 23:09+0000\n"
+"Last-Translator: Pedro Ribeiro <p.m42.ribeiro@gmail.com>, 2012\n"
+"Language-Team: Portuguese <traduz@debianpt.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr ""
+"Relatar a instalação de pacotes públicos no Painel de Instrumentos do Go?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+#| msgid ""
+#| "goinstall reports the successful installation of the public packages to "
+#| "godashboard.appspot.com, which increments a count associated with the "
+#| "package and the time of its most recent installation. This mechanism "
+#| "powers the package list at the Go Dashboard, allowing Go programmers to "
+#| "learn about popular packages that might be worth looking at."
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"O programa goinstall relata o sucesso de instalação dos pacotes públicos do "
+"Go para godashboard.appspot.com, o que incrementa um contador associado com "
+"o pacote e a data da instalação mais recente. Este mecanismo alimenta a "
+"lista de pacotes no Painel de Instrumentos do Go, permitindo que os "
+"programadores Go saibam quais os pacotes mais populares a que vale a pena "
+"dar atenção."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+#| msgid ""
+#| "If you choose to participate, the goinstall will report each successful "
+#| "installation to the Go Dashboard."
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Se escolher participar, cada instalação bem sucedida será reportada ao "
+"Painel de Instrumentos do Go."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+#| msgid ""
+#| "This choice can be later modified by running \"dpkg-reconfigure golang-go"
+#| "\"."
+msgid "This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Esta escolha pode ser modificada executando \"dpkg-reconfigure golang-go\"."
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644
index 000000000..be37747c7
--- /dev/null
+++ b/debian/po/ru.po
@@ -0,0 +1,60 @@
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the golang package.
+#
+# Yuri Kozlov <yuray@komyakino.ru>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 2012.01.27-3\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-03 12:36+0400\n"
+"Last-Translator: Yuri Kozlov <yuray@komyakino.ru>\n"
+"Language-Team: Russian <debian-l10n-russian@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: Lokalize 1.0\n"
+"Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
+"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Сообщать об установке общедоступных пакетов в Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Программа goinstall отправляет информацию об успешной установке "
+"общедоступных пакетов Go на сайт godashboard.appspot.com, что увеличивает "
+"счётчик, связанный с пакетом, и обновляет время его последней установки. "
+"Данный механизм поддерживает список пакетов в Go Dashboard, позволяя "
+"программистам Go узнать о популярных пакетах, на которые стоит обратить "
+"внимание."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Если вы ответите утвердительно, то о каждой успешной установке будет "
+"сообщено Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
+"Данный ответ можно изменить с помощью команды «dpkg-reconfigure golang-go»."
diff --git a/debian/po/sv.po b/debian/po/sv.po
new file mode 100644
index 000000000..5105554c0
--- /dev/null
+++ b/debian/po/sv.po
@@ -0,0 +1,58 @@
+# Translation of golang debconf template to Swedish
+# Copyright (C) 2012 Martin Bagge <brother@bsnet.se>
+# This file is distributed under the same license as the golang package.
+#
+# Martin Bagge <brother@bsnet.se>, 2012
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: 2012-03-03 01:10+0100\n"
+"Last-Translator: Martin Bagge / brother <brother@bsnet.se>\n"
+"Language-Team: Swedish <debian-l10n-swedish@lists.debian.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Poedit-Language: Swedish\n"
+"X-Poedit-Country: Sweden\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Rapportera installation av publika paket till Go-panelen?"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+"Programmet goinstall rapporterar lyckades installationer av de publika Go-"
+"paketen till godashboard.appspot.com vilket ökar en räknare knuten till "
+"paketet och en tidsstämpel för senaste lyckade installationen. Denna "
+"funktion aktiverar paketlistan på Go-panelen och gör att Go-programmerare "
+"kan få reda på vilka paket som kan vara värda att titta extra på."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+"Väljer du att delta kommer alla lyckade installationer att rapporteras till "
+"Go-panelen."
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr "Detta val kan ändras genom att köra \"dpkg-reconfigure golang-go\"."
diff --git a/debian/po/templates.pot b/debian/po/templates.pot
new file mode 100644
index 000000000..abd5c1429
--- /dev/null
+++ b/debian/po/templates.pot
@@ -0,0 +1,50 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang@packages.debian.org\n"
+"POT-Creation-Date: 2012-03-17 08:50+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"The goinstall program reports the successful installation of the public Go "
+"packages to godashboard.appspot.com, which increments a count associated "
+"with the package and the time of its most recent installation. This "
+"mechanism powers the package list at the Go Dashboard, allowing Go "
+"programmers to learn about popular packages that might be worth looking at."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
+msgstr ""
+
+#. Type: boolean
+#. Description
+#: ../golang-go.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go\"."
+msgstr ""
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 000000000..5f4897269
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,144 @@
+#!/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-arch build-indep build clean install binary-arch binary-indep binary: debian/control
+ +dh --parallel $(opt_no_act) $@
+
+override_dh_auto_clean:
+ rm -rf bin pkg
+ rm -f debian/*+
+ rm -f debian/build.stamp
+ rm -f test/pass.out test/run.out test/times.out
+ rm -rf debian/home
+
+override_dh_auto_build: debian/build.stamp
+
+override_dh_auto_test:
+ifeq ($(RUN_TEST), true)
+ cd $(CURDIR)/src && \
+ $(CURDIR)/debian/test.bash $(GOROOT)/pkg/tool/$(GOHOSTOS)_$(GOHOSTARCH);
+else
+ :
+endif
+
+override_dh_compress:
+ dh_compress -Xusr/share/doc/$(PACKAGE)-doc/html -Xusr/share/doc/$(PACKAGE)-doc/godoc
+
+override_dh_install:
+ dh_install --fail-missing
+ # Replace jquery in the html documentation with a symlink to libjs-jquery.
+ -rm $(CURDIR)/debian/golang-doc/usr/share/doc/golang-doc/html/jquery.js && \
+ ln -s /usr/share/javascript/jquery/jquery.min.js $(CURDIR)/debian/golang-doc/usr/share/doc/golang-doc/html/jquery.js
+ # Make scripts executable
+ chmod +x $(CURDIR)/debian/golang-src/usr/share/go/src/cmd/godoc/setup-godoc-app.bash
+ # Remove testdata and tests from installed src directory
+ find $(CURDIR)/debian/golang-src/usr/share/go/src -type d -name testdata -prune -execdir rm -rf {} \;
+ find $(CURDIR)/debian/golang-src/usr/share/go/src -type f -name '*_test.go' -delete
+ # Remove .syso files of the race detector; it is not used yet and the files are arch-dependent.
+ find $(CURDIR)/debian/golang-src/usr/share/go/src/pkg/runtime/race -type f -name '*.syso' -delete
+ # Remove Plan9 rc(1) scripts
+ find $(CURDIR)/debian/golang-src/usr/share/go/src -type f -name "*.rc" -delete
+ # Remove empty /usr/share/go/src from golang-go, it is provided by golang-src
+ find $(CURDIR)/debian/golang-go/usr/share/go/src -type d -delete
+ # Subsequently, /usr/share/go is empty, too, so remove
+ find $(CURDIR)/debian/golang-go/usr/share/go -type d -delete
+ # Touch built and installed files and directories to have same timestamp
+ touch $(CURDIR)/debian/golang-go/usr/lib/go/pkg
+ find $(CURDIR)/debian/golang-go/usr/lib/go/pkg -exec touch -r $(CURDIR)/debian/golang-go/usr/lib/go/pkg {} \;
+
+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 --no-banner
+ >debian/build.stamp
+
+opt_no_act =
+RUN_TEST := true
+
+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)))
+ RUN_TEST := false
+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)
+ RUN_TEST := false
+ 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)
+ RUN_TEST := false
+ 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)
+ RUN_TEST := false
+ 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
+
+.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/source/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 000000000..eaa4578ce
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,10 @@
+golang source: source-contains-prebuilt-binary src/pkg/debug/dwarf/testdata/typedef.elf
+golang source: source-contains-prebuilt-binary src/pkg/debug/elf/testdata/gcc-amd64-linux-exec
+golang source: source-contains-prebuilt-binary src/pkg/debug/elf/testdata/go-relocation-test-gcc441-x86.obj
+golang source: source-contains-prebuilt-binary src/pkg/debug/elf/testdata/gcc-386-freebsd-exec
+golang source: source-contains-prebuilt-binary src/pkg/debug/elf/testdata/gcc-amd64-openbsd-debug-with-rela.obj
+golang source: source-contains-prebuilt-windows-binary src/pkg/debug/pe/testdata/gcc-386-mingw-exec
+golang source: source-contains-prebuilt-binary src/pkg/debug/elf/testdata/go-relocation-test-gcc424-x86-64.obj
+golang source: source-contains-prebuilt-binary src/pkg/debug/elf/testdata/go-relocation-test-gcc441-x86-64.obj
+golang source: source-contains-prebuilt-windows-binary src/pkg/debug/pe/testdata/gcc-386-mingw-obj
+golang source: source-contains-prebuilt-binary src/pkg/runtime/race/race_linux_amd64.syso
diff --git a/debian/test.bash b/debian/test.bash
new file mode 100755
index 000000000..d8f6c055f
--- /dev/null
+++ b/debian/test.bash
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+set -e
+eval $($1/dist env -p)
+bash run.bash --no-rebuild --banner
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/
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 000000000..c42058db7
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://code.google.com/p/go/downloads/list .*/go(.*)\.src\.tar\.gz