summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorcimer2016-03-03 23:03:51 +0100
committercimer2016-03-03 23:03:51 +0100
commitade738dfd12a6ecc1cf386b12c1f8cdb84f328be (patch)
treec46abbaf6048adcd945559f485d36a9f792dafe6
parent241c488f192124777036ae665de6625aa7032097 (diff)
downloadaur-ade738dfd12a6ecc1cf386b12c1f8cdb84f328be.tar.gz
fixes, added tor support
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD20
-rw-r--r--peercoin-qt-tor@.service23
-rw-r--r--ppcoind-tor@.service20
4 files changed, 71 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 386355f4ddf..53e4eaffe10 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,23 +1,33 @@
# Generated by mksrcinfo v8
-# Mon Feb 29 20:25:54 UTC 2016
+# Thu Mar 3 22:03:18 UTC 2016
pkgbase = peercoin
pkgdesc = Peercoin wallet client.
pkgver = 0.4.2
- pkgrel = 1
+ pkgrel = 2
url = peercoin.net
arch = x86_64
arch = i686
license = MIT
+ makedepends = boost
+ makedepends = miniupnpc
+ makedepends = openssl
+ depends = boost-libs
+ depends = openssl
+ depends = miniupnpc
source = https://github.com/ppcoin/ppcoin/archive/v0.4.2ppc.tar.gz
source = peercoin-qt.desktop
source = upnp-1.9.patch
source = peercoin-qt@.service
+ source = peercoin-qt-tor@.service
source = ppcoind@.service
+ source = ppcoind-tor@.service
sha256sums = d1217b40f8b9933b4e824eb4a6f9bfefce6e793f3cafdcf32420c9d7b7049125
sha256sums = 6cb18e19847bbf4066920dbbf4371ddf07409392408fc6d079487e8759ea322e
sha256sums = 3060917f8e327002da842534265392a1849239ec5049f25c1ae8a81c3952e7b1
- sha256sums = 28d80670d836c57ffa38729508649afbe05338dc92c89a44c64230a7ebd97eae
- sha256sums = 5123ec91ad8b304f46c53f49b52ffd1e41c66c3df40c23209128ce2761f7c079
+ sha256sums = cdb6a0083497d382eb36a16bcb6e99cde9a613ea3069b4e45b02f04f233f3ea2
+ sha256sums = 3f71859675561dd35c4527d96651b07996968e318dfbf26e8ce959f61a0d682f
+ sha256sums = 6cebc3ad79dc596f5d4e51d10c6ce5d2cb8b848137f78e532efbee23d2410d57
+ sha256sums = 88459c23c17faca43582745591ebc54ed4baac85beb26aadeb3b43363c852d74
pkgname = peercoin-qt
pkgdesc = Official implementation of Peercoin, the sustainable and secure cryptocurrency alternative to Bitcoin - QT wallet.
diff --git a/PKGBUILD b/PKGBUILD
index 91d67de0f71..a08f7c8284d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,10 @@ pkgname=('peercoin-qt' 'ppcoind')
pkgbase=peercoin
_gitname=ppcoin
pkgver=0.4.2
-pkgrel=1
+pkgrel=2
pkgdesc="Peercoin wallet client."
+makedepends=('boost' 'miniupnpc' 'openssl')
+depends=('boost-libs' 'openssl' 'miniupnpc')
arch=('x86_64' 'i686')
url='peercoin.net'
license=('MIT')
@@ -13,12 +15,16 @@ source=(https://github.com/ppcoin/ppcoin/archive/v${pkgver}ppc.tar.gz
peercoin-qt.desktop
upnp-1.9.patch
peercoin-qt@.service
- ppcoind@.service)
+ peercoin-qt-tor@.service
+ ppcoind@.service
+ ppcoind-tor@.service)
sha256sums=('d1217b40f8b9933b4e824eb4a6f9bfefce6e793f3cafdcf32420c9d7b7049125'
'6cb18e19847bbf4066920dbbf4371ddf07409392408fc6d079487e8759ea322e'
'3060917f8e327002da842534265392a1849239ec5049f25c1ae8a81c3952e7b1'
- '28d80670d836c57ffa38729508649afbe05338dc92c89a44c64230a7ebd97eae'
- '5123ec91ad8b304f46c53f49b52ffd1e41c66c3df40c23209128ce2761f7c079')
+ 'cdb6a0083497d382eb36a16bcb6e99cde9a613ea3069b4e45b02f04f233f3ea2'
+ '3f71859675561dd35c4527d96651b07996968e318dfbf26e8ce959f61a0d682f'
+ '6cebc3ad79dc596f5d4e51d10c6ce5d2cb8b848137f78e532efbee23d2410d57'
+ '88459c23c17faca43582745591ebc54ed4baac85beb26aadeb3b43363c852d74')
prepare() {
cd "$srcdir/${_gitname}-${pkgver}ppc"
@@ -43,11 +49,12 @@ package_peercoin-qt() {
pkgdesc="Official implementation of Peercoin, the sustainable and secure cryptocurrency alternative to Bitcoin - QT wallet."
makedepends=('qt4' 'boost' 'gcc' 'make' 'qrencode' 'openssl' 'miniupnpc')
depends=('qt4' 'miniupnpc' 'boost-libs' 'qrencode' 'miniupnpc')
- optdepeds=('systemd')
+ optdepeds=('systemd' 'tor')
install=peercoin.install
install -Dm644 ${pkgname}.desktop "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 peercoin-qt@.service "${pkgdir}/usr/lib/systemd/system/peercoin-qt@.service"
+ install -Dm644 $pkgname-tor@.service "${pkgdir}/usr/lib/systemd/system/pkgname-tor@.service"
cd "$srcdir/${_gitname}-${pkgver}ppc"
install -Dm755 ppcoin-qt "${pkgdir}/usr/bin/peercoin-qt"
@@ -60,10 +67,11 @@ package_ppcoind() {
makedepends=('boost' 'gcc' 'make' 'openssl' 'miniupnpc')
depends=('boost-libs' 'miniupnpc')
- optdepeneds=('systemd')
+ optdepeneds=('systemd' 'tor')
pkgdesc="Official implementation of Peercoin, the sustainable and secure cryptocurrency alternative to Bitcoin - daemon."
install -Dm644 ppcoind@.service "$pkgdir/usr/lib/systemd/system/ppcoind@.service"
+ install -Dm644 $pkgname-tor@.service "$pkgdir/usr/lib/systemd/system/$pkgname-tor@.service"
install -Dm644 "$srcdir/${_gitname}-${pkgver}ppc/COPYING" "$pkgdir/usr/share/licenses/peercoin/COPYING"
cd "$srcdir/${_gitname}-${pkgver}ppc"
diff --git a/peercoin-qt-tor@.service b/peercoin-qt-tor@.service
new file mode 100644
index 00000000000..fef90e9cf55
--- /dev/null
+++ b/peercoin-qt-tor@.service
@@ -0,0 +1,23 @@
+[Unit]
+Description=Ppcoin-qt
+After=network.target
+After=graphical.target
+Requires=tor.service
+
+[Service]
+User=%i
+Group=users
+Type=simple
+Restart=on-failure
+RestartSec=15
+Environment=DISPLAY=:0
+Environment=XAUTHORITY=%h/.Xauthority
+ExecStart=/usr/bin/peercoin-qt -proxy=127.0.0.1:9050
+## security
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+NoNewPrivileges=true
+
+[Install]
+WantedBy=default.target
diff --git a/ppcoind-tor@.service b/ppcoind-tor@.service
new file mode 100644
index 00000000000..405757c69ea
--- /dev/null
+++ b/ppcoind-tor@.service
@@ -0,0 +1,20 @@
+[Unit]
+Description=Ppcoin Daemon
+After=network.target
+Requires=tor.service
+
+[Service]
+User=%i
+Group=users
+Type=simple
+Restart=on-failure
+RestartSec=15
+ExecStart=/usr/bin/ppcoind -proxy=127.0.0.1:9050
+## security
+PrivateTmp=true
+PrivateDevices=true
+ProtectSystem=full
+NoNewPrivileges=true
+
+[Install]
+WantedBy=default.target