Skip to content

Commit

Permalink
Added publish-bitcoin-whitepaper package
Browse files Browse the repository at this point in the history
This allows the user to publish Bitcoin whitepaper because Craig Wright
is a fraud.
  • Loading branch information
Kixunil committed Jan 21, 2021
1 parent 4bc8aeb commit 228e6b3
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ endif

.DELETE_ON_ERROR:

SOURCES=bitcoin bitcoin-rpc-proxy electrs electrum lnd nbxplorer btcpayserver ridetheln selfhost tor-extras thunderhub btc-rpc-explorer lndconnect lnpbp-testkit selfhost-dashboard remir
SOURCES=bitcoin bitcoin-rpc-proxy electrs electrum lnd nbxplorer btcpayserver ridetheln selfhost tor-extras thunderhub btc-rpc-explorer lndconnect lnpbp-testkit selfhost-dashboard remir bitcoin-whitepaper

include common_vars.mk

Expand Down
Binary file added bitcoin-whitepaper/bitcoin.pdf
Binary file not shown.
4 changes: 4 additions & 0 deletions bitcoin-whitepaper/publish-bitcoin-whitepaper.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
location = /bitcoin.pdf {
root /usr/share/publish-bitcoin-whitepaper;
try_files /bitcoin.pdf =404;
}
10 changes: 10 additions & 0 deletions build_rules/bitcoin-whitepaper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pkg_name_upper: BITCOIN_WHITEPAPER
pkg_name_snake: bitcoin_whitepaper
source_name: bitcoin-whitepaper
build_system: none

copy_assets:
- from: bitcoin-whitepaper/bitcoin.pdf
to: bitcoin.pdf
- from: bitcoin-whitepaper/publish-bitcoin-whitepaper.conf
to: publish-bitcoin-whitepaper.conf
17 changes: 17 additions & 0 deletions pkg_specs/bitcoin-whitepaper.changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
bitcoin-whitepaper (0.1.2-1) buster; urgency=medium

* Make sure to activate nginx trigger

-- Martin Habovstiak <[email protected]> Thu, 21 Jan 2021 20:42:02 +0100

bitcoin-whitepaper (0.1.1-1) buster; urgency=medium

* Added try_files to fix some nginx configurations

-- Martin Habovstiak <[email protected]> Thu, 21 Jan 2021 20:23:43 +0100

bitcoin-whitepaper (0.1.0-1) buster; urgency=medium

* Created package

-- Martin Habovstiak <[email protected]> Thu, 21 Jan 2021 20:00:00 +0100
4 changes: 4 additions & 0 deletions pkg_specs/bitcoin-whitepaper.sss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name = "bitcoin-whitepaper"
section = "net"
build_depends = []
packages = ["publish-bitcoin-whitepaper"]
18 changes: 18 additions & 0 deletions pkg_specs/publish-bitcoin-whitepaper.sps
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name = "publish-bitcoin-whitepaper"
architecture = "all"
extends = "selfhost"
depends_on_extended = true
replaces = false
summary = "Publishes bitcoin whitepaper as /bitcoin.pdf"
add_files = [
"bitcoin.pdf /usr/share/publish-bitcoin-whitepaper",
"publish-bitcoin-whitepaper.conf /usr/share/publish-bitcoin-whitepaper",
]
add_links = ["/usr/share/publish-bitcoin-whitepaper/publish-bitcoin-whitepaper.conf /etc/nginx/selfhost-subsites-enabled/publish-bitcoin-whitepaper.conf"]

# Hack to write postprocess
[config."null"]
format = "plain"

[config."null".postprocess]
command = ["dpkg-trigger", "nginx-reload"]

0 comments on commit 228e6b3

Please sign in to comment.