Index | Thread | Search

From:
Pascal Stumpf <pascal@stumpf.co>
Subject:
Re: update net/i2p
To:
Solene Rapenne <solene@perso.pw>
Cc:
ports@openbsd.org
Date:
Tue, 11 Jun 2024 22:25:04 +0200

Download raw body.

Thread
  • Solene Rapenne:

    update net/i2p

    • Stuart Henderson:

      update net/i2p

    • Pascal Stumpf:

      update net/i2p

On Tue, 11 Jun 2024 15:25:56 +0200, Solene Rapenne wrote:
> this updates i2p to the latest version
> 
> unfortunately, they did not publish a release/tag on GitHub and two
> weeks after I filled an issue about it
> https://github.com/i2p/i2p.i2p/issues/78
> I got no reply and there are still no tag done, so this patch switch
> to their official mirror instead of GitHub
> 
> heavily tested on 7.5 and -current, works fine

This has been running very well on my node in the past few days.  OK
pascal@.

> diff --git a/net/i2p/Makefile b/net/i2p/Makefile
> index f8765fb1a4c..72530bb18a4 100644
> --- a/net/i2p/Makefile
> +++ b/net/i2p/Makefile
> @@ -1,9 +1,8 @@
>  COMMENT=	i2p routing protocol
>  
> -GH_ACCOUNT=	i2p
> -GH_PROJECT=	i2p.i2p
> -GH_TAGNAME=	i2p-2.5.1
> -DISTNAME=	${GH_TAGNAME}
> +V =		2.5.2
> +DISTNAME =	i2psource_${V}
> +PKGNAME =	i2p-${V}
>  
>  CATEGORIES=	net
>  
> @@ -15,8 +14,12 @@ MAINTAINER=	Pascal Stumpf <pascal@stumpf.co>
>  # EPLv1.0 GPLv2 GPLv3 LGPLv2.1 LGPLv3 MIT public-domain WTFPLv2
>  PERMIT_PACKAGE=	Yes
>  
> +EXTRACT_SUFX =	.tar.bz2
> +
>  WANTLIB +=	gmp
>  
> +SITES =		https://files.i2p-projekt.de/${V}/
> +
>  MODULES=	java
>  MODJAVA_VER=	1.8
>  MODJAVA_BUILD=	ant
> @@ -48,6 +51,8 @@ MAKE_ENV=	CC=${CC} BITS=${BITS} MACHINE_ARCH=${MACHINE_ARCH}
>  # test requires addition dependencies (atleast: junit, hamcrest, jmockfit)
>  NO_TEST=	Yes
>  
> +WRKDIST=	${WRKDIR}/i2p-${V}
> +
>  post-patch:
>  	${SUBST_CMD} ${WRKSRC}/installer/resources/wrapper.config
>  	${SUBST_CMD} ${WRKSRC}/installer/resources/i2prouter
> diff --git a/net/i2p/distinfo b/net/i2p/distinfo
> index 51c78797fb6..0141daa6cb3 100644
> --- a/net/i2p/distinfo
> +++ b/net/i2p/distinfo
> @@ -1,2 +1,2 @@
> -SHA256 (i2p-2.5.1.tar.gz) = 0gluxFWJoi4IDhibrAPQkuIDe0qg7615Xs0NFhoTaIw=
> -SIZE (i2p-2.5.1.tar.gz) = 38419885
> +SHA256 (i2psource_2.5.2.tar.bz2) = 8j0HRtcqVczL0X9Adi5JGuG0LN9V1+c0BNITqEmFynM=
> +SIZE (i2psource_2.5.2.tar.bz2) = 33791390
>