58 lines
1.5 KiB
Bash
58 lines
1.5 KiB
Bash
# Template file for 'i2pd'
|
|
pkgname=i2pd
|
|
version=2.53.0
|
|
revision=1
|
|
build_style=gnu-makefile
|
|
make_build_args="USE_UPNP=yes"
|
|
makedepends="zlib-devel boost-devel openssl-devel miniupnpc-devel"
|
|
short_desc="Full-featured C++ implementation of I2P client"
|
|
maintainer="Daniel Eyßer <daniel.eysser@gmail.com>"
|
|
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=a5eb7f9faa7a8b66b044841e2967b9dc0367e4e41939ce6a3223f8bd2f347da8
|
|
|
|
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
|
|
/etc/i2pd 0750 root _i2pd"
|
|
|
|
case "${XBPS_TARGET_MACHINE}" in
|
|
x86_64*) ;;
|
|
*) make_build_args+=" USE_AESNI=no" ;;
|
|
esac
|
|
|
|
do_install() {
|
|
# Static library and headers for the -devel package
|
|
vinstall libi2pd.a 644 usr/lib
|
|
vmkdir usr/include
|
|
vcopy "libi2pd/*.h" usr/include
|
|
|
|
# Configuration for the main package
|
|
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 -sf /usr/share/i2pd/certificates ${DESTDIR}/var/lib/i2pd/certificates
|
|
}
|
|
|
|
i2pd-devel_package() {
|
|
depends="i2pd>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/include/*.h"
|
|
}
|
|
}
|