diff --git a/srcpkgs/i2pd/patches/60-musl.patch b/srcpkgs/i2pd/patches/60-musl.patch new file mode 100644 index 00000000000..7313f5d5aa7 --- /dev/null +++ b/srcpkgs/i2pd/patches/60-musl.patch @@ -0,0 +1,17 @@ +diff --git a/DaemonLinux.cpp b/DaemonLinux.cpp +index edd15f07..126b4689 100644 +--- DaemonLinux.cpp ++++ DaemonLinux.cpp +@@ -78,9 +78,9 @@ namespace i2p + + #if !defined(__OpenBSD__) + // point std{in,out,err} descriptors to /dev/null +- stdin = freopen("/dev/null", "r", stdin); +- stdout = freopen("/dev/null", "w", stdout); +- stderr = freopen("/dev/null", "w", stderr); ++ freopen("/dev/null", "r", stdin); ++ freopen("/dev/null", "w", stdout); ++ freopen("/dev/null", "w", stderr); + #endif + } + diff --git a/srcpkgs/i2pd/template b/srcpkgs/i2pd/template new file mode 100644 index 00000000000..e0e2b300ed4 --- /dev/null +++ b/srcpkgs/i2pd/template @@ -0,0 +1,28 @@ +# Template file for 'i2pd' +pkgname=i2pd +version=2.10.2 +revision=1 +short_desc="I2P Daemon - a full-featured C++ implementation of I2P client" +homepage="http://i2pd.website/" +license="BSD" +build_style=gnu-makefile +make_build_args="USE_UPNP=yes" +maintainer="Obosob " +makedepends="zlib-devel boost-devel libressl-devel miniupnpc-devel" +distfiles="https://github.com/PurpleI2P/i2pd/archive/${version}.tar.gz" +checksum=9d1f8dd33f537ad629fc69f0ccfa4cde22ca5023981a9c5b6acd5d551b9c7b8b + +pre_build() { + if [[ "$XBPS_TARGET_MACHINE" =~ aarch64(-musl)? ]]; then + make_build_args="$make_build_args USE_AESNI=no" + fi +} + +do_install() { + vbin i2pd + vman debian/i2pd.1 + vsconf docs/i2pd.conf + vsconf docs/tunnels.conf + vsconf docs/subscriptions.txt + vlicense LICENSE +} diff --git a/srcpkgs/i2pd/update b/srcpkgs/i2pd/update new file mode 100644 index 00000000000..af550066795 --- /dev/null +++ b/srcpkgs/i2pd/update @@ -0,0 +1,2 @@ +site="https://api.github.com/repos/PurpleI2P/i2pd/tags" +pattern='"name":\s*"\K([\d\.]+)(?=")'