[Pkg-bitcoin-commits] [p2pool] 01/01: Initial commit

Dmitry Smirnov onlyjob at moszumanska.debian.org
Thu Dec 26 14:30:05 UTC 2013


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

onlyjob pushed a commit to branch master
in repository p2pool.

commit 60afce5 (HEAD, master)
Author: Dmitry Smirnov <onlyjob at member.fsf.org>
Date:   Thu Dec 26 13:52:56 2013

    Initial commit
---
 debian/TODO.Debian               |   6 ++
 debian/changelog                 |   5 ++
 debian/clean                     |   2 +
 debian/compat                    |   1 +
 debian/control                   |  37 +++++++++++
 debian/copyright                 | 126 +++++++++++++++++++++++++++++++++++++
 debian/p2pool.1                  | 131 +++++++++++++++++++++++++++++++++++++++
 debian/p2pool.dirs               |   1 +
 debian/p2pool.docs               |   1 +
 debian/p2pool.install            |   4 ++
 debian/p2pool.links              |   1 +
 debian/p2pool.manpages           |   1 +
 debian/p2pool.postinst           |  10 +++
 debian/patches/debian.patch      |  29 +++++++++
 debian/patches/series            |   1 +
 debian/python-ltc-scrypt.install |   2 +
 debian/rules                     |  54 ++++++++++++++++
 debian/source/format             |   1 +
 debian/source/options            |   1 +
 debian/watch                     |   8 +++
 20 files changed, 422 insertions(+)

