Merge pull request #144 from wowario/files

update snap and add PKGBUILD
release-v0.5.0
jw 5 years ago committed by GitHub
commit 6c204bba0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,40 @@
# Maintainer: wowario <wowario at protonmail dot com>
# Contributor: wowario <wowario at protonmail dot com>
pkgbase="wownero"
pkgname=('wownero')
pkgver=0.5.0.0
pkgrel=1
pkgdesc="Wownero: a fairly launched privacy-centric meme coin with no premine and a finite supply"
license=('custom:Cryptonote')
arch=('x86_64')
url="http://wownero.org/"
depends=('boost-libs' 'openssl' 'zeromq' 'unbound')
makedepends=('git' 'cmake' 'boost')
provides=('wownero')
source=("${pkgname}"::"git+https://github.com/wownero/wownero")
sha256sums+=('SKIP')
_wownero="${pkgbase}"
_build="build"
build() {
cd "${srcdir}/${_wownero}"
git fetch && git checkout dev-v0.5
CMAKE_FLAGS+=" -DCMAKE_BUILD_TYPE=Release "
CMAKE_FLAGS+=" -DCMAKE_INSTALL_PREFIX=/usr "
mkdir -p $_build && cd $_build
cmake $CMAKE_FLAGS ../
make
}
package_wownero() {
install -Dm644 "${srcdir}/${_wownero}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 "${srcdir}/${_wownero}/utils/conf/wownerod.conf" "${pkgdir}/etc/wownerod.conf"
install -Dm644 "${srcdir}/${_wownero}/utils/systemd/wownerod.service" "${pkgdir}/usr/lib/systemd/system/wownerod.service"
install -Dm755 "${srcdir}/${_wownero}/build/bin/wownerod" "${pkgdir}/usr/bin/wownerod"
install -Dm755 "${srcdir}/${_wownero}/build/bin/wownero-wallet-cli" "${pkgdir}/usr/bin/wownero-wallet-cli"
install -Dm755 "${srcdir}/${_wownero}/build/bin/wownero-wallet-rpc" "${pkgdir}/usr/bin/wownero-wallet-rpc"
}

@ -1,8 +0,0 @@
#!/bin/sh
if [ ! -d "$SNAP_USER_DATA/etc" ]; then
mkdir $SNAP_USER_DATA/etc/
cp -R $SNAP/etc/monerod.conf $SNAP_USER_DATA/etc/monerod.conf
fi
exec "$SNAP/bin/monerod" "$@"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 18 KiB

@ -1,31 +1,29 @@
name: monero name: wownero
version: 0.11.1.0-1 version: 0.5.0.0
summary: "Monero: the secure, private, untraceable cryptocurrency https://getmonero.org" summary: "Wownero: the secure, private, untraceable cryptocurrency http://wownero.org"
description: | description: |
Monero is a private, secure, untraceable, decentralised digital currency. Wownero: a fairly launched privacy-centric meme coin with no premine and a finite supply.
You are your bank, you control your funds, and nobody can trace your transfers
unless you allow them to do so.
grade: devel grade: devel
confinement: strict confinement: strict
apps: apps:
monerod: wownerod:
daemon: forking daemon: forking
command: | command: |
monerod-wrapper --detach --data-dir ${SNAP_COMMON} --config-file ${SNAP_USER_DATA}/etc/monerod.conf wownerod-wrapper --detach --data-dir ${SNAP_COMMON} --config-file ${SNAP_USER_DATA}/etc/wownerod.conf
plugs: plugs:
- network - network
- network-bind - network-bind
monero-wallet-rpc: wownero-wallet-rpc:
command: | command: |
monero-wallet-rpc --log-file ${SNAP_USER_DATA} wownero-wallet-rpc --log-file ${SNAP_USER_DATA}
plugs: plugs:
- home - home
- network - network
- network-bind - network-bind
monero-wallet-cli: wownero-wallet-cli:
command: | command: |
monero-wallet-cli --log-file ${SNAP_USER_DATA} wownero-wallet-cli --log-file ${SNAP_USER_DATA}
plugs: plugs:
- home - home
- network - network
@ -71,8 +69,8 @@ parts:
plugin: dump plugin: dump
source: . source: .
organize: organize:
contrib/snap/monerod.conf: etc/monerod.conf contrib/snap/wownerod.conf: etc/wownerod.conf
contrib/snap/monerod-wrapper: bin/monerod-wrapper contrib/snap/wownerod-wrapper: bin/wownerod-wrapper
prime: prime:
- etc - etc
- bin - bin

