From nobody Thu Nov 18 11:49:31 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0694A1855F20; Thu, 18 Nov 2021 11:49:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Hvykz6cpmz4sKL; Thu, 18 Nov 2021 11:49:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C43731480C; Thu, 18 Nov 2021 11:49:31 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AIBnVAH087174; Thu, 18 Nov 2021 11:49:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AIBnVWd087173; Thu, 18 Nov 2021 11:49:31 GMT (envelope-from git) Date: Thu, 18 Nov 2021 11:49:31 GMT Message-Id: <202111181149.1AIBnVWd087173@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Dmitry Marakasov Subject: git: fa046e6f5bbb - main - www/libhsts: add port: Library to check a domain against the Chromium HSTS Preload list List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: amdmi3 X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fa046e6f5bbb71dd413a1da61a158c079b48c4d4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=fa046e6f5bbb71dd413a1da61a158c079b48c4d4 commit fa046e6f5bbb71dd413a1da61a158c079b48c4d4 Author: Dmitry Marakasov AuthorDate: 2021-11-18 00:01:30 +0000 Commit: Dmitry Marakasov CommitDate: 2021-11-18 11:48:16 +0000 www/libhsts: add port: Library to check a domain against the Chromium HSTS Preload list The HSTS preload list is a list of domains that support HTTPS. The list is compiled by Google and is utilised by Chrome, Firefox and others. With this information, a HTTP client may contact a website without trying a plain-text HTTP connection first. It prevents interception with redirects that take place over HTTP. None of the sent data will ever be unencrypted. WWW: https://gitlab.com/rockdaboot/libhsts --- www/Makefile | 1 + www/libhsts/Makefile | 19 +++++++++++++++++++ www/libhsts/distinfo | 3 +++ www/libhsts/pkg-descr | 10 ++++++++++ www/libhsts/pkg-plist | 7 +++++++ 5 files changed, 40 insertions(+) diff --git a/www/Makefile b/www/Makefile index 6f4c563ce1f5..c150a8ecab8e 100644 --- a/www/Makefile +++ b/www/Makefile @@ -292,6 +292,7 @@ SUBDIR += libecap SUBDIR += libepc SUBDIR += libevhtp + SUBDIR += libhsts SUBDIR += libhubbub SUBDIR += libjwt SUBDIR += libmicrohttpd diff --git a/www/libhsts/Makefile b/www/libhsts/Makefile new file mode 100644 index 000000000000..ecc244113c4c --- /dev/null +++ b/www/libhsts/Makefile @@ -0,0 +1,19 @@ +PORTNAME= libhsts +PORTVERSION= 0.1.0 +CATEGORIES= www security +MASTER_SITES= https://gitlab.com/rockdaboot/libhsts/uploads/4753f61b5a3c6253acf4934217816e3f/ + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Library to check a domain against the Chromium HSTS Preload list + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= libtool python:build +GNU_CONFIGURE= yes +USE_LDCONFIG= yes +INSTALL_TARGET= install-strip +CONFIGURE_ARGS= --disable-doc +TEST_TARGET= check + +.include diff --git a/www/libhsts/distinfo b/www/libhsts/distinfo new file mode 100644 index 000000000000..e696f8804a32 --- /dev/null +++ b/www/libhsts/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1637163857 +SHA256 (libhsts-0.1.0.tar.gz) = e1125e0395b4777361eafafd61fff2b516d3f2fb57d56e40cb554a6cd8c024e0 +SIZE (libhsts-0.1.0.tar.gz) = 1579851 diff --git a/www/libhsts/pkg-descr b/www/libhsts/pkg-descr new file mode 100644 index 000000000000..97dd79e2677a --- /dev/null +++ b/www/libhsts/pkg-descr @@ -0,0 +1,10 @@ +The HSTS preload list is a list of domains that support HTTPS. The +list is compiled by Google and is utilised by Chrome, Firefox and +others. + +With this information, a HTTP client may contact a website without +trying a plain-text HTTP connection first. It prevents interception +with redirects that take place over HTTP. None of the sent data +will ever be unencrypted. + +WWW: https://gitlab.com/rockdaboot/libhsts diff --git a/www/libhsts/pkg-plist b/www/libhsts/pkg-plist new file mode 100644 index 000000000000..6d306e7a2855 --- /dev/null +++ b/www/libhsts/pkg-plist @@ -0,0 +1,7 @@ +bin/hsts +include/libhsts.h +lib/libhsts.a +lib/libhsts.so +lib/libhsts.so.0 +lib/libhsts.so.0.0.0 +libdata/pkgconfig/libhsts.pc