mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-13 10:33:50 +02:00
i2pd: add runit service and system user (#6071)
i2pd: add runit service and system user
This commit is contained in:
parent
89beca2b90
commit
419841d98a
2 changed files with 11 additions and 0 deletions
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"
|
makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel"
|
||||||
distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz"
|
distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz"
|
||||||
checksum=4d7946e33a6a1dd4439590ea23b494f36e6fbcb81f7b36857bf264413a19e9db
|
checksum=4d7946e33a6a1dd4439590ea23b494f36e6fbcb81f7b36857bf264413a19e9db
|
||||||
|
system_accounts="_i2pd"
|
||||||
|
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
aarch64*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;;
|
aarch64*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;;
|
||||||
|
@ -25,3 +26,6 @@ do_install() {
|
||||||
vsconf docs/subscriptions.txt
|
vsconf docs/subscriptions.txt
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
post_install() {
|
||||||
|
vsv i2pd
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue