[Pkg-privacy-commits] [ricochet-im] 02/03: Initial Debian packaging

Ximin Luo infinity0 at debian.org
Wed Sep 30 16:03:35 UTC 2015


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

infinity0 pushed a commit to branch master
in repository ricochet-im.

commit dda3f919a2038966409d320dfefe664a5ed38367
Author: Ximin Luo <infinity0 at debian.org>
Date:   Wed Sep 30 17:32:18 2015 +0200

    Initial Debian packaging
---
 debian/changelog                             |  5 +++
 debian/compat                                |  1 +
 debian/control                               | 55 ++++++++++++++++++++++++++++
 debian/copyright                             | 25 +++++++++++++
 debian/docs                                  |  1 +
 debian/patches/disable-nonworking-flag.patch | 17 +++++++++
 debian/patches/series                        |  1 +
 debian/rules                                 | 39 ++++++++++++++++++++
 debian/source/format                         |  1 +
 debian/watch                                 |  3 ++
 10 files changed, 148 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..847f29e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+ricochet-im (1.1.1-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #762430)
+
+ -- Ximin Luo <infinity0 at debian.org>  Wed, 23 Sep 2015 17:53:27 +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..01ad12d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,55 @@
+Source: ricochet-im
+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),
+ libssl-dev,
+ pkg-config,
+ libprotobuf-dev,
+ protobuf-compiler,
+ qt5-qmake,
+ qtbase5-dev,
+ qtchooser,
+ qttools5-dev-tools,
+ qtdeclarative5-dev,
+ qtmultimedia5-dev,
+ libasan2,
+ libubsan0,
+Standards-Version: 3.9.6
+Homepage: https://github.com/ricochet-im/ricochet
+Vcs-Git: https://anonscm.debian.org/git/pkg-privacy/packages/ricochet-im.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-privacy/packages/ricochet-im.git
+
+Package: ricochet-im
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends},
+ qml-module-qtquick-controls,
+ qml-module-qtquick-dialogs,
+ qml-module-qtmultimedia,
+ tor (>= 0.2.6)
+Description: anonymous metadata-resistant instant messaging
+ Ricochet is an experiment with a different kind of instant messaging that
+ doesn't trust anyone with your identity, your contact list, or your
+ communications.
+ .
+   - You can chat without exposing your identity (or IP address) to anyone
+   - Nobody can discover who your contacts are or when you talk (metadata-free)
+   - There are no servers or operators to compromise that could access your
+     information
+   - It's cross-platform and easy for non-technical users
+ .
+ Ricochet is a peer-to-peer instant messaging system built on Tor hidden
+ services. Your login is your hidden service address, and contacts connect to
+ you (not an intermediate server) through Tor. The rendezvous system makes it
+ extremely hard for anyone to learn your identity from your address.
+ .
+ Ricochet is not affiliated with or endorsed by The Tor Project. For more
+ information, you can read about Tor and learn about Ricochet's design or
+ protocol (or the old protocol). Everything is open-source and open to
+ contribution.
+ .
+ **This software is an experiment**. It hasn't been audited or formally
+ reviewed by anyone. Security and anonymity are difficult topics, and you
+ should carefully evaluate your risks and exposure with any software. Do not
+ rely on Ricochet for your safety.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..0198a42
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,25 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ricochet
+Source: https://github.com/ricochet-im/ricochet
+
+Files: *
+Copyright: 2014-2015 John Brooks <john.brooks at dereferenced.net>
+License: BSD-3-clause
+
+# apparently no longer here
+#Files: src/common/strlcat.c src/common/strlcpy.c
+#Copyright: 1998 Todd C. Miller <Todd.Miller at courtesan.com>
+#License: BSD-3-clause
+
+#Ricochet "R" icon by Lawrence Eastland, CC-BY-SA 4.0. See icons/LICENSE.
+#TODO add others
+
+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-nonworking-flag.patch b/debian/patches/disable-nonworking-flag.patch
new file mode 100644
index 0000000..2b139e5
--- /dev/null
+++ b/debian/patches/disable-nonworking-flag.patch
@@ -0,0 +1,17 @@
+Description: Disable non-working hardening flag
+ Recommended by upstream as a temporary workaround
+Author: Ximin Luo <infinity0 at debian.org>
+Bug: https://github.com/ricochet-im/ricochet/issues/269
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/hardened.pri
++++ b/hardened.pri
+@@ -6,7 +6,7 @@
+ # Supported in gcc 4.9+
+ HARDENED_SANITIZE_UBSAN_FLAGS = -fsanitize=undefined -fsanitize=integer-divide-by-zero -fsanitize=bounds -fsanitize=alignment -fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow -fno-sanitize-recover
+ # Supported in gcc 5.0+
+-HARDENED_SANITIZE_UBSAN_MORE_FLAGS = -fsanitize=vptr -fsanitize=object-size
++HARDENED_SANITIZE_UBSAN_MORE_FLAGS = -fno-sanitize=vptr -fsanitize=object-size
+ # vtable-verify requires some OS support; see https://bugzilla.novell.com/show_bug.cgi?id=877239
+ HARDENED_VTABLE_VERIFY_FLAGS = -fvtable-verify=std
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..98840b8
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+disable-nonworking-flag.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..31f432f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,39 @@
+#!/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
+
+export QT_SELECT = qt5
+
+%:
+	dh $@
+
+override_dh_auto_configure:
+	dh_auto_configure -- CONFIG+=release DEFINES+=RICOCHET_NO_PORTABLE
+
+override_dh_auto_test:
+	dh_auto_test
+#	find config.tests tests -name Makefile -print0 | \
+#	  xargs -r0 -n1 sh -c 'make -C "$$(dirname "$$1")" test' make
+
+override_dh_auto_clean:
+	dh_auto_clean
+	find config.tests tests -name Makefile -print0 | \
+	  xargs -r0 -n1 sh -c 'make -C "$$(dirname "$$1")" distclean' make
+	rm -f .qmake.cache config.log
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..90230c3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts="filenamemangle=s/(?:.*?)?v?(\d[\d.]*)\.tar\.gz/ricochet-$1.tar.gz/" \
+  https://github.com/ricochet-im/ricochet/tags (?:.*?/)?v?(\d[\d.]*)\.tar\.gz

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



More information about the Pkg-privacy-commits mailing list