git: 687a1b3d4995 - main - net/htpdate: update to v1.3.7, support ssl (default), shift to github

From: Jason Helfman <jgh_at_FreeBSD.org>
Date: Tue, 21 Feb 2023 01:04:15 UTC
The branch main has been updated by jgh:

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

commit 687a1b3d4995b3b98abdcdcfd1cbef25e1b24f6b
Author:     Jason Helfman <jgh@FreeBSD.org>
AuthorDate: 2023-02-21 01:02:37 +0000
Commit:     Jason Helfman <jgh@FreeBSD.org>
CommitDate: 2023-02-21 01:02:37 +0000

    net/htpdate: update to v1.3.7, support ssl (default), shift to github
---
 net/htpdate/Makefile | 19 +++++++++++++------
 net/htpdate/distinfo |  6 +++---
 2 files changed, 16 insertions(+), 9 deletions(-)

diff --git a/net/htpdate/Makefile b/net/htpdate/Makefile
index b5fe28e06ef4..fcc3616f92f3 100644
--- a/net/htpdate/Makefile
+++ b/net/htpdate/Makefile
@@ -1,29 +1,36 @@
 PORTNAME=	htpdate
-PORTVERSION=	1.2.3
+PORTVERSION=	1.3.7
 CATEGORIES=	net
 MASTER_SITES=	http://www.vervest.org/htp/archive/c/ \
 		http://twekkel.home.xs4all.nl/htp/
 
 MAINTAINER=	jgh@FreeBSD.org
 COMMENT=	Time synchronization over http utility
-WWW=		https://www.vervest.org/htp/
+WWW=		https://github.com/twekkel/htpdate
 
 LICENSE=	GPLv2+
 
-USES=	tar:xz
+GH_ACCOUNT=	twekkel
 
 MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
 
 PLIST_FILES=	bin/${PORTNAME} man/man8/${PORTNAME}.8.gz
-PORTDOCS=	Changelog README
+PORTDOCS=	Changelog README.md
 USE_RC_SUBR=	${PORTNAME}
 
-OPTIONS_DEFINE=	DOCS
+OPTIONS_DEFINE=	DOCS SSL
+OPTIONS_DEFAULT=	SSL
+
+SSL_USES=	ssl
+SSL_CFLAGS=	-DENABLE_HTTPS
+SSL_LDFLAGS=	-lssl
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.8 ${STAGEDIR}${MAN8PREFIX}/man/man8
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for doc in ${PORTDOCS}
 	${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR}
 .endfor
diff --git a/net/htpdate/distinfo b/net/htpdate/distinfo
index 8334cc5a25f5..385612f65d4b 100644
--- a/net/htpdate/distinfo
+++ b/net/htpdate/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1647023155
-SHA256 (htpdate-1.2.3.tar.xz) = 6b4e3fbf93d552a3a20f30a3906bf0caac05d9626bd508220744010fe9dd53f0
-SIZE (htpdate-1.2.3.tar.xz) = 12988
+TIMESTAMP = 1676573180
+SHA256 (htpdate-1.3.7.tar.gz) = 88c52fe475308ee95f560fd7cf68c75bc6e9a6abf56be7fed203a7f762fe7ab2
+SIZE (htpdate-1.3.7.tar.gz) = 16897