[Pkg-privacy-commits] [pond] 02/02: Initial Debian packaging

Ximin Luo infinity0 at debian.org
Sun Oct 4 00:39:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository pond.

commit 425ffe60b0ca783ca19f8a62f475a9cd211bed10
Author: Ximin Luo <infinity0 at debian.org>
Date:   Sun Oct 4 02:33:02 2015 +0200

    Initial Debian packaging
---
 debian/changelog                        |  5 ++++
 debian/compat                           |  1 +
 debian/control                          | 43 +++++++++++++++++++++++++++
 debian/copyright                        | 17 +++++++++++
 debian/docs                             |  1 +
 debian/patches/disable-some-tests.patch | 21 +++++++++++++
 debian/patches/series                   |  1 +
 debian/rules                            | 52 +++++++++++++++++++++++++++++++++
 debian/source/format                    |  1 +
 debian/watch                            |  3 ++
 10 files changed, 145 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..430b6ae
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pond (0.1.1-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #733860)
+
+ -- Ximin Luo <infinity0 at debian.org>  Sun, 04 Oct 2015 01:22:42 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1875b37
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,43 @@
+Source: pond
+Section: net
+Priority: optional
+Maintainer: Debian Privacy Tools Maintainers <pkg-privacy-maintainers at lists.alioth.debian.org>
+Uploaders: Ximin Luo <infinity0 at debian.org>
+Build-Depends: debhelper (>= 9), dh-golang, golang-go,
+ golang-ed25519-dev,
+ golang-go.crypto-dev,
+ golang-goprotobuf-dev,
+ golang-golang-x-net-dev,
+ libtspi-dev
+Standards-Version: 3.9.6
+Homepage: https://github.com/agl/pond
+Vcs-Git: https://anonscm.debian.org/git/pkg-privacy/packages/pond.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-privacy/packages/pond.git
+
+Package: pond
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ tor
+Description: forward secure, asynchronous messaging for the discerning
+ For secure, synchronous communication we have OTR and, when run over Tor, this
+ is pretty good. But while we have secure asynchronous messaging in the form of
+ PGP email, it's not forward secure and it gratuitously leaks traffic
+ information. While a desire for forward secure PGP is hardly new, it still
+ hasn't materialised in a widely usable manner.
+ .
+ Additionally, email is used predominately for insecure communications (mailing
+ lists, etc) and is useful because it allows previously unconnected people to
+ communicate as long as a (public) email address is known to one party. But the
+ flip side to this is that volume and spam are driving people to use
+ centralised email services. These provide such huge benefits to the majority
+ of email communication, so it's unlikely that this trend is going to reverse.
+ But, even with PGP, these services are trusted with hugely valuable traffic
+ information if any party uses them.
+ .
+ So Pond is not email. Pond is forward secure, asynchronous messaging for the
+ discerning. Pond messages are asynchronous, but are not a record; they expire
+ automatically a week after they are received. Pond seeks to prevent leaking
+ traffic information against everyone except a global passive attacker.
+ .
+ This package contains the command line client only; the GUI is currently not
+ available in Debian, but may be in the future.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..52e3fe3
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,17 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pond
+Source: https://github.com/agl/pond
+
+Files: *
+Copyright: 2013-2015 Adam Langley <agl at imperialviolet.org>
+License: BSD-3-clause
+
+Files: debian/*
+Copyright: 2015 Ximin Luo <infinity0 at debian.org>
+License: BSD-3-clause
+
+License: BSD-3-clause
+ On Debian systems, the complete text of the BSD 3 Clause License can
+ be found in the file `/usr/share/common-licenses/BSD', replacing
+ references to the University of California with the appropriate
+ copyright holder.
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..8e695ec
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+doc
diff --git a/debian/patches/disable-some-tests.patch b/debian/patches/disable-some-tests.patch
new file mode 100644
index 0000000..b0b7c84
--- /dev/null
+++ b/debian/patches/disable-some-tests.patch
@@ -0,0 +1,21 @@
+Description: Disable inappropriate tests
+Author: Ximin Luo <infinity0 at debian.org>
+Forwarded: not-needed
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/client/client_test.go
++++ b/client/client_test.go
+@@ -1,3 +1,5 @@
++// +build !nogui
++
+ package main
+ 
+ import (
+--- a/client/tpm/tpm_test.go
++++ b/client/tpm/tpm_test.go
+@@ -1,3 +1,5 @@
++// +build ignore
++
+ package tpm
+ 
+ import (
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..0242313
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable-some-tests.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..24bff98
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,52 @@
+#!/usr/bin/make -f
+# See debhelper(7) (uncomment to enable)
+# output every command that modifies files on the build system.
+#export DH_VERBOSE = 1
+
+# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/default.mk
+
+# see FEATURE AREAS in dpkg-buildflags(1)
+#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+# see ENVIRONMENT in dpkg-buildflags(1)
+# package maintainers to append CFLAGS
+#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
+# package maintainers to append LDFLAGS
+#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+
+# main packaging script based on dh7 syntax
+
+DH_BUILDDIR = obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DH_INSTALLDIR = debian/pond
+GOFLAGS = -tags 'nogui'
+# have to disable GTK because of https://github.com/agl/pond/issues/143
+
+POND_BIN_RENAME = client server editstate
+
+export DH_GOPKG := github.com/agl/pond
+export DH_GOPKG_SUBDIRS := $(shell find . \
+  -path ./$(DH_BUILDDIR) -prune -o \
+  -path './.*' -prune -o \
+  -type f -a -name '*_test.go' -print | \
+  xargs -n1 dirname | sort -u | sed -e 's,^\./,,g' | \
+  grep -v bn256cgo)
+# https://cryptojedi.org/crypto/#dclxvi not yet in Debian, so disable bn256cgo
+export DH_GOPKG_TESTDATA := editstate
+
+%:
+	dh $@ --buildsystem=golang --with=golang
+
+override_dh_auto_build:
+	cd $(DH_BUILDDIR) && GOPATH=$$PWD go install $(GOFLAGS) -v $(DH_GOPKG_SUBDIRS:%=$(DH_GOPKG)/%)
+
+override_dh_auto_test:
+	cp -R --parents -t $(DH_BUILDDIR)/src/$(DH_GOPKG) $(DH_GOPKG_TESTDATA:%=%/testdata)
+	cd $(DH_BUILDDIR) && GOPATH=$$PWD go test $(GOFLAGS) -v $(DH_GOPKG_SUBDIRS:%=$(DH_GOPKG)/%)
+
+override_dh_auto_install:
+	dh_auto_install
+	rm -rf $(DH_INSTALLDIR)/usr/share/gocode
+	for i in $(POND_BIN_RENAME); do mv $(DH_INSTALLDIR)/usr/bin/$$i $(DH_INSTALLDIR)/usr/bin/pond-$$i; done
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..baa837e
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/(?:.*?)?v?(\d[\d.]*)\.tar\.gz/pond-$1.tar.gz/" \
+  https://github.com/agl/pond/tags (?:.*?/)?v?(\d[\d.]*)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pond.git



More information about the Pkg-privacy-commits mailing list