commit 2b1335e

grunfink  ·  2026-09-06 04:05:18 +0000 UTC
parent d2d6efe
Added information to README.md about building and installing on Illumos (contributed by aleteoryx).
1 files changed,  +58, -8
+58, -8
 1@@ -31,35 +31,85 @@ This is not the manual; man pages `snac(1)` (user manual), `snac(5)` (formats) a
 2 
 3 This program is written in highly portable C. It uses the `__attribute__((__cleanup__))` GNU extension, that is supported at least by the `gcc`, `clang` and `tcc` C compilers. The only external dependencies are `openssl` and `curl`.
 4 
 5-On Debian/Ubuntu, you can satisfy these requirements by running
 6+The source code is available [here](https://comam.es/what-is-snac). Here are some detailed descriptions on how to build and install snac in a set of operating systems:
 7+
 8+### Debian/Ubuntu
 9+
10+Requirements:
11 
12 ```sh
13-apt install libssl-dev libcurl4-openssl-dev
14+apt install libssl-dev libcurl4-openssl-dev # as root
15 ```
16 
17-On OpenBSD you just need to install `curl`:
18+Build and install:
19+
20+```
21+make
22+make install # as root
23+```
24+
25+### OpenBSD
26+
27+Requirements:
28 
29 ```sh
30 pkg_add curl
31 ```
32 
33-On FreeBSD, to install `curl` just type:
34+Build and install:
35+
36+```
37+make
38+make install # as root
39+```
40+
41+### FreeBSD
42+
43+Requirements:
44 
45 ```sh
46 pkg install curl
47 ```
48 
49-On NetBSD, to install `curl` just type:
50+Build and install:
51+
52+```
53+make
54+make install # as root
55+```
56+
57+### NetBSD
58+
59+Requirements:
60 
61 ```sh
62 pkgin install curl
63 ```
64 
65-The source code is available [here](https://comam.es/what-is-snac).
66+Build and install:
67+
68+```
69+make -f Makefile.NetBSD
70+make -f Makefile.NetBSD install # as root
71+```
72+
73+### Illumos / OpenIndiana (2026.04)
74 
75-Run `make` and then `make install` as root. 
76+Requirements:
77+
78+```sh
79+sudo pkg install openssl-3
80+sudo pkg set-mediator -V 3 openssl
81+```
82+
83+Build and install:
84+
85+```sh
86+make CC=gcc LDFLAGS=-lsocket
87+sudo make install-illumos
88+```
89 
90-If you're compiling on NetBSD, you should use the specific provided Makefile and run `make -f Makefile.NetBSD` and then `make -f Makefile.NetBSD install` as root.
91+### Conditional compilation
92 
93 From version 2.27, `snac` includes support for the Mastodon API; if you are not interested on it, you can compile it out by running
94