mirror of https://github.com/oxen-io/oxen-core.git
Clean up unused/unmaintained contrib and utils
Everything removed here is unsupported and doesn't work (leftover stuff from Monero).
This commit is contained in:
parent
d524d560c7
commit
f3325f9ec8
|
@ -1,6 +1,8 @@
|
||||||
.DS_Store
|
.DS_Store
|
||||||
/doc
|
/doc
|
||||||
/build*
|
/build*
|
||||||
|
/compile_commands.json
|
||||||
|
/.cache
|
||||||
/tags
|
/tags
|
||||||
log/
|
log/
|
||||||
|
|
||||||
|
|
|
@ -1,49 +0,0 @@
|
||||||
variables:
|
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
|
||||||
GIT_STRATEGY: fetch
|
|
||||||
GIT_DEPTH: "1"
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- build
|
|
||||||
- test
|
|
||||||
|
|
||||||
build:windows:
|
|
||||||
tags:
|
|
||||||
- windows
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- export USE_SINGLE_BUILDDIR=1
|
|
||||||
- cat /proc/version
|
|
||||||
- make release-static-win64
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "build/release/bin"
|
|
||||||
|
|
||||||
build:osx:
|
|
||||||
tags:
|
|
||||||
- osx
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- sw_vers
|
|
||||||
- export USE_SINGLE_BUILDDIR=1
|
|
||||||
- source ~/Builds/loki_env.sh
|
|
||||||
- make -j4 release-static-mac-x86_64
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "build/release/bin"
|
|
||||||
|
|
||||||
build:linux:
|
|
||||||
image: registry.gitlab.com/lokiproject/loki:latest
|
|
||||||
tags:
|
|
||||||
- ubuntu
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- export USE_SINGLE_BUILDDIR=1
|
|
||||||
# print our runner distro
|
|
||||||
- cat /proc/version
|
|
||||||
# print the current commit hash
|
|
||||||
- echo $CI_COMMIT_SHA
|
|
||||||
- make -j$THREAD_COUNT release-static
|
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- "build/release/bin"
|
|
|
@ -1,18 +0,0 @@
|
||||||
version: '1.0'
|
|
||||||
steps:
|
|
||||||
init_submodules:
|
|
||||||
title: Init Submodules
|
|
||||||
commands:
|
|
||||||
- git submodule update --init --recursive
|
|
||||||
image: codefreshio/git-image:latest
|
|
||||||
working_directory: ${{main_clone}}
|
|
||||||
|
|
||||||
BuildingDockerImage:
|
|
||||||
title: Building Docker Image
|
|
||||||
type: build
|
|
||||||
image_name: monero
|
|
||||||
working_directory: ./
|
|
||||||
tag: '${{CF_BRANCH_TAG_NORMALIZED}}'
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
build_arguments:
|
|
||||||
- NPROC=1
|
|
|
@ -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" "$@"
|
|
|
@ -1,10 +0,0 @@
|
||||||
# Configuration for monerod
|
|
||||||
# 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.
|
|
||||||
|
|
||||||
# Overridden by snap:
|
|
||||||
# data-dir=/var/lib/monero
|
|
||||||
# log-file=/var/log/monero/monero.log
|
|
||||||
|
|
||||||
log-level=0
|
|
Binary file not shown.
Before Width: | Height: | Size: 1.5 KiB |
|
@ -1,78 +0,0 @@
|
||||||
name: monero
|
|
||||||
version: 0.11.1.0-1
|
|
||||||
summary: "Monero: the secure, private, untraceable cryptocurrency https://getmonero.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.
|
|
||||||
grade: devel
|
|
||||||
confinement: strict
|
|
||||||
|
|
||||||
apps:
|
|
||||||
monerod:
|
|
||||||
daemon: forking
|
|
||||||
command: |
|
|
||||||
monerod-wrapper --detach --data-dir ${SNAP_COMMON} --config-file ${SNAP_USER_DATA}/etc/monerod.conf
|
|
||||||
plugs:
|
|
||||||
- network
|
|
||||||
- network-bind
|
|
||||||
monero-wallet-rpc:
|
|
||||||
command: |
|
|
||||||
monero-wallet-rpc --log-file ${SNAP_USER_DATA}
|
|
||||||
plugs:
|
|
||||||
- home
|
|
||||||
- network
|
|
||||||
- network-bind
|
|
||||||
monero-wallet-cli:
|
|
||||||
command: |
|
|
||||||
monero-wallet-cli --log-file ${SNAP_USER_DATA}
|
|
||||||
plugs:
|
|
||||||
- home
|
|
||||||
- network
|
|
||||||
|
|
||||||
parts:
|
|
||||||
cmake-build:
|
|
||||||
plugin: cmake
|
|
||||||
configflags:
|
|
||||||
- -DBDB_STATIC=1
|
|
||||||
- -DBoost_USE_STATIC_LIBS=1
|
|
||||||
- -DBoost_USE_STATIC_RUNTIME=1
|
|
||||||
- -DARCH=default
|
|
||||||
source: .
|
|
||||||
build-packages:
|
|
||||||
- gcc
|
|
||||||
- pkg-config
|
|
||||||
- libunbound-dev
|
|
||||||
- libevent-dev
|
|
||||||
- libboost-all-dev
|
|
||||||
- libzmqpp-dev
|
|
||||||
- libzmq3-dev
|
|
||||||
- libsodium-dev
|
|
||||||
- libdb-dev
|
|
||||||
- libunwind-dev
|
|
||||||
- libminiupnpc-dev
|
|
||||||
- libldns-dev
|
|
||||||
- libexpat1-dev
|
|
||||||
- libreadline6-dev
|
|
||||||
- bison
|
|
||||||
- doxygen
|
|
||||||
- graphviz
|
|
||||||
stage-packages:
|
|
||||||
- libminiupnpc10
|
|
||||||
- libunbound2
|
|
||||||
- libunwind8
|
|
||||||
prime:
|
|
||||||
- bin
|
|
||||||
- usr/lib/
|
|
||||||
- -usr/lib/gcc
|
|
||||||
- -usr/share
|
|
||||||
|
|
||||||
dist-files:
|
|
||||||
plugin: dump
|
|
||||||
source: .
|
|
||||||
organize:
|
|
||||||
contrib/snap/monerod.conf: etc/monerod.conf
|
|
||||||
contrib/snap/monerod-wrapper: bin/monerod-wrapper
|
|
||||||
prime:
|
|
||||||
- etc
|
|
||||||
- bin
|
|
|
@ -1,4 +0,0 @@
|
||||||
set -ex && mkdir -p build/release/bin
|
|
||||||
set -ex && docker create --name loki-daemon-container loki-daemon-image
|
|
||||||
set -ex && docker cp loki-daemon-container:/usr/local/bin/ build/release/
|
|
||||||
set -ex && docker rm loki-daemon-container
|
|
|
@ -1,42 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
TOKEN=$(<$HOME/.gitlab)
|
|
||||||
|
|
||||||
if [ -z "$TOKEN" ]
|
|
||||||
then
|
|
||||||
echo Please add a gitlab private access api token to $HOME/.gitlab
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
pipeline=$1
|
|
||||||
version=$2
|
|
||||||
|
|
||||||
if [ -z "$version" -o -z "$pipeline" ]
|
|
||||||
then
|
|
||||||
echo "Usage: $0 <pipeline id> <version>"
|
|
||||||
exit
|
|
||||||
fi
|
|
||||||
|
|
||||||
WORKING_DIR=loki-$version
|
|
||||||
|
|
||||||
echo "Working in $WORKING_DIR..."
|
|
||||||
|
|
||||||
mkdir -p $WORKING_DIR
|
|
||||||
cd $WORKING_DIR
|
|
||||||
|
|
||||||
curl --header 'PRIVATE-TOKEN: '"$TOKEN" "https://gitlab.com/api/v4/projects/7515512/jobs" |
|
|
||||||
sed 's/},{/\n/g' |
|
|
||||||
grep $pipeline |
|
|
||||||
sed 's/.*"id":\([0-9]*\).*name":"build:\([^"]*\)".*/\1 \2/g' |
|
|
||||||
while read line
|
|
||||||
do
|
|
||||||
id=$(echo $line | cut -d' ' -f1)
|
|
||||||
build=$(echo $line | cut -d' ' -f2)
|
|
||||||
curl -L --header 'PRIVATE-TOKEN: '"$TOKEN" "https://gitlab.com/lokiproject/loki/-/jobs/$id/artifacts/download" -o artifacts-$build.zip
|
|
||||||
unzip artifacts-$build.zip
|
|
||||||
mv build/release/bin loki-$build-x64-$version
|
|
||||||
zip -r loki-$build-x64-$version.zip loki-$build-x64-$version
|
|
||||||
done
|
|
||||||
|
|
||||||
echo '#### sha256sum'
|
|
||||||
sha256sum loki-*-x64-$version.zip
|
|
|
@ -1,45 +0,0 @@
|
||||||
:: Copyright (c) 2014-2018, The Monero Project
|
|
||||||
::
|
|
||||||
:: All rights reserved.
|
|
||||||
::
|
|
||||||
:: 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.
|
|
||||||
::
|
|
||||||
:: 3. Neither the name of the copyright holder 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 COPYRIGHT HOLDER 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.
|
|
||||||
|
|
||||||
:: Set the following variables according to your environment
|
|
||||||
set BuildProcessorArchitecture=64
|
|
||||||
set LocationDependencyBoostRoot=D:\Development\boost_1_55_0
|
|
||||||
set LocationEnvironmentVariableSetterMsbuild=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat
|
|
||||||
|
|
||||||
call "%LocationEnvironmentVariableSetterMsbuild%"
|
|
||||||
set LocationDependencyBoostLibrary=%LocationDependencyBoostRoot%\lib%BuildProcessorArchitecture%-msvc-%VisualStudioVersion%
|
|
||||||
|
|
||||||
cd ..\..
|
|
||||||
set LocationBuildSource=%CD%
|
|
||||||
mkdir build\win%BuildProcessorArchitecture%
|
|
||||||
cd build\win%BuildProcessorArchitecture%
|
|
||||||
|
|
||||||
cmake -G "Visual Studio %VisualStudioVersion:.0=% Win%BuildProcessorArchitecture%" -DBOOST_ROOT="%LocationDependencyBoostRoot%" -DBOOST_LIBRARYDIR="%LocationDependencyBoostLibrary%" "%LocationBuildSource%"
|
|
||||||
msbuild Project.sln /p:Configuration=Release
|
|
||||||
|
|
||||||
pause
|
|
|
@ -1,8 +0,0 @@
|
||||||
# Configuration for monerod
|
|
||||||
# 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
|
|
||||||
log-level=0
|
|
|
@ -1,36 +0,0 @@
|
||||||
[Unit]
|
|
||||||
Description=Monero Full Node
|
|
||||||
After=network.target
|
|
||||||
|
|
||||||
[Service]
|
|
||||||
User=monero
|
|
||||||
Group=monero
|
|
||||||
WorkingDirectory=~
|
|
||||||
RuntimeDirectory=monero
|
|
||||||
|
|
||||||
# Clearnet config
|
|
||||||
#
|
|
||||||
Type=forking
|
|
||||||
PIDFile=/run/monero/monerod.pid
|
|
||||||
ExecStart=/usr/bin/monerod --config-file /etc/monerod.conf \
|
|
||||||
--detach --pidfile /run/monero/monerod.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.
|
|
||||||
#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 \
|
|
||||||
# --non-interactive
|
|
||||||
|
|
||||||
Restart=always
|
|
||||||
|
|
||||||
[Install]
|
|
||||||
WantedBy=multi-user.target
|
|
Loading…
Reference in New Issue