[SCM] Packaging for Google Go branch, debian-sid, updated. debian/1%60.2-1-21-gaf42388

Ondřej Surý ondrej at sury.org
Fri Apr 6 14:34:21 UTC 2012


The following commit has been merged in the debian-sid branch:
commit 8828b00bdfb826c00a4c763808862be510e5b0d9
Author: Ondřej Surý <ondrej at sury.org>
Date:   Fri Apr 6 15:50:42 2012 +0200

    Merge weekly tree to update go release to go1

diff --git a/debian/control b/debian/control
deleted file mode 100644
index 794a1d5..0000000
--- a/debian/control
+++ /dev/null
@@ -1,185 +0,0 @@
-Source: golang
-Section: devel
-Priority: optional
-Maintainer: Ondřej Surý <ondrej at debian.org>
-Vcs-Browser: http://git.debian.org/?p=pkg-google/golang.git
-Vcs-Git: git://git.debian.org/pkg-google/golang.git
-Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl
-Build-Depends-Indep: po-debconf
-Standards-Version: 3.9.2
-Homepage: http://golang.org/
-
-Package: golang-go
-Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
-Recommends: golang-tools
-Provides: go-compiler
-Description: Experimental Go programming language compiler
- This package provides assembler, compiler and linker for the Go
- programming language.  This is Google's Go implementation of the
- tool chain.
- .
- The Go programming language is an open source project to make
- programmers more productive. Go is expressive, concise, clean, and
- efficient.  Its concurrency mechanisms make it easy to write programs
- that get the most out of multicore and networked machines, while its
- novel type system enables flexible and modular program construction.
- Go compiles quickly to machine code yet has the convenience of
- garbage collection and the power of run-time reflection.  It's a
- fast, statically typed, compiled language that feels like a
- dynamically typed, interpreted language.
- .
- Go is an experiment. We hope adventurous users will give it a try and
- see if they enjoy it. Not every programmer will, but we hope enough
- will find satisfaction in the approach it offers to justify further
- development. The language can (and still does) change between stable
- releases, check http://golang.org/doc/devel/release.html before
- upgrading this package.
-
-Package: golang-src
-Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
-Depends: ${shlibs:Depends}, ${misc:Depends}, golang-go
-Recommends: golang-tools
-Description: Go programming language compiler (.go source files)
- This package provides the source files for the Go programming
- language needed for godoc and goinstall.
- .
- The Go programming language is an open source project to make
- programmers more productive. Go is expressive, concise, clean, and
- efficient.  Its concurrency mechanisms make it easy to write programs
- that get the most out of multicore and networked machines, while its
- novel type system enables flexible and modular program construction.
- Go compiles quickly to machine code yet has the convenience of
- garbage collection and the power of run-time reflection.  It's a
- fast, statically typed, compiled language that feels like a
- dynamically typed, interpreted language.
- .
- Go is an experiment. We hope adventurous users will give it a try and
- see if they enjoy it. Not every programmer will, but we hope enough
- will find satisfaction in the approach it offers to justify further
- development. The language can (and still does) change between stable
- releases, check http://golang.org/doc/devel/release.html before
- upgrading this package.
-
-Package: golang-doc
-Architecture: all
-Depends: ${misc:Depends}
-Section: doc
-Description: Documentation for Google's Go programming language
- This package provides the documentation for the Go programming
- language.
- .
- The Go programming language is an open source project to make
- programmers more productive. Go is expressive, concise, clean, and
- efficient.  Its concurrency mechanisms make it easy to write programs
- that get the most out of multicore and networked machines, while its
- novel type system enables flexible and modular program construction.
- Go compiles quickly to machine code yet has the convenience of
- garbage collection and the power of run-time reflection.  It's a
- fast, statically typed, compiled language that feels like a
- dynamically typed, interpreted language.
- .
- After installing golang-tools package, you can view a nicely
- formatted documentation by running godoc --http=:6060 and then
- visiting http://localhost:6060/doc/install.html.
- .
- Go is an experiment. We hope adventurous users will give it a try and
- see if they enjoy it. Not every programmer will, but we hope enough
- will find satisfaction in the approach it offers to justify further
- development. The language can (and still does) change between stable
- releases, check http://golang.org/doc/devel/release.html before
- upgrading this package.
-
-Package: golang-tools
-Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
-Depends: golang-go, ${shlibs:Depends}, ${misc:Depends}
-Recommends: golang-src, golang-doc
-Description: Tools for Google's Go programming language
- This package provides various tools for the Go programming language:
-  * godoc - extracts and generates documentation for Go programs
-  * gofix - upgrade Go programs to the most recent release
-  * gofmt - formats Go programs
-  * goinstall - automatic package installation
-  * gotry - evaluate expressions on the command line
-  * govet - simple checking of Go source code
- .
- The Go programming language is an open source project to make
- programmers more productive. Go is expressive, concise, clean, and
- efficient.  Its concurrency mechanisms make it easy to write programs
- that get the most out of multicore and networked machines, while its
- novel type system enables flexible and modular program construction.
- Go compiles quickly to machine code yet has the convenience of
- garbage collection and the power of run-time reflection.  It's a
- fast, statically typed, compiled language that feels like a
- dynamically typed, interpreted language.
- .
- Go is an experiment. We hope adventurous users will give it a try and
- see if they enjoy it. Not every programmer will, but we hope enough
- will find satisfaction in the approach it offers to justify further
- development. The language can (and still does) change between stable
- releases, check http://golang.org/doc/devel/release.html before
- upgrading this package.
-
-Package: golang-mode
-Architecture: all
-Depends: ${misc:Depends}, emacs23 | emacsen
-Suggests: golang-go
-Description: Go mode for GNU Emacs
- Provides a major mode for GNU Emacs to edit programs written in Google's
- Go programming language.
-
-Package: kate-syntax-go
-Architecture: all
-Depends: ${misc:Depends}, kate
-Suggests: golang-go
-Description: Syntax files to highlight Go in the Kate editor
- Provides a syntax highlighting for the Kate editor to edit programs
- written in Google's Go programming language.
-
-Package: vim-syntax-go
-Architecture: all
-Depends: ${misc:Depends}, vim
-Recommends: vim-addon-manager
-Suggests: golang-go
-Description: Syntax files to highlight Go in the Vim editor
- Provides a syntax highlighting for the Vim editor to edit programs
- written in Google's Go programming language.
-
-Package: golang-dbg
-Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
-Depends: ${misc:Depends}, golang-go (= ${binary:Version})
-Recommends: gdb
-Section: debug
-Priority: extra
-Description: Go programming language tool chain [debug]
- This package provides the debug symbols for Google's Go tool
- chain binaries (assembler, compiler, linker) needed for properly
- debugging errors in the tool chain with gdb.
-
-Package: golang
-Depends: ${misc:Depends},
-	 golang-go (>= ${source:Version}),
-         golang-src (>= ${source:Version}),
-         golang-tools (>= ${source:Version}),
-	 golang-doc (>= ${source:Version})
-Architecture: all
-Description: Experimental Go programming language [meta package]
- This package is a metapackage that, when installed, guarantees
- that the full Go development environment is installed.
- .
- The Go programming language is an open source project to make
- programmers more productive. Go is expressive, concise, clean, and
- efficient.  Its concurrency mechanisms make it easy to write programs
- that get the most out of multicore and networked machines, while its
- novel type system enables flexible and modular program construction.
- Go compiles quickly to machine code yet has the convenience of
- garbage collection and the power of run-time reflection.  It's a
- fast, statically typed, compiled language that feels like a
- dynamically typed, interpreted language.
- .
- Go is an experiment. We hope adventurous users will give it a try and
- see if they enjoy it. Not every programmer will, but we hope enough
- will find satisfaction in the approach it offers to justify further
- development. The language can (and still does) change between stable
- releases, check http://golang.org/doc/devel/release.html before
- upgrading this package.
diff --git a/debian/control.extra b/debian/control.extra
new file mode 100644
index 0000000..4cda88c
--- /dev/null
+++ b/debian/control.extra
@@ -0,0 +1,24 @@
+Package: golang-mode
+Architecture: all
+Depends: ${misc:Depends}, emacs23 | emacsen
+Suggests: golang-go
+Description: Go mode for GNU Emacs
+ Provides a major mode for GNU Emacs to edit programs written in Google's
+ Go programming language.
+
+Package: kate-syntax-go
+Architecture: all
+Depends: ${misc:Depends}, kate
+Suggests: golang-go
+Description: Syntax files to highlight Go in the Kate editor
+ Provides a syntax highlighting for the Kate editor to edit programs
+ written in Google's Go programming language.
+
+Package: vim-syntax-go
+Architecture: all
+Depends: ${misc:Depends}, vim
+Recommends: vim-addon-manager
+Suggests: golang-go
+Description: Syntax files to highlight Go in the Vim editor
+ Provides a syntax highlighting for the Vim editor to edit programs
+ written in Google's Go programming language.
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..effb334
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,116 @@
+Source: golang-#P#
+Section: devel
+Priority: optional
+Maintainer: Ondřej Surý <ondrej at debian.org>
+Vcs-Browser: http://git.debian.org/?p=pkg-google/golang.git
+Vcs-Git: git://git.debian.org/pkg-google/golang.git
+Build-Depends: debhelper (>= 7.4.10), bison, ed, mawk | awk, perl
+Build-Depends-Indep: po-debconf
+Standards-Version: 3.9.3
+Homepage: http://golang.org/
+
+Package: golang#P#-go
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${perl:Depends}
+Replaces: golang#P#-tools
+Conflicts: golang#C#-go, golang#C#-tools, golang#P#-tools
+Provides: go-compiler, golang#C#-go, golang#P#-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#P#-src
+Conflicts: golang#C#-src
+Provides: golang#C#-src
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}, golang#P#-go
+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#P#-doc
+Conflicts: golang#C#-doc
+Provides: golang#C#-doc
+Architecture: all
+Depends: ${misc:Depends}, golang#P#-go
+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#P#-dbg
+Conflicts: golang#C#-dbg
+Provides: golang#C#-dbg
+Architecture: i386 amd64 kfreebsd-i386 kfreebsd-amd64 armel armhf
+Depends: ${misc:Depends}, golang#P#-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#P#
+Depends: ${misc:Depends},
+	 golang#P#-go (>= ${source:Version}),
+	 golang#P#-src (>= ${source:Version}),
+	 golang#P#-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.
+
+#EXTRA#
diff --git a/debian/golang-go.config b/debian/golang-go.config
new file mode 100644
index 0000000..6e96c9c
--- /dev/null
+++ b/debian/golang-go.config
@@ -0,0 +1,34 @@
+#!/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_get golang-tools/dashboard || true
+if [ "$RET" = "yes" ] || [ "$RET" = "YES" ] || [ "$RET" = "true" ]; then
+    DASHBOARD=true
+elif [ "$RET" = "no" ] || [ "$RET" = "no" ] || [ "$RET" = "false" ]; then
+    DASHBOARD=false
+fi
+# Remove old settings from golang-tools package
+[ -n "$RET" ] && golang-tools/dashboard
+
+[ -n "$DASHBOARD" ] && db_set golang-go/dashboard "$DASHBOARD"
+
+db_input high golang-go/dashboard || [ $? -eq 30 ]
+db_go || true
diff --git a/debian/golang-go.install b/debian/golang-go.install
index 3a1dc54..6028fa0 100644
--- a/debian/golang-go.install
+++ b/debian/golang-go.install
@@ -1,19 +1,7 @@
+bin/go /usr/bin
+bin/godoc /usr/bin
+bin/gofmt /usr/bin
 pkg /usr/lib/go/
