Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Jul 2023 14:56:23 GMT
From:      Oleksii Samorukov <samm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e50d1781a551 - main - security/stoken: upgrade to 0.9.3
Message-ID:  <202307111456.36BEuN7h090057@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by samm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e50d1781a551b4f34ad5a2631c18a8ce49dad912

commit e50d1781a551b4f34ad5a2631c18a8ce49dad912
Author:     Oleksii Samorukov <samm@FreeBSD.org>
AuthorDate: 2023-07-11 14:53:02 +0000
Commit:     Oleksii Samorukov <samm@FreeBSD.org>
CommitDate: 2023-07-11 14:55:40 +0000

    security/stoken: upgrade to 0.9.3
    
    - Change source to the GitHub
    - Add desktop-utils uses for the X11 build
    - Add test command
    - Remove outdated patches
    
    ChangeLog: https://github.com/stoken-dev/stoken/blob/main/CHANGES
    Reported by: repology
---
 security/stoken/Makefile  | 16 ++++++++--------
 security/stoken/distinfo  |  6 +++---
 security/stoken/pkg-plist |  3 +++
 3 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/security/stoken/Makefile b/security/stoken/Makefile
index 5bdf6e775e5e..5d9685590f3a 100644
--- a/security/stoken/Makefile
+++ b/security/stoken/Makefile
@@ -1,8 +1,6 @@
 PORTNAME=	stoken
-DISTVERSION=	0.92
-PORTREVISION=	2
+DISTVERSION=	0.93
 CATEGORIES=	security
-MASTER_SITES=	SF/stoken
 
 MAINTAINER=	samm@FreeBSD.org
 COMMENT=	Software Token for UNIX compatible with RSA SecurID
@@ -13,10 +11,13 @@ LICENSE_FILE=	${WRKSRC}/COPYING.LIB
 
 LIB_DEPENDS=	libtomcrypt.so:security/libtomcrypt # can alternatively use nettle, potentially port option can be created
 
-USES=		gnome libtool localbase pkgconfig
+USES=		gnome libtool localbase pkgconfig autoreconf
 GNU_CONFIGURE=	yes
 USE_GNOME=	libxml2
 USE_LDCONFIG=	yes
+USE_GITHUB=	yes
+GH_TAGNAME=	v${DISTVERSION}
+GH_ACCOUNT=	stoken-dev
 INSTALL_TARGET=	install-strip
 
 OPTIONS_DEFINE=	DOCS X11
@@ -25,10 +26,9 @@ OPTIONS_SUB=	yes
 X11_CONFIGURE_WITH=	gtk
 X11_DESC=	Build GUI token interface
 X11_USE=	GNOME=gtk30,cairo,gdkpixbuf2
+X11_USES=	desktop-file-utils
 
-post-patch:
-	@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|g ; s|^dist_doc_DATA|#dist_doc_DATA|' ${WRKSRC}/Makefile.in
-	@${REINPLACE_CMD} -e 's|LTC_LTC_PKCS_1_V1_5|LTC_PKCS_1_V1_5|g' \
-	    ${WRKSRC}/src/stc-tomcrypt.c
+do-test: build
+	cd ${WRKSRC} && ${MAKE} check
 
 .include <bsd.port.mk>
diff --git a/security/stoken/distinfo b/security/stoken/distinfo
index 4ce82c190f3b..83b11e15f43f 100644
--- a/security/stoken/distinfo
+++ b/security/stoken/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1518349781
-SHA256 (stoken-0.92.tar.gz) = aa2b481b058e4caf068f7e747a2dcf5772bcbf278a4f89bc9efcbf82bcc9ef5a
-SIZE (stoken-0.92.tar.gz) = 425835
+TIMESTAMP = 1689077674
+SHA256 (stoken-dev-stoken-0.93-v0.93_GH0.tar.gz) = 102e2d112b275efcdc20ef438670e4f24f08870b9072a81fda316efcc38aef9c
+SIZE (stoken-dev-stoken-0.93-v0.93_GH0.tar.gz) = 118216
diff --git a/security/stoken/pkg-plist b/security/stoken/pkg-plist
index ac3fdb5e837d..2d82cf04b878 100644
--- a/security/stoken/pkg-plist
+++ b/security/stoken/pkg-plist
@@ -15,3 +15,6 @@ man/man1/stoken.1.gz
 %%X11%%%%DATADIR%%/tokencode-small.ui
 %%X11%%share/pixmaps/stoken-gui.png
 libdata/pkgconfig/stoken.pc
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+%%PORTDOCS%%%%DOCSDIR%%/libstoken-test.c
+%%PORTDOCS%%%%DOCSDIR%%/sdtid-test.pl



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202307111456.36BEuN7h090057>