2022-12-21 15:15:22 +00:00
|
|
|
package=tor_linux
|
2024-10-28 12:46:35 +00:00
|
|
|
$(package)_version=0.4.8.13
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_download_path=https://dist.torproject.org/
|
|
|
|
$(package)_file_name=tor-$($(package)_version).tar.gz
|
2024-10-28 12:46:35 +00:00
|
|
|
$(package)_sha256_hash=9baf26c387a2820b3942da572146e6eb77c2bc66862af6297cd02a074e6fba28
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_dependencies=libevent openssl zlib
|
|
|
|
|
|
|
|
define $(package)_set_vars
|
|
|
|
$(package)_config_opts=--disable-asciidoc --disable-manpage --disable-html-manual --disable-system-torrc
|
2023-09-07 08:29:48 +00:00
|
|
|
$(package)_config_opts+=--disable-module-relay --disable-lzma --disable-zstd
|
2022-06-02 12:50:33 +00:00
|
|
|
$(package)_config_opts+=--with-libevent-dir=$(host_prefix) --with-openssl-dir=$(host_prefix)
|
|
|
|
$(package)_config_opts+=--with-zlib-dir=$(host_prefix) --disable-tool-name-check --enable-fatal-warnings
|
|
|
|
$(package)_config_opts+=--prefix=$(host_prefix)
|
2023-11-13 23:45:37 +00:00
|
|
|
$(package)_config_opts_x86_64+=--enable-static-tor
|
2022-12-23 15:43:34 +00:00
|
|
|
$(package)_cflags+=-O2
|
|
|
|
$(package)_cxxflags+=-O2
|
2023-09-07 08:29:48 +00:00
|
|
|
$(package)_ldflags+=$(guix_ldflags)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
2024-06-19 11:50:18 +00:00
|
|
|
define $(package)_preprocess_cmds
|
|
|
|
rm Makefile.in aclocal.m4 ar-lib compile config.guess config.sub configure depcomp install-sh missing orconfig.h.in test-driver &&\
|
|
|
|
rm -rf doc/man &&\
|
|
|
|
autoreconf -fi
|
|
|
|
endef
|
|
|
|
|
2022-06-02 12:50:33 +00:00
|
|
|
define $(package)_config_cmds
|
2022-12-23 15:43:34 +00:00
|
|
|
$($(package)_autoconf) $($(package)_config_opts)
|
2022-06-02 12:50:33 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_build_cmds
|
|
|
|
$(MAKE)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_stage_cmds
|
|
|
|
$(MAKE) DESTDIR=$($(package)_staging_dir) install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define $(package)_postprocess_cmds
|
2022-12-23 15:43:34 +00:00
|
|
|
$(host_toolchain)strip -s -D bin/tor && \
|
2022-06-02 12:50:33 +00:00
|
|
|
mkdir $($(package)_staging_prefix_dir)/Tor/ && \
|
|
|
|
cp bin/tor $($(package)_staging_prefix_dir)/Tor
|
2023-08-24 03:09:59 +00:00
|
|
|
endef
|