-bin/godefs /usr/bin/
-bin/gopack /usr/bin/
-bin/gotest /usr/bin/
-bin/cgo /usr/bin/
-bin/goyacc /usr/bin/
-bin/ebnflint /usr/bin/
-bin/gopprof /usr/bin/
-bin/gomake /usr/bin/
-bin/?l /usr/bin/
-bin/?cov /usr/bin/
-bin/?prof /usr/bin/
-bin/?c /usr/bin/
-bin/?a /usr/bin/
-bin/?nm /usr/bin/
-bin/?g /usr/bin/
 src/Make.* /usr/share/go/src/
 src/pkg/runtime/cgocall.h /usr/share/go/src/pkg/runtime/
 src/pkg/runtime/runtime.h /usr/share/go/src/pkg/runtime/
diff --git a/debian/golang-go.lintian-overrides b/debian/golang-go.lintian-overrides
index 66b6ac9..681583d 100644
--- a/debian/golang-go.lintian-overrides
+++ b/debian/golang-go.lintian-overrides
@@ -1,16 +1,11 @@
-golang-go: unstripped-binary-or-object usr/bin/cgo
-golang-go: statically-linked-binary usr/bin/cgo
-golang-go: unstripped-binary-or-object usr/bin/ebnflint
-golang-go: statically-linked-binary usr/bin/ebnflint
-golang-go: unstripped-binary-or-object usr/bin/goyacc
-golang-go: statically-linked-binary usr/bin/goyacc
-golang-go: unstripped-binary-or-object usr/bin/gotest
-golang-go: statically-linked-binary usr/bin/gotest
-golang-go: unstripped-binary-or-object ./usr/bin/cgo
-golang-go: statically-linked-binary ./usr/bin/cgo
-golang-go: unstripped-binary-or-object ./usr/bin/ebnflint
-golang-go: statically-linked-binary ./usr/bin/ebnflint
-golang-go: unstripped-binary-or-object ./usr/bin/goyacc
-golang-go: statically-linked-binary ./usr/bin/goyacc
-golang-go: unstripped-binary-or-object ./usr/bin/gotest
-golang-go: statically-linked-binary ./usr/bin/gotest
+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: unstripped-binary-or-object usr/lib/go/pkg/tool/linux_amd64/ebnflint
+golang-go: statically-linked-binary usr/lib/go/pkg/tool/linux_amd64/ebnflint
+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/gotype
+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.postinst b/debian/golang-go.postinst
new file mode 100644
index 0000000..b1a69ef
--- /dev/null
+++ b/debian/golang-go.postinst
@@ -0,0 +1,70 @@
+#!/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
+	;;
+    *)
+	;;
+esac
+
+#DEBHELPER#
diff --git a/debian/golang-tools.postrm b/debian/golang-go.postrm
similarity index 100%
rename from debian/golang-tools.postrm
rename to debian/golang-go.postrm
diff --git a/debian/golang-go.templates b/debian/golang-go.templates
new file mode 100644
index 0000000..0c21ad7
--- /dev/null
+++ b/debian/golang-go.templates
@@ -0,0 +1,14 @@
+Template: golang-go/dashboard
+Type: boolean
+Default: true
+_Description: Report installation of public packages to Go Dashboard?
+ 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.
+ .
+ If you choose to participate, the goinstall will report each successful
+ installation to the Go Dashboard.
+ .
+ This choice can be later modified by running "dpkg-reconfigure golang-go".
diff --git a/debian/golang-tools.config b/debian/golang-tools.config
deleted file mode 100644
index a952f62..0000000
--- a/debian/golang-tools.config
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/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 [ yes = "$DASHBOARD" ] ; then
-        DASHBOARD=true
-    else
-        DASHBOARD=false
-    fi
-    db_set golang-tools/dashboard "$DASHBOARD"
-fi
-
-db_input high golang-tools/dashboard || [ $? -eq 30 ]
-db_go || true
diff --git a/debian/golang-tools.dirs b/debian/golang-tools.dirs
deleted file mode 100644
index 415f082..0000000
--- a/debian/golang-tools.dirs
+++ /dev/null
@@ -1 +0,0 @@
-/usr/bin
diff --git a/debian/golang-tools.install b/debian/golang-tools.install
deleted file mode 100644
index 379de2c..0000000
--- a/debian/golang-tools.install
+++ /dev/null
@@ -1,6 +0,0 @@
-bin/godoc /usr/bin
-bin/gofix /usr/bin
-bin/gofmt /usr/bin
-bin/goinstall /usr/bin
-bin/gotry /usr/bin
-bin/govet /usr/bin
diff --git a/debian/golang-tools.lintian-overrides b/debian/golang-tools.lintian-overrides
deleted file mode 100644
index 47e4d6d..0000000
--- a/debian/golang-tools.lintian-overrides
+++ /dev/null
@@ -1,20 +0,0 @@
-golang-tools: statically-linked-binary usr/bin/godoc
-golang-tools: unstripped-binary-or-object usr/bin/godoc
-golang-tools: statically-linked-binary usr/bin/gofix
-golang-tools: unstripped-binary-or-object usr/bin/gofix
-golang-tools: statically-linked-binary usr/bin/gofmt
-golang-tools: unstripped-binary-or-object usr/bin/gofmt
-golang-tools: statically-linked-binary usr/bin/goinstall
-golang-tools: unstripped-binary-or-object usr/bin/goinstall
-golang-tools: statically-linked-binary usr/bin/govet
-golang-tools: unstripped-binary-or-object usr/bin/govet
-golang-tools: statically-linked-binary ./usr/bin/godoc
-golang-tools: unstripped-binary-or-object ./usr/bin/godoc
-golang-tools: statically-linked-binary ./usr/bin/gofix
-golang-tools: unstripped-binary-or-object ./usr/bin/gofix
-golang-tools: statically-linked-binary ./usr/bin/gofmt
-golang-tools: unstripped-binary-or-object ./usr/bin/gofmt
-golang-tools: statically-linked-binary ./usr/bin/goinstall
-golang-tools: unstripped-binary-or-object ./usr/bin/goinstall
-golang-tools: statically-linked-binary ./usr/bin/govet
-golang-tools: unstripped-binary-or-object ./usr/bin/govet
diff --git a/debian/golang-tools.postinst b/debian/golang-tools.postinst
deleted file mode 100644
index 8050839..0000000
--- a/debian/golang-tools.postinst
+++ /dev/null
@@ -1,70 +0,0 @@
-#!/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-tools/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-tools
-		#
-		# 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
-	;;
-    *)
-	;;
-esac
-
-#DEBHELPER#
diff --git a/debian/golang-tools.templates b/debian/golang-tools.templates
deleted file mode 100644
index 4d0aa5f..0000000
--- a/debian/golang-tools.templates
+++ /dev/null
@@ -1,15 +0,0 @@
-Template: golang-tools/dashboard
-Type: boolean
-Default: true
-_Description: Report installation of public packages to Go Dashboard?
- 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.
- .
- If you choose to participate, the goinstall will report each successful
- installation to the Go Dashboard.
- .
- This choice can be later modified by running "dpkg-reconfigure
- golang-tools".
diff --git a/debian/native-symlinks.mk b/debian/native-symlinks.mk
deleted file mode 100644
index 6cbbe2e..0000000
--- a/debian/native-symlinks.mk
+++ /dev/null
@@ -1,14 +0,0 @@
-# Create architecture-independent toolchain names
-
-# Reuse GOARCH detection logic
-export GOROOT = .
-include src/Make.inc
-
-bindir = debian/$(PACKAGE)-go/usr/bin
-basenames = a c cov g l nm prof
-
-.PHONY: all
-all:
-	for b in $(basenames) ; do \
-	  ln -s $O$$b $(bindir)/golang-$$b; \
-	done
diff --git a/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch b/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch
index b4dcc27..b8571ab 100644
--- a/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch
+++ b/debian/patches/001-allow_IPv4_on_IPv6_sockets.patch
@@ -7,20 +7,19 @@ Allow IPv4 on IPv6 sockets
 
 --- a/src/pkg/net/sock.go
 +++ b/src/pkg/net/sock.go
