diff --git a/CODEOWNERS b/CODEOWNERS index a4fb9779e96725..8259ab15e4a881 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -170,6 +170,7 @@ /packages/mailutils/ @suhan-paradkar # Packages owned by @thunder-coding +/packages/arti/ @thunder-coding /packages/flyctl/ @thunder-coding /packages/git-sizer/ @thunder-coding /packages/gn/ @thunder-coding diff --git a/packages/arti/build.sh b/packages/arti/build.sh new file mode 100644 index 00000000000000..7c0ef33fb67116 --- /dev/null +++ b/packages/arti/build.sh @@ -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 " +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 +}