blueness 15/01/08 22:44:46
Added: i2pd.initd 99i2pd i2pd.1 i2pd.service i2pd.conf
i2pd.logrotate i2pd.confd
Log:
Initial commit to gentoo tree, copied from klondike's overlay
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key
0xF52D4BBA)
Revision Changes Path
1.1 net-misc/i2pd/files/i2pd.initd
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.initd?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.initd?rev=1.1&content-type=text/plain
Index: i2pd.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/i2pd/files/i2pd.initd,v 1.1
2015/01/08 22:44:46 blueness Exp $
description="C++ daemon for accessing the I2P network"
depend() {
use dns logger netmount
}
start() {
ebegin "Starting ${SVCNAME}"
checkpath -f "${I2PD_LOG}" -o "${I2PD_USER}:${I2PD_GROUP}"
checkpath -f "${I2PD_PID}" -o "${I2PD_USER}:${I2PD_GROUP}"
start-stop-daemon -S -b -u "${I2PD_USER}:${I2PD_GROUP}" /usr/bin/i2pd
-- ${I2PDOPTIONS}
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon -K -p "${I2PD_PID}"
eend $?
}
1.1 net-misc/i2pd/files/99i2pd
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/99i2pd?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/99i2pd?rev=1.1&content-type=text/plain
Index: 99i2pd
===================================================================
CONFIG_PROTECT="/var/lib/i2pd/certificates"
1.1 net-misc/i2pd/files/i2pd.1
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.1?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.1?rev=1.1&content-type=text/plain
Index: i2pd.1
===================================================================
.TH I2PD "1" "November 29, 2014"
.SH NAME
i2pd \- Load-balanced unspoofable packet switching network
.SH SYNOPSIS
.B i2pd
[\fIOPTION1\fR) [\fIOPTION2\fR]...
.SH DESCRIPTION
i2pd
is a C++ implementation of the router for the I2P anonymizing network, offering
a simple layer that identity-sensitive applications can use to securely
communicate. All data is wrapped with several layers of encryption, and the
network is both distributed and dynamic, with no trusted parties.
.PP
Any of the configuration options below can be used in the \fI2PDOPTIONS\fR
variable in \fI/etc/conf.d/i2pd\fR.
.BR
.TP
\fB\-\-host=\fR
The external IP
.TP
\fB\-\-port=\fR
The external port to listen on
.TP
\fB\-\-httpport=\fR
The HTTP port to listen on
.TP
\fB\-\-log=\fR[\fI1\fR|\fI0\fR]
.br
Enable of disable logging to a file. \fI1\fR for yes, \fI0\fR for no. (default:
\fI0\fR, off)
.TP
\fB\-\-daemon=\fR[\fI1\fR|\fI0\fR]
Enable or disable daemon mode. Daemon mode is enabled with \fI1\fR and
disabled with \fI0\fR. (default: \fI0\fR, off)
.TP
\fB\-\-service=\fR[\fI1\fR|\fI0\fR]
If enabled, system folders (\fB/var/run/i2pd.pid\fR, \fB/var/log/i2pd.log\fR,
\fB/var/lib/i2pd\fR) will be used. If off, \fB$HOME/.i2pd\fR will be used
instead. (default: \fI0\fR, off).
.TP
\fB\-\-unreachable=\fR[\fI1\fR|\fI0\fR]
\fI1\fR if router is declared as unreachable and works through introducers.
(default: \fI0\fR, off)
.TP
\fB\-\-v6=\fR[\fI1\fR|\fI0\fR]
\fI1\fR if \fBi2pd\fR should communicate via IPv6. (default: \fI0\fR, off)
.TP
\fB\-\-httpproxyport=\fR
The local port for the HTTP Proxy to listen on (default: \fI4446\fR)
.TP
\fB\-\-socksproxyport=\fR
The local port for the SOCKS proxy to listen on (default: \fI4447\fR)
.TP
\fB\-\-ircport=\fR
The local port of IRC tunnel to listen on. (default: \fI6668\fR)
.TP
\fB\-\-ircdest=\fR
I2P destination address of an IRC server to connect to, e.g.
\fIirc.postman.i2p\fR
.TP
\fB\-\-irckeys=\fR
optional keys file for local destination
.TP
\fB\-\-eepkeys=\fR
File name containing destination keys. For example \fIprivKeys.dat\fR
.TP
\fB\-\-eephost=\fR
Address incoming trafic is forwarded to, \fI127.0.0.1\fR by default
.TP
\fB\-\-eepport=\fR
Port incoming trafic forward to. \fI80\fR by default
.TP
\fB\-\-samport=\fR
Port of SAM bridge. Usually \fI7656\fR. SAM will not be enabled if this is not
set. (default: unset)
.TP
\fB\-\-bobport=\fR
Port of BOB command channel. Usually \fI2827\fR. BOB will not be enabled if
this is not set. (default: unset)
.SH FILES
.PP
/etc/conf.d/i2pd
.RS 4
i2pd service configuration file
.RE
.PP
/etc/i2pd.conf
.RS 4
i2pd configuration file (when running as a system service). You may override
the parameters here.
.RE
.PP
/var/lib/i2pd/
.RS 4
i2pd profile directory (when running as a system service, see
\fB\-\-service=\fR above)
.RE
.PP
$HOME/.i2pd
.RS 4
i2pd profile directory (when running as a normal user)
.SH AUTHOR
This manual page was written by kytv <[email protected]> for the Debian
system (but may be used by others). And adapted by Francisco Blas Izquierdo
Riera (klondike) <[email protected]> to Gentoo.
.BR
Permission is granted to copy, distribute and/or modify this document under the
terms of the GNU General Public License, Version 2 or any later version
published by the Free Software Foundation
.BR
On Gentoo systems, the complete text of the GNU General Public License Version
2 can be found in /usr/portage/licenses/GPL-2
1.1 net-misc/i2pd/files/i2pd.service
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.service?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.service?rev=1.1&content-type=text/plain
Index: i2pd.service
===================================================================
[Unit]
Description=C++ daemon for accessing the I2P network
After=network.target
[Service]
Type=forking
Restart=on-abnormal
PIDFile=/var/run/i2pd.pid
User=i2pd
Group=i2pd
PermissionsStartOnly=yes
ExecStartPre=/bin/touch /var/run/i2pd.pid /var/log/i2pd.log
ExecStartPre=/bin/chown i2pd:i2pd /run/i2pd.pid /var/log/i2pd.log
ExecStart=/usr/lib/i2pd/i2p --conf=/etc/i2pd.conf
[Install]
WantedBy=multi-user.target
1.1 net-misc/i2pd/files/i2pd.conf
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.conf?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.conf?rev=1.1&content-type=text/plain
Index: i2pd.conf
===================================================================
log = 1
daemon = 1
service = 1
1.1 net-misc/i2pd/files/i2pd.logrotate
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.logrotate?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.logrotate?rev=1.1&content-type=text/plain
Index: i2pd.logrotate
===================================================================
/var/log/i2pd.log {
rotate 4
weekly
missingok
notifempty
compress
delaycompress
copytruncate
create 640 i2pd i2pd
postrotate
/etc/init.d/i2pd restart >/dev/null
endscript
}
1.1 net-misc/i2pd/files/i2pd.confd
file :
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.confd?rev=1.1&view=markup
plain:
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/i2pd/files/i2pd.confd?rev=1.1&content-type=text/plain
Index: i2pd.confd
===================================================================
I2PD_USER="${I2PD_USER:-i2pd}"
I2PD_GROUP="${I2PD_GROUP:-i2pd}"
I2PD_LOG="/var/log/i2pd.log"
I2PD_PID="/var/run/i2pd.pid"
# Options to i2pd
I2PDOPTIONS="--conf=/etc/i2pd.conf"