コミットを比較
2 コミット
1e0c0617f5
...
141779bbd8
作成者 | SHA1 | 日付 |
---|---|---|
Al Pou | 141779bbd8 | |
Al Pou | 0cfb4014d1 |
28
README.md
28
README.md
|
@ -12,6 +12,11 @@ on.
|
|||
versions are usually old, and older versions don't always run reliably when
|
||||
interacting with newer versions on the I2P network.
|
||||
|
||||
More recent versions can be installed using the ports tree, but doing so is
|
||||
pretty unpleasant, from my experience: CVS has to be used, but it's slow and
|
||||
unintuitive; also X11 has to be installed in order to be able to build ports,
|
||||
which makes no sense on a headless server... \<\/rant\>
|
||||
|
||||
Fortunately, compiling the latest version from source on OpenBSD is painless.
|
||||
LibreSSL is supported, the official instructions work out of the box, and only a
|
||||
small manual intervention is required to make the daemon start at system boot.
|
||||
|
@ -38,16 +43,22 @@ needed as it does not come with OpenBSD's base system:
|
|||
|
||||
$ doas pkg_add boost cmake git
|
||||
|
||||
Next, clone their git repository:
|
||||
Next, clone their git repository if it was not already cloned before:
|
||||
|
||||
$ cd /a/folder/of/your/choice/where/to/clone/the/repo
|
||||
$ cd /some/directory
|
||||
$ git clone https://github.com/PurpleI2P/i2pd.git
|
||||
$ cd i2pd
|
||||
|
||||
Or if the repository was already cloned before and you want to update it:
|
||||
|
||||
$ cd /some/directory/i2pd
|
||||
$ git pull
|
||||
|
||||
Then, generate the makefile and compile the source. You can also
|
||||
[pass options to cmake](https://i2pd.readthedocs.io/en/latest/devs/building/unix/#cmake-options)
|
||||
to customize your makefile:
|
||||
|
||||
$ cd i2pd/build
|
||||
$ cd build
|
||||
$ cmake .
|
||||
$ make
|
||||
|
||||
|
@ -93,17 +104,22 @@ version and creates the file automatically if the version is 7.1 or newer.
|
|||
This new login class will be used by the user `_i2pd` created in the following
|
||||
steps.
|
||||
|
||||
Next, clone this git repository:
|
||||
Next, clone this git repository if it wasn't cloned before:
|
||||
|
||||
$ cd /a/folder/of/your/choice/where/to/clone/the/repo
|
||||
$ cd /any/directory
|
||||
$ git clone https://gitlab.com/alpou/i2pd-rc-openbsd.git
|
||||
$ cd i2pd-rc-openbsd
|
||||
|
||||
Or if the repository was already cloned before and you want to update it:
|
||||
|
||||
$ cd /any/directory/i2pd-rc-openbsd
|
||||
$ git pull
|
||||
|
||||
Then, simply run the makefile. This will create a dedicated user and group to run
|
||||
I2Pd, both called `_i2pd`, and give them ownership of the binaries compiled
|
||||
previously. The login class described above will also be created if you are using
|
||||
OpenBSD 7.1 or newer, and the init script will be copied in `/etc/rc.d`.
|
||||
|
||||
$ cd i2pd-rc-openbsd
|
||||
$ doas make install
|
||||
|
||||
The final step is to enable the service to make it start at boot time and then to
|
||||
|
|
読み込み中…
新しいイシューから参照