i2pd: use make_dirs= for creating /var/lib/i2pd
This commit is contained in:
parent
2bbf01694c
commit
fdc53e1e66
|
@ -1,7 +1,2 @@
|
||||||
#!/bin/sh
|
#!/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
|
exec chpst -u _i2pd:_i2pd i2pd --service 2>&1
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
# Template file for 'i2pd'
|
# Template file for 'i2pd'
|
||||||
pkgname=i2pd
|
pkgname=i2pd
|
||||||
version=2.22.0
|
version=2.22.0
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_build_args="USE_UPNP=yes"
|
make_build_args="USE_UPNP=yes"
|
||||||
makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel
|
makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel
|
||||||
libatomic-devel"
|
libatomic-devel"
|
||||||
short_desc="I2P Daemon - a full-featured C++ implementation of I2P client"
|
short_desc="I2P Daemon - a full-featured C++ implementation of I2P client"
|
||||||
maintainer="Obosob <obosob@riseup.net>"
|
maintainer="Obosob <obosob@riseup.net>"
|
||||||
license="BSD"
|
license="BSD-3-Clause"
|
||||||
homepage="http://i2pd.website/"
|
homepage="http://i2pd.website/"
|
||||||
distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz"
|
distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz"
|
||||||
checksum=6547d7a560482c5eda9106ae19267bc8afbb6af48fed3bebf423ade28103e173
|
checksum=6547d7a560482c5eda9106ae19267bc8afbb6af48fed3bebf423ade28103e173
|
||||||
system_accounts="_i2pd"
|
system_accounts="_i2pd"
|
||||||
disable_parallel_build=true
|
disable_parallel_build=true
|
||||||
|
|
||||||
|
make_dirs="/var/lib/i2pd 0755 _i2pd _i2pd"
|
||||||
|
|
||||||
case "${XBPS_TARGET_MACHINE}" in
|
case "${XBPS_TARGET_MACHINE}" in
|
||||||
aarch64*|armv*|mips*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;;
|
aarch64*|armv*|mips*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;;
|
||||||
esac
|
esac
|
||||||
|
@ -27,6 +29,7 @@ do_install() {
|
||||||
vsconf contrib/subscriptions.txt
|
vsconf contrib/subscriptions.txt
|
||||||
vlicense LICENSE
|
vlicense LICENSE
|
||||||
}
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv i2pd
|
vsv i2pd
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue