From 141779bbd8fcadfd1c0a3989705cb66b6204286d Mon Sep 17 00:00:00 2001 From: Al Pou Date: Wed, 6 Sep 2023 20:13:31 -0400 Subject: [PATCH] Add instructions with git pull to update repo that was already cloned --- README.md | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8b5a2f0..918479f 100644 --- a/README.md +++ b/README.md @@ -43,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 @@ -98,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