Subject: [alpine-aports] [PATCH] testing/i2pd: bump to 2.26 and enable upnp

From: opal hart <[email-masked]>
Date: Sat, 15 Jun 2019 09:48:13 +0000

set USE_UPNP=yes for make args and add dependency for miniupnpc-dev.
this allows i2pd to be more useful for users e.g. on residential ISPs,
behind NAT
---
 testing/i2pd/APKBUILD | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/testing/i2pd/APKBUILD b/testing/i2pd/APKBUILD
index 4e8d85bf7f..cab7cc7b69 100644
--- a/testing/i2pd/APKBUILD
+++ b/testing/i2pd/APKBUILD
@@ -1,7 +1,7 @@
 # Contributor: l-n-s <[email-masked]>
 # Maintainer: l-n-s <[email-masked]>
 pkgname=i2pd
-pkgver=2.25.0
+pkgver=2.26.0
 pkgrel=0
 pkgdesc="I2P Router written in C++"
 url="https://github.com/PurpleI2P/i2pd"
@@ -9,7 +9,7 @@ arch="all"
 license="BSD-3-Clause"
 pkgusers="i2pd"
 depends="musl-utils"
-makedepends="boost-dev openssl-dev zlib-dev"
+makedepends="boost-dev miniupnpc-dev openssl-dev openssl zlib-dev"
 options="!check" # No test suite
 install="$pkgname.pre-install"
 source="https://github.com/PurpleI2P/i2pd/archive/$pkgver/$pkgname-$pkgver.tar.gz
@@ -19,16 +19,17 @@ source="https://github.com/PurpleI2P/i2pd/archive/$pkgver/$pkgname-$pkgver.tar.g
 subpackages="$pkgname-openrc"
 
 build() {
-	local _arch_opts=
+	local _arch_opts="USE_UPNP=yes"
 
 	case "$CARCH" in
-		aarch64|arm*) _arch_opts="USE_AESNI=no USE_AVX=no" ;;
+		aarch64|arm*) _arch_opts="${_arch_opts} USE_AESNI=no USE_AVX=no" ;;
 	esac
 
 	make $_arch_opts
 }
 
 package() {
+
 	install -D -m 755 i2pd "$pkgdir"/usr/sbin/i2pd
 
 	install -dm755 -o $pkgusers \
@@ -37,8 +38,8 @@ package() {
 		"$pkgdir"/var/lib/$pkgname \
 		"$pkgdir"/var/log/$pkgname
 
-	install -D -m 755 contrib/tunnels.conf "$pkgdir"/etc/i2pd/tunnels.conf
-	install -D -m 755 contrib/i2pd.conf "$pkgdir"/etc/i2pd/i2pd.conf
+	install -D -m 644 contrib/tunnels.conf "$pkgdir"/etc/i2pd/tunnels.conf
+	install -D -m 644 contrib/i2pd.conf "$pkgdir"/etc/i2pd/i2pd.conf
 	cp -r contrib/certificates/ "$pkgdir"/usr/share/$pkgname/certificates
 	ln -s /usr/share/$pkgname/certificates "$pkgdir"/var/lib/$pkgname/certificates
 
@@ -48,6 +49,6 @@ package() {
 		"$pkgdir"/etc/conf.d/$pkgname
 }
 
-sha512sums="e45318236b7a4e23c8dc83423f4cbc62e622a6f6346a67d56af09b805a82f1d1bf4174c9785078292ad07fc7e5e75f15d3fcc801e44fddcbd8c30d6c7bd6975e  i2pd-2.25.0.tar.gz
+sha512sums="1f0b2ca059daa9238a9bc2959a559636266252ad0858e4e941918bb195906c817de54b2379ae95d0b9813b7cae8697db335f9d6d15d0cf919e6f687a282e528c  i2pd-2.26.0.tar.gz
 5a95beef635fc2f5beecee314964fd41713ed61f92c4e972276208e0a2c86604c2b42a8e922863fc658a7a5789c9f43fddf7f76350fc281a44f2f42258a01201  i2pd.initd
 ba94e5505f4eeb9a32159aa0a3b7f68ff077abb9704800f70502ac75fd5bcfcb20450ebd983d0523beca2d13e718d7bf888f53ec455d1f41701c16d09c3b2d28  i2pd.confd"
-- 
2.21.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---