i2pd: add runit service and system user (#6071)
i2pd: add runit service and system user
This commit is contained in:
parent
89beca2b90
commit
419841d98a
7
srcpkgs/i2pd/files/i2pd/run
Executable file
7
srcpkgs/i2pd/files/i2pd/run
Executable file
|
@ -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
|
|
@ -11,6 +11,7 @@ maintainer="Obosob <obosob@riseup.net>"
|
|||
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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user