diff --git a/debian/TODO.Debian b/debian/TODO.Debian
new file mode 100644
index 0000000..0f1aab8
--- /dev/null
+++ b/debian/TODO.Debian
@@ -0,0 +1,6 @@
+ * Clarify copyright years/statement with upstream;
+   + Suggest versioned LGPL for "nattraverso".
+
+ * Package dependency "libjs-d3" (#676396).
+
+ * Consider logrotate & log under /var/log.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..d14ff48
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+p2pool (13.4+dfsg-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #657712).
+
+ -- Dmitry Smirnov <onlyjob at debian.org>  Tue, 26 Nov 2013 01:32:36 +1100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..87672f4
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+p2pool/*.pyc
+p2pool/*/*.pyc
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..ba7f048
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,37 @@
+Source: p2pool
+Section: net
+Priority: optional
+Maintainer: Debian Bitcoin Packaging Team <pkg-bitcoin-devel at lists.alioth.debian.org>
+Uploaders: Dmitry Smirnov <onlyjob at debian.org>
+Build-Depends: debhelper (>= 9), python-dev
+Standards-Version: 3.9.5
+Homepage: https://github.com/forrestv/p2pool
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-bitcoin/p2pool.git
+Vcs-Git: git://anonscm.debian.org/pkg-bitcoin/p2pool.git
+
+Package: p2pool
+Architecture: all
+Depends: ${python:Depends}, ${misc:Depends}
+        ,python-ltc-scrypt (>= ${source:Version})
+        ,python-twisted-web
+         ,python-openssl
+         ,python-zope.interface
+        ,python-soappy
+         ,python-fpconst
+         ,python-wstools
+Recommends: bitcoind | bitcoin-qt | litecoind | litecoin-qt
+Description: peer-to-peer pool for Bitcoin/Litecoin mining
+ p2pool implements a peer-to-peer mining pool for bitcoins.
+ Unlike a traditional pool, there is no central authority which
+ distributes the coins that are mined.
+
+Package: python-ltc-scrypt
+Section: python
+Architecture: any
+Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends}
+Description: bindings for scrypt proof of work used by Litecoin
+ p2pool implements a peer-to-peer mining pool for bitcoins.
+ Unlike a traditional pool, there is no central authority which
+ distributes the coins that are mined.
+ .
+ This library is a component of p2pool.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..5048d11
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,126 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0
+Upstream-Name: p2pool
+Upstream-Contact: ????????????
+Source: https://github.com/forrestv/p2pool
+
+Files: *
+Copyright: ???????
+License: GPL-3+
+
+Files: nattraverso/*
+Copyright: 2005 Raphael Slinckx <raphael at slinckx.net>
+License: LGPL-2+
+
+Files: litecoin_scrypt/scrypt.c
+Copyright: 2009 Colin Percival
+           2011 ArtForz
+License: BSD-2-clause
+ 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.
+
+Files: web-static/d3.v2.min.js
+Copyright: 2013 Michael Bostock
+License: BSD-3-clause
+ 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.
+ ․
+ * The name Michael Bostock may not 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 MICHAEL BOSTOCK 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.
+
+Files: SOAPpy/*
+Copyright: 2003 Pfizer
+           2001 Cayce Ullman
+           2001 Brian Matthews
+License: BSD-3-clause
+ 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 actzero, 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 REGENTS 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.
+
+Files: debian/*
+Copyright: 2013 Dmitry Smirnov <onlyjob at debian.org>
+License: GPL-3+
+
+
+License: LGPL-2+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2 of the License, or (at your option) any later version.
+ ․
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ Lesser General Public License for more details.
+ ․
+ The complete text of the GNU Lesser General Public License
+ version 2 can be found in "/usr/share/common-licenses/LGPL-2".
+
+License: GPL-3+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation, either version 3 of the License, or
+ (at your option) any later version.
+ ․
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ GNU General Public License for more details.
+ ․
+ The complete text of the GNU General Public License version 3
+ can be found in "/usr/share/common-licenses/GPL-3".
diff --git a/debian/p2pool.1 b/debian/p2pool.1
new file mode 100644
index 0000000..3cfa453
--- /dev/null
+++ b/debian/p2pool.1
@@ -0,0 +1,131 @@
+.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.43.3.
+.TH P2POOL "1" "December 2013" "p2pool 13.4" "User Commands"
+.SH NAME
+p2pool \- peer-to-peer pool for Bitcoin mining
+.SH DESCRIPTION
+usage: p2pool [\-h] [\-\-version] [\-\-net {bitcoin,litecoin,terracoin}]
+.IP
+[\-\-testnet] [\-\-debug] [\-a ADDRESS] [\-\-datadir DATADIR]
+[\-\-logfile LOGFILE] [\-\-merged MERGED_URLS]
+[\-\-give\-author DONATION_PERCENTAGE] [\-\-iocp]
+[\-\-irc\-announce] [\-\-no\-bugreport] [\-\-p2pool\-port PORT]
+[\-n ADDR[:PORT]] [\-\-disable\-upnp] [\-\-max\-conns CONNS]
+[\-\-outgoing\-conns CONNS] [\-\-disable\-advertise]
+[\-w PORT or ADDR:PORT] [\-f FEE_PERCENTAGE]
+[\-\-bitcoind\-address BITCOIND_ADDRESS]
+[\-\-bitcoind\-rpc\-port BITCOIND_RPC_PORT]
+[\-\-bitcoind\-rpc\-ssl]
+[\-\-bitcoind\-p2p\-port BITCOIND_P2P_PORT]
+[BITCOIND_RPCUSERPASS [BITCOIND_RPCUSERPASS ...]]
+.PP
+p2pool (version 13.4)
+
+.SH OPTIONS
+
+.TP
+\fB\-h\fR, \fB\-\-help\fR
+show this help message and exit
+.TP
+\fB\-\-version\fR
+show program's version number and exit
+.TP
+\fB\-\-net\fR {bitcoin,litecoin,terracoin}
+use specified network (default: bitcoin)
+.TP
+\fB\-\-testnet\fR
+use the network's testnet
+.TP
+\fB\-\-debug\fR
+enable debugging mode
+.TP
+\fB\-a\fR ADDRESS, \fB\-\-address\fR ADDRESS
+generate payouts to this address (default: <address
+requested from bitcoind>)
+.TP
+\fB\-\-datadir\fR DATADIR
+store data in this directory (default: <directory
+p2pool is in>/data)
+.TP
+\fB\-\-logfile\fR LOGFILE
+log to this file (default: data/<NET>/log)
+.TP
+\fB\-\-merged\fR MERGED_URLS
+call getauxblock on this url to get work for merged
+mining (example:
+http://ncuser:ncpass@127.0.0.1:10332/)
+.TP
+\fB\-\-give\-author\fR DONATION_PERCENTAGE
+donate this percentage of work towards the development
+of p2pool (default: 1.0)
+.TP
+\fB\-\-iocp\fR
+use Windows IOCP API in order to avoid errors due to
+large number of sockets being open
+.TP
+\fB\-\-irc\-announce\fR
+announce any blocks found on
+irc://irc.freenode.net/#p2pool
+.TP
+\fB\-\-no\-bugreport\fR
+disable submitting caught exceptions to the author
+.TP
+\fB\-\-disable\-upnp\fR
+don't attempt to use UPnP to forward p2pool's P2P port
+from the Internet to this computer
+.TP
+\fB\-\-disable\-advertise\fR
+don't advertise local IP address as being available
+for incoming connections. useful for running a dark
+node, along with multiple \fB\-n\fR ADDR's and \fB\-\-outgoingconns\fR 0
+.SS "p2pool interface:"
+.TP
+\fB\-\-p2pool\-port\fR PORT
+use port PORT to listen for connections (forward this
+port from your router!) (default: bitcoin:9333,
+litecoin:9338, terracoin:9323)
+.TP
+\fB\-n\fR ADDR[:PORT], \fB\-\-p2pool\-node\fR ADDR[:PORT]
+connect to existing p2pool node at ADDR listening on
+port PORT (defaults to default p2pool P2P port) in
+addition to builtin addresses
+.TP
+\fB\-\-max\-conns\fR CONNS
+maximum incoming connections (default: 40)
+.TP
+\fB\-\-outgoing\-conns\fR CONNS
+outgoing connections (default: 6)
+.SS "worker interface:"
+.TP
+\fB\-w\fR PORT or ADDR:PORT, \fB\-\-worker\-port\fR PORT or ADDR:PORT
+listen on PORT on interface with ADDR for RPC
+connections from miners (default: all interfaces,
+bitcoin:9332, litecoin:9327, terracoin:9322)
+.TP
+\fB\-f\fR FEE_PERCENTAGE, \fB\-\-fee\fR FEE_PERCENTAGE
+charge workers mining to their own bitcoin address (by
+setting their miner's username to a bitcoin address)
+this percentage fee to mine on your p2pool instance.
+Amount displayed at http://127.0.0.1:WORKER_PORT/fee
+(default: 0)
+.SS "bitcoind interface:"
+.TP
+\fB\-\-bitcoind\-address\fR BITCOIND_ADDRESS
+connect to this address (default: 127.0.0.1)
+.TP
+\fB\-\-bitcoind\-rpc\-port\fR BITCOIND_RPC_PORT
+connect to JSON\-RPC interface at this port (default:
+bitcoin:8332, litecoin:9332, terracoin:13332 <read
+from bitcoin.conf if password not provided>)
+.TP
+\fB\-\-bitcoind\-rpc\-ssl\fR
+connect to JSON\-RPC interface using SSL
+.TP
+\fB\-\-bitcoind\-p2p\-port\fR BITCOIND_P2P_PORT
+connect to P2P interface at this port (default:
+bitcoin:8333, litecoin:9333, terracoin:13333 <read
+from bitcoin.conf if password not provided>)
+.TP
+BITCOIND_RPCUSERPASS
+bitcoind RPC interface username, then password, spaceseparated (only one being provided will cause the
+username to default to being empty, and none will
+cause P2Pool to read them from bitcoin.conf)
diff --git a/debian/p2pool.dirs b/debian/p2pool.dirs
new file mode 100644
index 0000000..f221b6f
--- /dev/null
+++ b/debian/p2pool.dirs
@@ -0,0 +1 @@
+/var/cache/p2pool
diff --git a/debian/p2pool.docs b/debian/p2pool.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/p2pool.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/p2pool.install b/debian/p2pool.install
new file mode 100644
index 0000000..d392c24
--- /dev/null
+++ b/debian/p2pool.install
@@ -0,0 +1,4 @@
+p2pool          /usr/lib/p2pool/
+run_p2pool.py   /usr/lib/p2pool/
+nattraverso     /usr/lib/p2pool/
+web-static      /usr/share/p2pool/
diff --git a/debian/p2pool.links b/debian/p2pool.links
new file mode 100644
index 0000000..244dd8c
--- /dev/null
+++ b/debian/p2pool.links
@@ -0,0 +1 @@
+/usr/lib/p2pool/run_p2pool.py    /usr/bin/p2pool
diff --git a/debian/p2pool.manpages b/debian/p2pool.manpages
new file mode 100644
index 0000000..0f65186
--- /dev/null
+++ b/debian/p2pool.manpages
@@ -0,0 +1 @@
+debian/*.1
diff --git a/debian/p2pool.postinst b/debian/p2pool.postinst
new file mode 100644
index 0000000..b011b0c
--- /dev/null
+++ b/debian/p2pool.postinst
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+case "$1" in
+    configure|reconfigure)
+        chmod go+w /var/cache/p2pool
+    ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/patches/debian.patch b/debian/patches/debian.patch
new file mode 100644
index 0000000..d03fd9f
--- /dev/null
+++ b/debian/patches/debian.patch
@@ -0,0 +1,29 @@
+Last-Update: 2013-12-26
+Forwarded: not-needed
+Author: Dmitry Smirnov <onlyjob at member.fsf.org>
+Description: Debianisation
+
+--- a/p2pool/web.py
++++ b/p2pool/web.py
+@@ -442,7 +442,7 @@
+     def _(new_work):
+         hd.datastreams['getwork_latency'].add_datum(time.time(), new_work['latency'])
+     new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time())))
+     
+-    web_root.putChild('static', static.File(os.path.join(os.path.dirname(sys.argv[0]), 'web-static')))
++    web_root.putChild('static', static.File(os.path.join(os.path.dirname(sys.argv[0]), '/usr/share/p2pool/web-static')))
+     
+     return web_root
+--- a/p2pool/main.py
++++ b/p2pool/main.py
+@@ -453,9 +453,9 @@
+     
+     net_name = args.net_name + ('_testnet' if args.testnet else '')
+     net = networks.nets[net_name]
+     
+-    datadir_path = os.path.join((os.path.join(os.path.dirname(sys.argv[0]), 'data') if args.datadir is None else args.datadir), net_name)
++    datadir_path = os.path.join((os.path.join(os.path.dirname(sys.argv[0]), '/var/cache/p2pool') if args.datadir is None else args.datadir), net_name)
+     if not os.path.exists(datadir_path):
+         os.makedirs(datadir_path)
+     
+     if len(args.bitcoind_rpc_userpass) > 2:
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..3893360
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian.patch
diff --git a/debian/python-ltc-scrypt.install b/debian/python-ltc-scrypt.install
new file mode 100644
index 0000000..fdd1c40
--- /dev/null
+++ b/debian/python-ltc-scrypt.install
@@ -0,0 +1,2 @@
+#usr/share/pyshared
+usr/lib/*/*/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..d679879
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,54 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
+
+%:
+	dh $@ --with python2 --buildsystem=python_distutils --sourcedirectory=litecoin_scrypt
+
+override_dh_auto_install:
+	dh_auto_install --destdir=$(CURDIR)/debian/tmp
+
+MAN_NAME=peer-to-peer pool for Bitcoin mining
+p2pool.1:
+	help2man --no-info --version-string="$$(./run_p2pool.py --version 2>&1 | tail -1)" --name="$(MAN_NAME)" ./run_p2pool.py > $@
+	perl \
+             -E 's{run_(p2pool)\.py}{$$1}sgi;                    # correcting executable name'                \
+             -E 's{\s+(It was generated by help2man)}{ $$1};     # correcting help2man comment'               \
+             -E 's{^\.SS\s+"optional\s+arguments:"}{\n.SH OPTIONS\n}; # create OPTIONS section'               \
+          -pi $@
+
+override_dh_builddeb:
+	dh_builddeb -- -Zxz
+
+## http://wiki.debian.org/onlyjob/get-orig-source
+PKD  := $(abspath $(dir $(MAKEFILE_LIST)))
+PKG   = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source))
+VER  ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{Version:\s*([\d\.]+)}')
+DTYPE = +dfsg
+.PHONY: get-orig-source
+get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE))
+	@
+
+$(PKG)_$(VER)$(DTYPE).orig.tar.xz:
+	@echo "# Downloading..."
+	uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD)
+	$(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..))
+	@echo "# Extracting..."
+	mkdir $(PKG)-$(VER) \
+        && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \
+        || $(RM) -r $(PKG)-$(VER)
+	@echo "# Cleaning-up..."
+	cd $(PKG)-$(VER) \
+        && $(RM) -r -v \
+             fpconst.py \
+             SOAPpy \
+             wstools \
+	#$(RM) -v $(PKG)_$(VER).orig.tar.*
+	@echo "# Packing..."
+	find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \
+        | XZ_OPT="-7v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \
+        && $(RM) -r "$(PKG)-$(VER)"
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/source/options b/debian/source/options
new file mode 100644
index 0000000..b7bc1f2
--- /dev/null
+++ b/debian/source/options
@@ -0,0 +1 @@
+compression = "xz"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c4c7de8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,8 @@
+# uscan(1) configuration file.
+version=3
+
+# Use 'debian/rules get-orig-source' command to generate DFSG-repackaged archive.
+
+opts=dversionmangle=s/\+dfsg\d*// \
+ https://github.com/forrestv/p2pool/releases \
+  .*/archive/(\d[\d\.]+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-bitcoin/p2pool.git



More information about the Pkg-bitcoin-commits mailing list