-@@ -35,6 +35,16 @@ func socket(net string, f, p, t int, la,
- 
- 	setKernelSpecificSockopt(s, f)
+@@ -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 {
-+	   e = syscall.SetsockoptInt(s, syscall.IPPROTO_IPV6,
-+	       syscall.IPV6_V6ONLY, 0)
-+	       			    if e != 0 {
-+				       	 syscall.Close(s)
-+							return nil, os.Errno(e)
-+							       }
-+							       }
++		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 {
- 		e = syscall.Bind(s, la)
- 		if e != 0 {
+ 		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
index e090573..47219c4 100644
--- a/debian/patches/003-set_correct_runpath.patch
+++ b/debian/patches/003-set_correct_runpath.patch
@@ -8,4 +8,4 @@
 +	$(LD) $(LDIMPORTS) -o $@ -r $(QUOTED_GOROOT_FINAL)/pkg/$(GOOS)_$(GOARCH) _go_.$O
  
  _go_.$O: $(GOFILES) $(PREREQ)
- 	$(GC) $(GCIMPORTS) -o $@ $(GOFILES)
+ 	$(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 0000000..b0866a5
--- /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
index 9399516..981aa06 100644
--- a/debian/patches/006-fix_kfreebsd_build.patch
+++ b/debian/patches/006-fix_kfreebsd_build.patch
@@ -1,22 +1,3 @@
---- a/src/libmach/Makefile
-+++ b/src/libmach/Makefile
-@@ -49,15 +49,8 @@ OFILES=\
- 	6obj.$O\
- 	8obj.$O\
- 
--ifneq ($(GOHOSTOS),windows)
- OFILES+=\
--	$(shell uname | tr A-Z a-z).$O\
--
--else
--OFILES+=\
--	windows.$O\
--
--endif
-+	$(GOOS).$O\
- 
- HFILES=../../include/mach.h elf.h macho.h obj.h
- 
 --- a/src/cmd/cov/Makefile
 +++ b/src/cmd/cov/Makefile
 @@ -20,11 +20,7 @@ HFILES=\
@@ -49,27 +30,16 @@
  install-linux: install-default
 --- a/src/pkg/syscall/mkerrors.sh
 +++ b/src/pkg/syscall/mkerrors.sh
-@@ -13,9 +13,7 @@ export LC_CTYPE=C
+@@ -15,7 +15,7 @@ GCC=gcc
  
- GCC=gcc
- 
--uname=$(uname)
--
--includes_Linux='
-+includes_linux='
- #define _LARGEFILE_SOURCE
- #define _LARGEFILE64_SOURCE
- #define _FILE_OFFSET_BITS 64
-@@ -43,7 +41,7 @@ includes_Linux='
- #include <netpacket/packet.h>
- '
+ uname=$(uname)
  
 -includes_Darwin='
 +includes_darwin='
  #define _DARWIN_C_SOURCE
  #define KERNEL
  #define _DARWIN_USE_64_BIT_INODE
-@@ -65,7 +63,7 @@ includes_Darwin='
+@@ -37,7 +37,7 @@ includes_Darwin='
  #include <termios.h>
  '
  
@@ -78,18 +48,27 @@
  #include <sys/types.h>
  #include <sys/event.h>
  #include <sys/socket.h>
-@@ -111,7 +109,7 @@ done
+@@ -55,7 +55,7 @@ includes_FreeBSD='
+ #include <netinet/ip_mroute.h>
+ '
  
- # Write godefs input.
- (
+-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 'enum {'
+ 	echo '*/'
+ 	echo 'import "C"'
 --- a/src/pkg/net/Makefile
 +++ b/src/pkg/net/Makefile
-@@ -43,7 +43,7 @@ GOFILES_freebsd=\
+@@ -82,7 +82,7 @@ GOFILES_freebsd=\
  
  ifeq ($(CGO_ENABLED),1)
  CGOFILES_freebsd=\
diff --git a/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch b/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch
index fec8c59..04bf8b8 100644
--- a/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch
+++ b/debian/patches/007-use_native_dynamic_linker_on_kfreebsd.patch
@@ -1,22 +1,22 @@
 --- a/src/cmd/8l/asm.c
 +++ b/src/cmd/8l/asm.c
-@@ -40,7 +40,7 @@
- #define	Dbufslop	100
+@@ -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";
  
- int32
- entryvalue(void)
 --- a/src/cmd/6l/asm.c
 +++ b/src/cmd/6l/asm.c
-@@ -42,7 +42,7 @@
+@@ -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";
  
- char	zeroes[32];
diff --git a/debian/patches/009-goinstall_can_install_to_GOPATH.patch b/debian/patches/009-goinstall_can_install_to_GOPATH.patch
index 37e649e..026b41d 100644
--- a/debian/patches/009-goinstall_can_install_to_GOPATH.patch
+++ b/debian/patches/009-goinstall_can_install_to_GOPATH.patch
@@ -1,6 +1,6 @@
 --- a/src/cmd/goinstall/main.go
 +++ b/src/cmd/goinstall/main.go
-@@ -87,6 +87,10 @@ func main() {
+@@ -121,6 +121,10 @@ func main() {
  	}
  	readPackageList()
  
diff --git a/debian/patches/010-goinstall_check_conf.patch b/debian/patches/010-goinstall_check_conf.patch
index d7e22e9..64657a4 100644
--- a/debian/patches/010-goinstall_check_conf.patch
+++ b/debian/patches/010-goinstall_check_conf.patch
@@ -7,9 +7,9 @@
 -	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")
- 	clean             = flag.Bool("clean", false, "clean the package directory before installing")
-@@ -47,6 +47,16 @@ var (
+@@ -48,6 +48,16 @@ var (
  	verbose           = flag.Bool("v", false, "verbose")
  )
  
diff --git a/debian/patches/011-__FreeBSD_kernel__.patch b/debian/patches/011-__FreeBSD_kernel__.patch
new file mode 100644
index 0000000..45be34f
--- /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 0000000..40f01fb
--- /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 0000000..e67a340
--- /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/series b/debian/patches/series
index af60555..df1559b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,7 +1,9 @@
 001-allow_IPv4_on_IPv6_sockets.patch
-003-set_correct_runpath.patch
-006-fix_kfreebsd_build.patch
+#003-set_correct_runpath.patch
+#006-fix_kfreebsd_build.patch
 007-use_native_dynamic_linker_on_kfreebsd.patch
-008-emacs-mode-key-literal-indent.patch
-009-goinstall_can_install_to_GOPATH.patch
-010-goinstall_check_conf.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
diff --git a/debian/po/cs.po b/debian/po/cs.po
new file mode 100644
index 0000000..a94cef1
--- /dev/null
+++ b/debian/po/cs.po
@@ -0,0 +1,57 @@
+# Czech PO debconf template translation of xfonts-traditional.
+# Copyright (C) 2012 Michal Simunek <michal.simunek at gmail.com>
+# This file is distributed under the same license as the xfonts-traditional package.
+# Michal Simunek <michal.simunek at gmail.com>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 2012.01.27-3\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-17 17:01+0100\n"
+"Last-Translator: Michal Simunek <michal.simunek at gmail.com>\n"
+"Language-Team: Czech <debian-l10n-czech at 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-tools.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-tools.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-tools.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-tools.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-tools\"."
+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 0000000..fe4755a
--- /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 at yahoo.dk), 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-02 12:42+0000\n"
+"Last-Translator: Joe Hansen <joedalton2 at yahoo.dk>\n"
+"Language-Team: Danish <debian-l10n-danish at 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-tools.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Rapporter installation af offentlige pakker til Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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 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-tools.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 hver succesfuld installation blive "
+"rapporteret til Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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 0000000..4a01fde
--- /dev/null
+++ b/debian/po/de.po
@@ -0,0 +1,59 @@
+# 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 at vollbio.de>.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 2012.01.27-3\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-01 18:44+0100\n"
+"Last-Translator: Chris Leick <c.leick at vollbio.de>\n"
+"Language-Team: German <debian-l10n-german at 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-tools.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Installation öffentlicher Pakete an das Go Dashboard melden?"
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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-tools.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-tools.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/fr.po b/debian/po/fr.po
new file mode 100644
index 0000000..919ab78
--- /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 at lists.debian.org>
+# This file is distributed under the same license as the golang package.
+# François LANKAR <lankarf at gmail.com>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-01 18:36+0100\n"
+"Last-Translator: François LANKAR <lankarf at gmail.com>\n"
+"Language-Team: FRENCH <debian-l10n-french at 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-tools.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Signaler les installations des paquets publics à Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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-tools.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-tools.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 0000000..6fe6611
--- /dev/null
+++ b/debian/po/it.po
@@ -0,0 +1,60 @@
+# 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 at libero.it>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-15 20:28+0200\n"
+"Last-Translator: Beatrice Torracca <beatricet at libero.it>\n"
+"Language-Team: Italian <debian-l10n-italian at 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-tools.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-tools.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-tools.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-tools.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 0000000..bcb9a80
--- /dev/null
+++ b/debian/po/nl.po
@@ -0,0 +1,59 @@
+# 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 at a-eskwadraat.nl>, 2012.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 2012.01.27-3\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-12 10:12+0100\n"
+"Last-Translator: Jeroen Schot <schot at a-eskwadraat.nl>\n"
+"Language-Team: Debian l10n Dutch <debian-l10n-dutch at 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-tools.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-tools.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-tools.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-tools.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 0000000..459bc1a
--- /dev/null
+++ b/debian/po/pl.po
@@ -0,0 +1,62 @@
+# 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 at gmail.com>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-01 19:15+0100\n"
+"Last-Translator: Michał Kułach <michal.kulach at gmail.com>\n"
+"Language-Team: Polish <debian-l10n-polish at 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-tools.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Odnotowywać instalację publicznych pakietów na Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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-tools.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-tools.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 0000000..79389eb
--- /dev/null
+++ b/debian/po/pt.po
@@ -0,0 +1,60 @@
+# 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 at gmail.com>, 2012
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-17 13:59+0000\n"
+"Last-Translator: Pedro Ribeiro <p.m42.ribeiro at gmail.com>, 2012\n"
+"Language-Team: Portuguese <traduz at 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-tools.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-tools.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 ""
+"O goinstall relata a instalação bem sucedida dos pacotes públicos do Go para "
+"o 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 Go Dashboard, permitindo que os programadores Go saibam quais "
+"os pacotes mais populares a que vale a pena dar atenção."
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.templates:2001
+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á comunicada para o "
+"Go Dashboard."
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.templates:2001
+msgid ""
+"This choice can be modified by running \"dpkg-reconfigure golang-go"
+"\"."
+msgstr ""
+"Esta escolha pode ser modificada com \"dpkg-reconfigure golang-go"
+"\"."
diff --git a/debian/po/ru.po b/debian/po/ru.po
new file mode 100644
index 0000000..17de4c1
--- /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 at komyakino.ru>, 2012.
+msgid ""
+msgstr ""
+"Project-Id-Version: golang 2012.01.27-3\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-03 12:36+0400\n"
+"Last-Translator: Yuri Kozlov <yuray at komyakino.ru>\n"
+"Language-Team: Russian <debian-l10n-russian at 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-tools.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Сообщать об установке общедоступных пакетов в Go Dashboard?"
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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-tools.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-tools.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 0000000..5f3ad49
--- /dev/null
+++ b/debian/po/sv.po
@@ -0,0 +1,60 @@
+# Translation of golang debconf template to Swedish
+# Copyright (C) 2012 Martin Bagge <brother at bsnet.se>
+# This file is distributed under the same license as the golang package.
+#
+# Martin Bagge <brother at bsnet.se>, 2012
+msgid ""
+msgstr ""
+"Project-Id-Version: golang\n"
+"Report-Msgid-Bugs-To: golang at packages.debian.org\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
+"PO-Revision-Date: 2012-03-03 01:10+0100\n"
+"Last-Translator: Martin Bagge / brother <brother at bsnet.se>\n"
+"Language-Team: Swedish <debian-l10n-swedish at 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-tools.templates:2001
+msgid "Report installation of public packages to Go Dashboard?"
+msgstr "Rapportera installation av publika paket till Go-panelen?"
+
+#. Type: boolean
+#. Description
+#: ../golang-tools.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-tools.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-tools.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
index 87aeec6..cda70be 100644
--- a/debian/po/templates.pot
+++ b/debian/po/templates.pot
@@ -6,9 +6,9 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
+"Project-Id-Version: golang\n"
 "Report-Msgid-Bugs-To: golang at packages.debian.org\n"
-"POT-Creation-Date: 2012-02-20 21:59+0100\n"
+"POT-Creation-Date: 2012-03-01 07:32+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
 "Language-Team: LANGUAGE <LL at li.org>\n"
@@ -19,33 +19,33 @@ msgstr ""
 
 #. Type: boolean
 #. Description
-#: ../golang-tools.templates:1001
+#: ../golang-tools.templates:2001
 msgid "Report installation of public packages to Go Dashboard?"
 msgstr ""
 
 #. Type: boolean
 #. Description
-#: ../golang-tools.templates:1001
+#: ../golang-tools.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."
+"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-tools.templates:1001
+#: ../golang-tools.templates:2001
 msgid ""
-"If you choose to participate, the goinstall will report each successful "
-"installation to the Go Dashboard."
+"If you choose to participate, each successful installation will be reported "
+"to the Go Dashboard."
 msgstr ""
 
 #. Type: boolean
 #. Description
-#: ../golang-tools.templates:1001
+#: ../golang-tools.templates:2001
 msgid ""
-"This choice can be later modified by running \"dpkg-reconfigure golang-tools"
+"This choice can be modified by running \"dpkg-reconfigure golang-tools"
 "\"."
 msgstr ""
diff --git a/debian/rules b/debian/rules
index 7f977ce..f9d9cce 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,21 @@ libexecdir := /usr/lib/go
 datadir := /usr/share/go
 bindir := /bin
 
-build clean install binary-arch binary-indep binary:
+ifeq ($(PACKAGE), golang)
+	P=
+	C=-weekly
+else
+	P=-weekly
+	C=
+endif
+
+debian/control: debian/control.in debian/control.extra
+	sed -e's/#P#/$(P)/g; s/#C#/$(C)/g; /#EXTRA#/ r debian/control.extra' \
+	< debian/control.in | \
+	sed -e'/#EXTRA#/ d' \
+	> debian/control
+
+build clean install binary-arch binary-indep binary: debian/control
 	+dh --parallel $(opt_no_act) $@
 
 override_dh_auto_clean:
@@ -31,10 +45,9 @@ override_dh_compress:
 
 override_dh_install:
 	dh_install --fail-missing
-	for f in $$(find src/cmd -name doc.go ; find src/pkg -name \*.go); do \
-	  install -D -m 0644 $$f debian/$(PACKAGE)-src/$(datadir)/$$f; \
+	for f in $$(find src/cmd -name \*.go ; find src/pkg -name \*.go); do \
+	  install -p -D -m 0644 $$f debian/$(PACKAGE)-src/$(datadir)/$$f; \
 	done
-	make -f debian/native-symlinks.mk PACKAGE=$(PACKAGE)
 
 override_dh_strip:
 	dh_strip -X".a" -Xgoinstall -Xgodoc -Xgoyacc -Xbin/cgo -Xebnflint -Xgofix -Xgofmt -Xgovet -Xgotest --dbg-package=$(PACKAGE)-dbg

-- 
Packaging for Google Go



More information about the Pkg-google-commits mailing list