Переглянути джерело

remove irrelevant ircd scripts

dasman 2 роки тому
батько
коміт
2bdb1b8cf9

+ 0 - 1
contrib/init/ircd.confd

@@ -1 +0,0 @@
-USER="ircd"

+ 0 - 37
contrib/init/ircd.initd

@@ -1,37 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2023 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
-	use net
-}
-
-start() {
-	PWHOME="$(getent passwd $USER | awk -F: '{ print $6 }')"
-
-	ebegin "Starting ircd"
-	env TERM="xterm" \
-		start-stop-daemon \
-			--start \
-			--make-pidfile \
-			--pidfile /var/run/ircd.pid \
-			--background \
-			--user $USER \
-			--env HOME="${PWHOME:-/home/$USER}" \
-			--name ircd \
-            --exec /usr/bin/screen -- \
-				    -L -Logfile /home/ircd/screenlog.0 \
-				    -d -m -S ircd /usr/local/bin/ircd
-	eend $?
-}
-
-stop() {
-	ebegin "Stopping ircd"
-	# Because we've daemonized with screen, we need to replace the PID file
-	# with the real PID of the program
-	pgrep -P $(cat /var/run/ircd.pid) > /var/run/ircd.pid
-
-	start-stop-daemon --stop --signal 15 \
-		--pidfile /var/run/ircd.pid
-	eend $?
-}

+ 0 - 38
contrib/localnet/ircd-nym-two-nodes/README.md

@@ -1,38 +0,0 @@
-
-## Prerequisites
-Download `nym-network-requester` and `nym-socks5-client` binaries 
-from: https://github.com/nymtech/nym/releases
-(version 1.1.10 was tested)
-
-## initializing and run nym bins:
-- ### network requester:
-```
-# --gateway is optional
-# gateway address is an already existing one
-# if omitted, gateway will be randomly chosen based on some factors
-% ./nym-network-requester init --id nettestnode --gateway 2BuMSfMW3zpeAjKXyKLhmY4QW1DXurrtSPEJ6CjX3SEh
-% ./nym-network-requester run --id nettestnode
-```
-take note of the address in the log, will be something like this:
-
-> \> The address of this client is: 4owvZtatuzYJkJFmG6xyAxCg7ic7aZiJfBnReb6SbEtf.3F5DS1p1UP9Y6H7AGNnRAeTqXU81dQVj8BTDeVNLZWsp@2BuMSfMW3zpeAjKXyKLhmY4QW1DXurrtSPEJ6CjX3SEh
-
-alternatively you can check the config file:
-`~/.nym/service-providers/network-requester/nettestnode/config/config.toml`
-
-- ### client:
-```
-# --provider is required
-% ./nym-socks5-client init --id sockstest --provider 4owvZtatuzYJkJFmG6xyAxCg7ic7aZiJfBnReb6SbEtf.3F5DS1p1UP9Y6H7AGNnRAeTqXU81dQVj8BTDeVNLZWsp@2BuMSfMW3zpeAjKXyKLhmY4QW1DXurrtSPEJ6CjX3SEh
-% ./nym-socks5-client run --id sockstest
-```
-
-after `nym-network-requester` initialization you can add '`127.0.0.1`' or '`localhost`'
-to `~/.nym/service-providers/network-requester/allowed.list`
-
-adding a new domain/address to `allowed.list` while `nym-network-requester` is running
-will require you to restart it.
-
-
-now you can run tmux_session.sh
-

+ 0 - 24
contrib/localnet/ircd-nym-two-nodes/node1.toml

@@ -1,24 +0,0 @@
-## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:8890"
-
-## IRC listen URL
-irc_listen="tcp://127.0.0.1:22022"
-
-## List of channels to autojoin for new client connections
-autojoin = ["#dev"]
-
-## P2P net settings
-[net]
-## Connection slots
-outbound_connections=0
-
-inbound = ["nym://127.0.0.1:25552"]
-
-external_addr = ["nym://127.0.0.1:25552"]
-
-# peers = ["nym://127.0.0.1:25553"]
-
-## Seed nodes to connect to 
-# seeds = ["nym://127.0.0.1:25551"]
-
-outbound_transports = ["nym"]

+ 0 - 24
contrib/localnet/ircd-nym-two-nodes/node2.toml

@@ -1,24 +0,0 @@
-## JSON-RPC listen URL
-rpc_listen="tcp://127.0.0.1:8891"
-
-## IRC listen URL
-irc_listen="tcp://127.0.0.1:22023"
-
-## List of channels to autojoin for new client connections
-autojoin = ["#dev"]
-
-## P2P net settings
-[net]
-## Connection slots
-outbound_connections=0
-
-inbound = ["nym://127.0.0.1:25553"]
-
-external_addr = ["nym://127.0.0.1:25553"]
-
-peers = ["nym://127.0.0.1:25552"]
-
-## Seed nodes to connect to 
-# seeds = ["nym://127.0.0.1:25551"]
-
-outbound_transports = ["nym"]

+ 0 - 17
contrib/localnet/ircd-nym-two-nodes/tmux_session.sh

@@ -1,17 +0,0 @@
-#!/bin/sh
-# Start a tmux session of five ircd nodes, and optionally 5 weechat clients.
-set -e
-
-tmux new-session -s "ircd" -n "ircd" -d
-tmux send-keys "../../../ircd --config node1.toml" Enter && sleep 1
-tmux split-window -h
-tmux send-keys "../../../ircd --config node2.toml" Enter && sleep 1
-
-if [ -z "$1" ]; then
-	tmux new-window -t "ircd:1" -n "weechat"
-	tmux send-keys "weechat -t -r '/server add node1 127.0.0.1/22022;/connect node1'" Enter
-	tmux split-window -v
-	tmux send-keys "weechat -t -r '/server add node2 127.0.0.1/22023;/connect node2'" Enter
-fi
-
-tmux attach

+ 0 - 2
contrib/runit-init/ircd/log/run

@@ -1,2 +0,0 @@
-#!/bin/sh
-exec vlogger -t ircd -p daemon

+ 0 - 4
contrib/runit-init/ircd/run

@@ -1,4 +0,0 @@
-#!/bin/sh
-ping -c 1 -W 1 9.9.9.9 > /dev/null 2>&1 || exit
-exec ircd 2>&1
-