49 lines
1.4 KiB
Bash
49 lines
1.4 KiB
Bash
# Template file for 'i2pd'
|
|
pkgname=i2pd
|
|
version=2.31.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="USE_UPNP=yes"
|
|
makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel
|
|
libatomic-devel"
|
|
short_desc="Full-featured C++ implementation of I2P client"
|
|
maintainer="Obosob <obosob@riseup.net>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://i2pd.website/"
|
|
changelog="https://raw.githubusercontent.com/PurpleI2P/i2pd/openssl/ChangeLog"
|
|
distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz"
|
|
checksum=7e37abcf49e9f59ef6939069f4d74fc6bf29b09deec111bd3561021fc1349528
|
|
disable_parallel_build=yes
|
|
|
|
conf_files="
|
|
/etc/i2pd/i2pd.conf
|
|
/etc/i2pd/tunnels.conf"
|
|
system_accounts="_i2pd"
|
|
_i2pd_homedir="/var/lib/i2pd"
|
|
make_dirs="/var/lib/i2pd 0700 _i2pd _i2pd"
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
aarch64*|armv*|mips*|ppc*) make_build_args+=" USE_AESNI=no USE_AVX=no" ;;
|
|
esac
|
|
|
|
pre_install() {
|
|
# Log errors to syslog
|
|
vsed -e "s/^# log = .*/log = syslog/" \
|
|
-e "s/^# loglevel = .*/loglevel = error/" \
|
|
-i contrib/i2pd.conf
|
|
}
|
|
|
|
do_install() {
|
|
vbin i2pd
|
|
vman debian/i2pd.1
|
|
vinstall contrib/i2pd.conf 644 etc/i2pd
|
|
vinstall contrib/tunnels.conf 644 etc/i2pd
|
|
vlicense LICENSE
|
|
vsv i2pd
|
|
# Family, reseed and router certificates
|
|
vmkdir usr/share/i2pd
|
|
vcopy contrib/certificates usr/share/i2pd
|
|
vmkdir var/lib/i2pd
|
|
ln -s /usr/share/i2pd/certificates ${DESTDIR}/var/lib/i2pd/certificates
|
|
}
|