-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9ebb185
commit 6658875
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
TERMUX_PKG_HOMEPAGE=https://tpo.pages.torproject.net/core/arti/ | ||
TERMUX_PKG_DESCRIPTION="Arti is a work-in-progress project to write a full-featured Tor implementation in Rust." | ||
TERMUX_PKG_LICENSE="Apache-2.0, MIT" | ||
TERMUX_PKG_MAINTAINER="Yaksh Bariya <[email protected]>" | ||
TERMUX_PKG_VERSION="1.2.8" | ||
TERMUX_PKG_SRCURL="https://gitlab.torproject.org/tpo/core/arti/-/archive/arti-v${TERMUX_PKG_VERSION}/arti-arti-v${TERMUX_PKG_VERSION}.tar.gz" | ||
TERMUX_PKG_SHA256=85dd949c4ac29d9b13f599c65de17dcd2b60ba6963dab27be7b5530a0bfe7675 | ||
TERMUX_PKG_DEPENDS="liblzma, libsqlite, openssl" | ||
TERMUX_PKG_BUILD_IN_SRC=true | ||
|
||
termux_step_pre_configure() { | ||
termux_setup_rust | ||
} | ||
|
||
termux_step_make() { | ||
cargo build --jobs $TERMUX_PKG_MAKE_PROCESSES --target $CARGO_TARGET_NAME --release --features full | ||
} | ||
|
||
termux_step_make_install() { | ||
install -Dm755 -t $TERMUX_PREFIX/bin target/${CARGO_TARGET_NAME}/release/arti | ||
install -Dm640 -t $TERMUX_PREFIX/etc/arti.d/arti.toml crates/arti/src/arti-example-config.toml | ||
} | ||
|
||
termux_step_create_debscripts() { | ||
cat <<- EOF > ./postinst | ||
echo | ||
echo "-------------------------WARNING-------------------------" | ||
echo | ||
echo "Arti is an EXPERIMENTAL implementation of existing CTor." | ||
echo | ||
echo "It is not recommended to use Arti unless you know what you are doing. It may not be up to mark with existing ctor in terms of stability, performance and MOST IMPORTANTLY SECURITY. Use Arti only if you want to help find bugs in the software" | ||
echo | ||
echo "---------------------------------------------------------" | ||
echo | ||
EOF | ||
} |