@ -0,0 +1,8 @@
#!/bin/sh
if [ ! -d "$SNAP_USER_DATA/etc" ]; then
mkdir $SNAP_USER_DATA/etc/
cp -R $SNAP/etc/wownerod.conf $SNAP_USER_DATA/etc/wownerod.conf
fi
exec "$SNAP/bin/wownerod" "$@"

@ -4,7 +4,7 @@
# See 'monerod --help' for all available options. # See 'monerod --help' for all available options.
# Overridden by snap: # Overridden by snap:
# data-dir=/var/lib/monero # data-dir=/var/lib/wownero
# log-file=/var/log/monero/monero.log # log-file=/var/log/wownero/wownero.log
log-level=0 log-level=0

@ -1,8 +1,8 @@
# Configuration for monerod # Configuration for wownerod
# Syntax: any command line option may be specified as 'clioptionname=value'. # Syntax: any command line option may be specified as 'clioptionname=value'.
# Boolean options such as 'no-igd' are specified as 'no-igd=1'. # Boolean options such as 'no-igd' are specified as 'no-igd=1'.
# See 'monerod --help' for all available options. # See 'monerod --help' for all available options.
data-dir=/var/lib/monero data-dir=/var/lib/wownero
log-file=/var/log/monero/monero.log log-file=/var/log/wownero/wownero.log
log-level=0 log-level=0

@ -1,33 +1,33 @@
[Unit] [Unit]
Description=Monero Full Node Description=Wownero Full Node
After=network.target After=network.target
[Service] [Service]
User=monero User=wownero
Group=monero Group=wownero
WorkingDirectory=~ WorkingDirectory=~
RuntimeDirectory=monero RuntimeDirectory=wownero
# Clearnet config # Clearnet config
# #
Type=forking Type=forking
PIDFile=/run/monero/monerod.pid PIDFile=/run/wownero/wownerod.pid
ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf \ ExecStart=/usr/bin/wownerod --config-file /etc/wownerod.conf \
--detach --pidfile /run/monero/monerod.pid --detach --pidfile /run/wownero/wownerod.pid
# Tor config # Tor config
# #
## We have to use simple, not forking, because we cannot pass --detach ## We have to use simple, not forking, because we cannot pass --detach
## because stderr/stdout is not available when detached, but torsocks ## because stderr/stdout is not available when detached, but torsocks
## attempts to write to it, and fails with 'invalid argument', causing ## attempts to write to it, and fails with 'invalid argument', causing
## monerod to fail. ## wownerod to fail.
#Type=simple #Type=simple
#Environment=DNS_PUBLIC=tcp #Environment=DNS_PUBLIC=tcp
## The following is needed only when accessing wallet from a different ## The following is needed only when accessing wallet from a different
## host in the LAN, VPN, etc, the RPC must bind to 0.0.0.0, but ## host in the LAN, VPN, etc, the RPC must bind to 0.0.0.0, but
## by default torsocks only allows binding to localhost. ## by default torsocks only allows binding to localhost.
#Environment=TORSOCKS_ALLOW_INBOUND=1 #Environment=TORSOCKS_ALLOW_INBOUND=1
#ExecStart=/usr/bin/torsocks /usr/bin/monerod --config-file /etc/monerod.conf \ #ExecStart=/usr/bin/torsocks /usr/bin/wownerod --config-file /etc/wownerod.conf \
# --non-interactive # --non-interactive
Restart=always Restart=always
Loading…
Cancel
Save