diff --git a/srcpkgs/i2pd/files/i2pd/run b/srcpkgs/i2pd/files/i2pd/run new file mode 100755 index 00000000000..ed33e086800 --- /dev/null +++ b/srcpkgs/i2pd/files/i2pd/run @@ -0,0 +1,7 @@ +#!/bin/sh + +if [ ! -d /var/lib/i2pd ]; then + mkdir -p /var/lib/i2pd + chown -R _i2pd:_i2pd /var/lib/i2pd +fi +exec chpst -u _i2pd:_i2pd i2pd --service 2>&1 diff --git a/srcpkgs/i2pd/template b/srcpkgs/i2pd/template index 6566d0fdabe..e7631a19a22 100644 --- a/srcpkgs/i2pd/template +++ b/srcpkgs/i2pd/template @@ -11,6 +11,7 @@ maintainer="Obosob " makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel" distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz" checksum=4d7946e33a6a1dd4439590ea23b494f36e6fbcb81f7b36857bf264413a19e9db +system_accounts="_i2pd" case "${XBPS_TARGET_MACHINE}" in aarch64*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;; @@ -25,3 +26,6 @@ do_install() { vsconf docs/subscriptions.txt vlicense LICENSE } +post_install() { + vsv i2pd +}