From 8f5f33231acee18ee1e2f00359e71c2da15623ef Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 5 Aug 2018 15:58:21 +0200 Subject: [PATCH] ppa: Add debian build instructions Signed-off-by: Christian Decker --- debian/README.Debian | 0 debian/README.source | 0 debian/changelog | 11 +++++++++++ debian/compat | 1 + debian/control | 20 ++++++++++++++++++++ debian/copyright | 25 +++++++++++++++++++++++++ debian/lightningd-docs.docs | 2 ++ debian/rules | 33 +++++++++++++++++++++++++++++++++ debian/source/format | 1 + 9 files changed, 93 insertions(+) create mode 100644 debian/README.Debian create mode 100644 debian/README.source create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100644 debian/lightningd-docs.docs create mode 100755 debian/rules create mode 100644 debian/source/format diff --git a/debian/README.Debian b/debian/README.Debian new file mode 100644 index 000000000..e69de29bb diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 000000000..e69de29bb diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 000000000..78b779d47 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,11 @@ +lightningd (0.6-1) stable; urgency=medium + + * While there are far too many new features in the 0.6 release to list, the following are the most interesting and impactful: Lightweight nodes: Previous releases required a full bitcoind node running alongside c-lightning, to provide access to the Bitcoin network. Thisrelease still requires the bitcoin-cli utility to be present, but it can now talk to remote nodes as well, including some lightweight nodes such as spruned. This makes it possible to run a c-lightning node on Raspberry Pis as well as other low-powered devices. + * The gossip protocol has been updated to use a more lightweight bandwidth mechanism that asks for specific information, rather than exchanging full network views as the previous release did. This is particularly important for low-powered and mobile devices that would otherwise spend a lot of bandwidth and energy downloading and verifying information they already have. + * API stability: The c-lightning JSON-RPC interface and supporting libraries have been redesigned in order to minimize changes in future releases. This API stability should make it easy for other projects to build on top of c-lightning because we will support this version of the API for the foreseeable future, maintaining backward compatibility, should we introduce any changes. + * Wallet and sync: c-lightning now includes a full-fledged wallet that manages both on-chain and off-chain funds. There is no more raw transaction handling! All funds are automatically tracked and returned to the internalwallet as soon as possible, with no user interaction required. In addition the blockchain tracking now maintains an internal view of the blockchain,ending long blockchain rescans. + * TOR support: c-lightning now supports connecting to nodes over the TOR network, auto-registering as a hidden service, and accepting incoming connections over TOR. + * The payment logic has undergone a major overhaul to support automatic retries for routing failures, randomization of route selection, and better feedback about the current state of a payment. + * And as always: performance, performance, performance. + + -- Christian Decker Sun, 05 Aug 2018 11:46:08 +0200 diff --git a/debian/compat b/debian/compat new file mode 100644 index 000000000..ec635144f --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +9 diff --git a/debian/control b/debian/control new file mode 100644 index 000000000..cd3554937 --- /dev/null +++ b/debian/control @@ -0,0 +1,20 @@ +Source: lightningd +Section: net +Priority: optional +Maintainer: Christian Decker +Build-Depends: debhelper (>=9),autotools-dev,build-essential,pkg-config,libsqlite3-dev,git,libtool,libgmp-dev,libsqlite3-dev,python,python3,net-tools,zlib1g-dev,python3-pip,autoconf,automake,python3-mako +Depends: libsqlite3-0 bitcoind +Standards-Version: 3.9.6 +Homepage: https://github.com/ElementsProject/lightning +Vcs-Git: https://github.com/ElementsProject/lightning.git +Vcs-Browser: https://github.com/ElementsProject/lightning + +Package: lightningd +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: c-lightning: A specification compliant Lightning Network implementation in C + c-lightning is a standard compliant implementation of the Lightning Network + protocol. The Lightning Network is a scalability solution for Bitcoin, + enabling secure and instant transfer of funds between any two parties for + any amount.For more information about the Lightning Network please refer to + http://lightning.network. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 000000000..93dd2b936 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,25 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: lightningd +Source: + +Files: * +Copyright: 2015 - 2016 Rusty Russell (Blockstream) + 2016 - 2018 c-lightning developers +License: BSD-MIT + 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. diff --git a/debian/lightningd-docs.docs b/debian/lightningd-docs.docs new file mode 100644 index 000000000..efea0a6a2 --- /dev/null +++ b/debian/lightningd-docs.docs @@ -0,0 +1,2 @@ +README.Debian +README.source diff --git a/debian/rules b/debian/rules new file mode 100755 index 000000000..21efcdfbe --- /dev/null +++ b/debian/rules @@ -0,0 +1,33 @@ +#!/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 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 + + +%: + dh $@ --with autotools_dev + + +override_dh_auto_build: + make + +# dh_make generated override targets +# This is example for Cmake (See https://bugs.debian.org/641051 ) +override_dh_auto_configure: + ./configure CC=gcc --disable-developer --disable-valgrind --prefix=/usr + +override_dh_auto_test: + echo Skipping + +override_dh_usrlocal: + echo Skipping 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)