Giacomo Tesio
|
b6107c8777
|
Makefile: enable static compilation with musl
Assuming a Debian GNU/Linux system with wget, tar, git, make
and musl-gcc
```
mkdir build
cd build
export BUILD_TARGET=$PWD
export CC="musl-gcc"
echo download and build zlib
wget http://zlib.net/current/zlib.tar.gz
tar xvf zlib.tar.gz
cd zlib-1.3.1/
./configure --prefix=$BUILD_TARGET --static
make
make install
cd ..
echo download and build openssl
wget https://github.com/openssl/openssl/releases/download/openssl-3.4.0/openssl-3.4.0.tar.gz
tar xvf openssl-3.4.0.tar.gz
cd openssl-3.4.0
CC="musl-gcc -fPIE -pie -static -idirafter /usr/include/ -idirafter /usr/include/x86_64-linux-gnu/" ./Configure no-shared no-async --prefix=$BUILD_TARGET --openssldir=$BUILD_TARGET/ssl linux-x86_64
make depend
make
make install
cd ..
echo download and build curl
wget https://curl.se/download/curl-7.88.1.tar.gz
tar xvf curl-7.88.1.tar.gz
cd curl-7.88.1
./configure --disable-shared --enable-static --disable-silent-rules --disable-debug --disable-warnings --disable-werror --disable-curldebug --disable-symbol-hiding --disable-ares --disable-rt --disable-ech --disable-dependency-tracking --disable-libtool-lock --enable-http --disable-ftp --disable-file --disable-ldap --disable-ldaps --disable-rtsp --disable-proxy --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smb --disable-smtp --disable-gopher --disable-mqtt --disable-manual --disable-libcurl-option --disable-ipv6 --disable-openssl-auto-load-config --disable-versioned-symbols --disable-verbose --disable-sspi --disable-crypto-auth --disable-ntlm --disable-ntlm-wb --disable-tls-srp --enable-unix-sockets --disable-cookies --disable-socketpair --disable-http-auth --disable-doh --disable-mime --disable-dateparse --disable-netrc --disable-progress-meter --disable-dnsshuffle --disable-get-easy-options --disable-alt-svc --disable-websockets --without-brotli --without-zstd --without-libpsl --without-libgsasl --without-librtmp --without-winidn --with-openssl=$BUILD_TARGET/ --disable-threaded-resolver --with-zlib=$BUILD_TARGET/ --prefix=$BUILD_TARGET/
make
make install
cd ..
echo download and build snac2
git clone https://codeberg.org/grunfink/snac2.git
cd snac2 # assuming this commit in master
make CFLAGS="-g -Wall -Wextra -pedantic -static -DWITHOUT_SHM" PREFIX=$BUILD_TARGET LDFLAGS="-L$BUILD_TARGET/lib64 -lcurl -lssl -lcrypto -lz"
make install PREFIX=$BUILD_TARGET
cd ..
echo a statically linked snac is ready at $BUILD_TARGET/bin
```
|
2024-11-20 21:51:43 +01:00 |
|
default
|
f2213021c4
|
Minor tweak to proxy code (some URLs were not correctly formed).
|
2024-11-14 16:21:14 +01:00 |
|
default
|
6a22a583fe
|
Version 2.63 RELEASED.
|
2024-11-14 15:18:11 +01:00 |
|
default
|
07f1231b07
|
Updated RELEASE_NOTES.
|
2024-11-14 15:17:14 +01:00 |
|
default
|
edc810cb27
|
Updated documentation.
|
2024-11-13 20:19:14 +01:00 |
|
default
|
000db2c1e4
|
Updated dependencies.
|
2024-11-12 10:36:07 +01:00 |
|
default
|
19b9998f8c
|
The proxy token seed is created on startup and never stored.
|
2024-11-12 09:01:30 +01:00 |
|
default
|
50fa2ae0e6
|
mastoapi: a lot of proxy code.
|
2024-11-12 06:35:00 +01:00 |
|
default
|
4971e54e56
|
mastoapi: added some proxy code.
|
2024-11-12 06:11:10 +01:00 |
|
default
|
bbe061ca19
|
make_url() now accepts generating proxied urls by token.
|
2024-11-12 05:47:11 +01:00 |
|
default
|
af92863ebb
|
Added new proxy authorization by token.
|
2024-11-12 05:38:55 +01:00 |
|
default
|
36c6538927
|
Bumped version (I forgot to do it several commits ago 🤦).
|
2024-11-11 19:56:42 +01:00 |
|
default
|
f7860a921c
|
Updated TODO.
|
2024-11-11 19:42:19 +01:00 |
|
default
|
9283bc3bc0
|
Fixed crash in xs_multipart_form_data() (from the tooot application).
|
2024-11-11 19:41:43 +01:00 |
|
default
|
33375aca90
|
Fixed possible crash in proxy code.
|
2024-11-10 07:32:48 +01:00 |
|
default
|
a657274d4e
|
In the RSS description, don't convert the bio from Markdown.
|
2024-11-10 07:16:48 +01:00 |
|
default
|
d9b94a556a
|
RSS feeds are now 2.0 instead of 0.91.
|
2024-11-10 06:59:55 +01:00 |
|
grunfink
|
5e37c780da
|
Merge pull request 'Fix "empty input line" warning by groff' (#222) from sergiodj/snac2:fix-groff-warning into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/222
|
2024-11-09 03:59:37 +00:00 |
|
Sergio Durigan Junior
|
c3339adce7
|
Fix "empty input line" warning by groff
Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
|
2024-11-08 22:17:56 -05:00 |
|
default
|
2096943a45
|
Updated TODO.
|
2024-11-08 15:59:12 +01:00 |
|
default
|
56ee6135d2
|
Merge branch 'master' of grunfink-codeberg:grunfink/snac2
|
2024-11-08 15:39:10 +01:00 |
|
grunfink
|
21cd4ddf77
|
Merge pull request 'Updated FreeBSD rc script' (#221) from draga79/snac2:master into master
Reviewed-on: https://codeberg.org/grunfink/snac2/pulls/221
|
2024-11-08 14:38:50 +00:00 |
|
draga79
|
446eca71b7
|
Updated FreeBSD rc script
On FreeBSD, the snac process is now managed by the daemon(8) utility - this means it will be restarted in case of crash, etc.
|
2024-11-08 08:01:53 +00:00 |
|
default
|
cf980ba95b
|
Fixed crash in posts from the links browser.
|
2024-11-07 23:23:10 +01:00 |
|
default
|
b2555fb6b9
|
Merge branch 'master' of comam.es:git/snac2
|
2024-11-07 22:01:03 +01:00 |
|
default
|
585adead38
|
Fixed some URLs that should not be proxied.
|
2024-11-07 22:01:00 +01:00 |
|
default
|
c7e8f3783b
|
Moved make_url() to data.c.
|
2024-11-07 22:00:25 +01:00 |
|
default
|
34dbddb2b5
|
Updated dependencies.
|
2024-11-07 21:57:38 +01:00 |
|
default
|
a59699d7ce
|
Updated TODO.
|
2024-11-07 21:46:45 +01:00 |
|
default
|
3e9222c049
|
Fixed 'strict_public_timelines' being applied to the private timeline.
|
2024-11-07 21:17:38 +01:00 |
|
default
|
a6bf1ee0d0
|
Use the raw_path for proxying (as some media may include ? arguments).
|
2024-11-07 20:47:37 +01:00 |
|
default
|
e4e58d2222
|
Don't proxy our own URLs.
|
2024-11-07 20:23:07 +01:00 |
|
default
|
7dc42f5b3b
|
Propagate the caching headers.
|
2024-11-07 20:21:02 +01:00 |
|
default
|
eb6d3d0d0e
|
Omit the 'image' field if there are any attachment.
|
2024-11-07 20:04:02 +01:00 |
|
default
|
0f8ade8c60
|
Propagate 'last-modified' and 'etag' fields while proxying.
But does it work?
|
2024-11-07 19:42:02 +01:00 |
|
default
|
916dc76332
|
Also use the proxy in replace_shortnames().
|
2024-11-07 19:05:11 +01:00 |
|
default
|
3313dc8df5
|
Changed make_url().
|
2024-11-07 18:57:52 +01:00 |
|
default
|
484dd127d6
|
More proxy_media work.
|
2024-11-07 17:27:11 +01:00 |
|
default
|
80a084e721
|
New function make_url(), that takes 'proxy_media' into account.
|
2024-11-07 17:10:20 +01:00 |
|
default
|
2769e6b1d7
|
Version 2.62 RELEASED.
|
2024-11-07 15:32:31 +01:00 |
|
default
|
eef38a3d5f
|
Updated documentation.
|
2024-11-05 18:23:14 +01:00 |
|
default
|
9de791b125
|
Updated RELEASE_NOTES.
|
2024-11-05 18:21:39 +01:00 |
|
default
|
8d06540d43
|
New server variable 'strict_public_timelines'.
|
2024-11-05 18:19:01 +01:00 |
|
default
|
c00b21103e
|
Updated TODO.
|
2024-11-05 17:50:08 +01:00 |
|
default
|
1675127c2a
|
Minor xs tweak.
|
2024-11-05 16:48:11 +01:00 |
|
default
|
e194fa9c04
|
Merge branch 'master' of comam.es:git/snac2
|
2024-11-05 16:27:19 +01:00 |
|
default
|
bbc94bd834
|
Updated RELEASE_NOTES.
|
2024-11-05 16:27:15 +01:00 |
|
default
|
f70b9481ce
|
Updated TODO.
|
2024-11-05 16:09:43 +01:00 |
|
default
|
abb4caa110
|
Updated TODO.
|
2024-11-04 17:08:29 +01:00 |
|
default
|
a5942432bf
|
Fixed processing of URLs with two @ inside.
|
2024-11-03 15:13:31 +01:00 |
|