summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Nordberg <linus@sunet.se>2019-07-02 21:32:30 +0200
committerLinus Nordberg <linus@sunet.se>2019-07-02 21:32:30 +0200
commit54372226dae9ce9ae804696cbbfe3ab2c7bcccd8 (patch)
tree1f14e83566d6953565393467d78ae8d00f33386b
parent5cd8b97d0ec2b0836dd77b9ac28a8632ed35fc57 (diff)
update README with more build instructions
-rw-r--r--p11p-daemon/README.md41
1 files changed, 31 insertions, 10 deletions
diff --git a/p11p-daemon/README.md b/p11p-daemon/README.md
index a5e4cea..1fb9c6a 100644
--- a/p11p-daemon/README.md
+++ b/p11p-daemon/README.md
@@ -4,14 +4,34 @@
### p11-kit
- $ git clone https://github.com/p11-glue/p11-kit && cd p11-kit
- $ sh autogen.sh && ./configure
- $ make
- $ sudo make install
+ $ sudo apt install pkg-config libffi-dev
+ $ curl -LO https://github.com/p11-glue/p11-kit/releases/download/0.23.16.1/p11-kit-0.23.16.1.tar.gz
+ $ curl -LO https://github.com/p11-glue/p11-kit/releases/download/0.23.16.1/p11-kit-0.23.16.1.tar.gz.sig
+ $ gpg --verify p11-kit-0.23.16.1.tar.gz.sig
+ $ tar xf p11-kit-0.23.16.1.tar.gz && cd p11-kit
+ $ ./configure --without-libtasn1
+ $ make all check
+ $ sudo make install
-Tested with commit 787888e1 (2019-06-19).
+### Erlang/OTP 19
-## Compile
+Ideally, your OS distribution has Elrang/OTP 19.x:
+
+ $ sudo apt install erlang
+
+An alternative -- which hurts because how would you verify kerl --
+would be:
+
+ $ curl -LO https://raw.githubusercontent.com/kerl/kerl/master/kerl
+ $ : pray that you got the right bits!
+ $ chmod +x kerl
+ $ sudo apt install libncurses5-dev
+ $ ./kerl build 19.2
+ $ mkdir ~/kerl
+ $ ./kerl install 19.2 ~/kerl/19.2
+ $ . ~/kerl/19.2/activate
+
+## Compile p11p-daemon
If you don't have rebar3 installed, install it. See
https://www.rebar3.org/docs/ .
@@ -22,6 +42,7 @@ If you don't have rebar3 in PATH, add it. Example:
Compile:
+ $ cd p11p-daemon
$ make
## Configure
@@ -34,14 +55,14 @@ To start an Erlang shell running the p11p application:
$ make shell
-Quite by typing in "q()." in the shell.
+Quit by typing in "q()." in the shell.
-To start a "release", running in the background logging to files under
-_build/default/rel/p11p/log:
+To start a "release", running in the background and logging to files
+under _build/default/rel/p11p/log:
$ make start
-To stop it again:
+To stop it:
$ make stop