diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000..57b9930d2 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,40 @@ +# Maintainer: wowario +# Contributor: wowario + +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" +} diff --git a/contrib/snap/monerod-wrapper b/contrib/snap/monerod-wrapper deleted file mode 100755 index f7266e11c..000000000 --- a/contrib/snap/monerod-wrapper +++ /dev/null @@ -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" "$@" diff --git a/contrib/snap/setup/gui/icon.png b/contrib/snap/setup/gui/icon.png index b7e821270..2107136ab 100644 Binary files a/contrib/snap/setup/gui/icon.png and b/contrib/snap/setup/gui/icon.png differ diff --git a/contrib/snap/snapcraft.yaml b/contrib/snap/snapcraft.yaml index b3b75d278..140118db0 100644 --- a/contrib/snap/snapcraft.yaml +++ b/contrib/snap/snapcraft.yaml @@ -1,31 +1,29 @@ -name: monero -version: 0.11.1.0-1 -summary: "Monero: the secure, private, untraceable cryptocurrency https://getmonero.org" +name: wownero +version: 0.5.0.0 +summary: "Wownero: the secure, private, untraceable cryptocurrency http://wownero.org" description: | - Monero is a private, secure, untraceable, decentralised digital currency. - You are your bank, you control your funds, and nobody can trace your transfers - unless you allow them to do so. + Wownero: a fairly launched privacy-centric meme coin with no premine and a finite supply. grade: devel confinement: strict apps: - monerod: + wownerod: daemon: forking 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: - network - network-bind - monero-wallet-rpc: + wownero-wallet-rpc: command: | - monero-wallet-rpc --log-file ${SNAP_USER_DATA} + wownero-wallet-rpc --log-file ${SNAP_USER_DATA} plugs: - home - network - network-bind - monero-wallet-cli: + wownero-wallet-cli: command: | - monero-wallet-cli --log-file ${SNAP_USER_DATA} + wownero-wallet-cli --log-file ${SNAP_USER_DATA} plugs: - home - network @@ -71,8 +69,8 @@ parts: plugin: dump source: . organize: - contrib/snap/monerod.conf: etc/monerod.conf - contrib/snap/monerod-wrapper: bin/monerod-wrapper + contrib/snap/wownerod.conf: etc/wownerod.conf + contrib/snap/wownerod-wrapper: bin/wownerod-wrapper prime: - etc - bin diff --git a/contrib/snap/wownerod-wrapper b/contrib/snap/wownerod-wrapper new file mode 100755 index 000000000..6cadef1c8 --- /dev/null +++ b/contrib/snap/wownerod-wrapper @@ -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" "$@" diff --git a/contrib/snap/monerod.conf b/contrib/snap/wownerod.conf similarity index 79% rename from contrib/snap/monerod.conf rename to contrib/snap/wownerod.conf index 1078e73b2..b1c1ef197 100644 --- a/contrib/snap/monerod.conf +++ b/contrib/snap/wownerod.conf @@ -4,7 +4,7 @@ # See 'monerod --help' for all available options. # Overridden by snap: -# data-dir=/var/lib/monero -# log-file=/var/log/monero/monero.log +# data-dir=/var/lib/wownero +# log-file=/var/log/wownero/wownero.log log-level=0 diff --git a/utils/conf/monerod.conf b/utils/conf/wownerod.conf similarity index 69% rename from utils/conf/monerod.conf rename to utils/conf/wownerod.conf index d019576c6..2076f649b 100644 --- a/utils/conf/monerod.conf +++ b/utils/conf/wownerod.conf @@ -1,8 +1,8 @@ -# Configuration for monerod +# Configuration for wownerod # Syntax: any command line option may be specified as 'clioptionname=value'. # Boolean options such as 'no-igd' are specified as 'no-igd=1'. # See 'monerod --help' for all available options. -data-dir=/var/lib/monero -log-file=/var/log/monero/monero.log +data-dir=/var/lib/wownero +log-file=/var/log/wownero/wownero.log log-level=0 diff --git a/utils/systemd/monerod.service b/utils/systemd/wownerod.service similarity index 66% rename from utils/systemd/monerod.service rename to utils/systemd/wownerod.service index 5f37e54b2..0e79430ed 100644 --- a/utils/systemd/monerod.service +++ b/utils/systemd/wownerod.service @@ -1,33 +1,33 @@ [Unit] -Description=Monero Full Node +Description=Wownero Full Node After=network.target [Service] -User=monero -Group=monero +User=wownero +Group=wownero WorkingDirectory=~ -RuntimeDirectory=monero +RuntimeDirectory=wownero # Clearnet config # Type=forking -PIDFile=/run/monero/monerod.pid -ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf \ - --detach --pidfile /run/monero/monerod.pid +PIDFile=/run/wownero/wownerod.pid +ExecStart=/usr/bin/wownerod --config-file /etc/wownerod.conf \ + --detach --pidfile /run/wownero/wownerod.pid # Tor config # ## We have to use simple, not forking, because we cannot pass --detach ## because stderr/stdout is not available when detached, but torsocks ## attempts to write to it, and fails with 'invalid argument', causing -## monerod to fail. +## wownerod to fail. #Type=simple #Environment=DNS_PUBLIC=tcp ## 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 ## by default torsocks only allows binding to localhost. #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 Restart=always