1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Notes</title>
<link rel="stylesheet" href="../style.css" type="text/css" />
<link rel="icon" href="data:image/gif;base64,R0lGODlhEAAQAPH/AAAAAP//AAD/AP8AACH/C0NSTkcAAAAAMS4wSAAAAAIwPwAAAAJATwAAAAJQXwAAAAJgbwAAAAJwfwAAAAKAjwAAAAKQnwAAAAKgrwAAAAKwvwAAAALAzwAAAALQ3wAAAALg7wAh+QQF//8EACwAAAAAEAAQAAACOJQFqTp9j5p00IApq8X0rTtBSQCQYIeUZGBmh7qyp8fGpGvV8PyqPt9bJUKiBUYT4SBPRMuH0SgAADs="/>
</head>
<body>
<header><nav>
<a href="../">[Home]</a>
<a href="../blog/">[Blog]</a>
<a href="//git.bvnf.space/">[Git]</a>
<a href="../books/">[Books]</a>
</nav></header>
<h1>Notes</h1>
<p>
<ul>
<li><code>pounce</code> should be signalled with <code>SIGUSR1</code> when you generate new TLS certificates, so that they are reloaded.</li>
<li>building <code>neomutt</code> with unbundled deps:</li>
<p>
cmake.deps/CMakeLists.txt has the URLs and hashes to download.
DESTDIR must not be set for build step because deps are installed to .deps/usr during build, and need to be used from there
</p>
<li>Static Tcl</li>
<p>
For the sake of use in CGI with sqlite3.
Download the Tcl sources:
<pre><code>curl -L https://downloads.sourceforge.net/sourceforge/tcl/tcl8.6.13-src.tar.gz | tar xz
cd tcl*/unix
./configure --disable-shared
make</code></pre>
</p>
<p>
edit <code>#include "tcl.h"</code> to <code><tcl8.6/tcl.h></code>.<br/>
you want tclAppInit.c, libtcl*.a, pkgs/sqlite*/sqlite*.o <- <code>ar -rcs</code> this into an .a<br/>
edit Tcl_AppInit in tclAppInit.c to call Sqlite3_Init and add that function prototype:<br/>
<code>int Sqlite3_Init(Tcl_Interp *interp);</code>
</p>
<p>
compile:
<pre><code>cc -static tclAppInit.c libtcl*.a libsqlite*.a -I/usr/local/include -lz -lm -lpthread</code></pre>
when running, set the env TCL_LIBRARY to the directory containing init.tcl. If this is not loaded, sqlite3 will not be loaded.
</p>
</ul>
</p>
</body>
</html>
|