From nobody Sat Mar 23 11:29:51 2024 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 4V1xnD4glmz5FDwl; Sat, 23 Mar 2024 11:29:52 +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 4V1xnD1qnkz4lsF; Sat, 23 Mar 2024 11:29:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711193392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zXvwtCdfD39hB5L5xQFbUsAaR5eJTz5v+xIC+qbycr8=; b=WJ/Rfc17fs19yKTJzxNmWUDyN5dvWndsk3aWiA5hmnmO6j7a9VZnBWb8FjFPnzkjLSNWFX qLBqNOeWcQKGu71tpwmkh8RAQA3k7KpibQ7gdJuxYlrxSSx9EfcM7vOtVh8RwaOraUNvWo 4o89AAZ2llseOxrBsbW2SFetTjHjp0tyAUj0T1kLnMSfjNxcKrxliUeAniKgwLz9LLZbgs f5L/R7vMxAbbMMQe/XHZ+PpE0k3u+L/zLqVPBejjdulBp6vPjYv7VbzkAmnppZ7zichwUg cLhmMoicA0b8ImKHgQDCdk9mYXK67AT9lq9BUg6eLc2EgUF7lvt9iZm+QnC0Pw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711193392; a=rsa-sha256; cv=none; b=eOmwUsbXyzpaFErNiq+F1hYYap4JgZJ779cpMT5Hd5HTBlmxpMViPg6j0JDixsyUadOrOv MVvzmXI0WyfTFwxLmsU1iKLddPElCwy8cpiMFRtNoIJjtGPrXP6ak09wgm2JbyjZGUC2fN xW3+kjovzMZ1JNJA895y8pNPkrdCewFwQEu2xsnO/M1FO6CTdGaajIigLu0B1vV2IIwxw9 /YtTZkeye+MpsCB0bLbDxTqZNeV4fhBLTo01SKVtktaY6r1lNJMp2qOveR05Hqy0LKk1n1 G25PiBtVMKc3cC8Eg0CQ+gQqcGdlRu2xV8x7qz6gOZLgY4i2E4blh9iK2D/6MA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711193392; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=zXvwtCdfD39hB5L5xQFbUsAaR5eJTz5v+xIC+qbycr8=; b=csCKeA5FDbXt8K/DcHTgEOcPgcX3d/UFrLC2aldsGfkvp3nx2bnKV9wgHyRoJMou4JSzuv bBsssf+AQGPhF6VslQLc/mYID6maB7U8jaJm8HlO8jppqt3cDKL+olf1o9Rg90+DPUxwO0 9jP6xF3I1AgANGOloukFTKR1bnQwhSeOpTFjdJIUAyVOEOydPoevnKBC2ZaFAC+LiYaWSu E1wsT09voLGvuvnkTIMBlvD7NoIBZQ0TGJVwjgK7X1XdIl18RsWzPEmZs5MgtlSb0ncfOh dvTw6HbzB8g4vq5OX5878PmwEBtDFAOwXoOCa6mw0EqtSTamCpnz7QPhBJ/bsw== 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 4V1xnC6jbpzml5; Sat, 23 Mar 2024 11:29:51 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42NBTp6v025907; Sat, 23 Mar 2024 11:29:51 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42NBTpTU025903; Sat, 23 Mar 2024 11:29:51 GMT (envelope-from git) Date: Sat, 23 Mar 2024 11:29:51 GMT Message-Id: <202403231129.42NBTpTU025903@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Tijl Coosemans Subject: git: 909c172b80a5 - main - security/beidconnect: New port, version 2.10 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: tijl X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 909c172b80a5c0fe633b2185b49c09a6977675e1 Auto-Submitted: auto-generated The branch main has been updated by tijl: URL: https://cgit.FreeBSD.org/ports/commit/?id=909c172b80a5c0fe633b2185b49c09a6977675e1 commit 909c172b80a5c0fe633b2185b49c09a6977675e1 Author: Tijl Coosemans AuthorDate: 2024-03-19 20:42:59 +0000 Commit: Tijl Coosemans CommitDate: 2024-03-23 11:28:22 +0000 security/beidconnect: New port, version 2.10 BeIDConnect is a browser extension to sign documents with a Belgian eID card. --- security/Makefile | 1 + security/beidconnect/Makefile | 30 +++++++++++++++++++++++++ security/beidconnect/distinfo | 3 +++ security/beidconnect/files/patch-linux_Makefile | 26 +++++++++++++++++++++ security/beidconnect/pkg-descr | 10 +++++++++ security/beidconnect/pkg-plist | 3 +++ 6 files changed, 73 insertions(+) diff --git a/security/Makefile b/security/Makefile index 646803f0dea2..e050b2c879b5 100644 --- a/security/Makefile +++ b/security/Makefile @@ -51,6 +51,7 @@ SUBDIR += bearssl SUBDIR += beecrypt SUBDIR += beid + SUBDIR += beidconnect SUBDIR += belier SUBDIR += bfbtester SUBDIR += binwalk diff --git a/security/beidconnect/Makefile b/security/beidconnect/Makefile new file mode 100644 index 000000000000..e77d705a4be9 --- /dev/null +++ b/security/beidconnect/Makefile @@ -0,0 +1,30 @@ +PORTNAME= beidconnect +DISTVERSION= 2.10 +CATEGORIES= security + +MAINTAINER= tijl@FreeBSD.org +COMMENT= Belgian eID digital signature browser extension backend +WWW= https://github.com/Fedict/fts-beidconnect + +LICENSE= MIT + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/property_tree/ptree.hpp:devel/boost-libs +LIB_DEPENDS= libpcsclite.so:devel/pcsc-lite + +USES= gmake localbase pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= Fedict +GH_PROJECT= fts-beidconnect + +ALL_TARGET= beidconnect +BUILD_WRKSRC= ${WRKSRC}/linux +INSTALL_WRKSRC= ${WRKSRC}/linux + +post-install: + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/chromium/native-messaging-hosts + ${MKDIR} ${STAGEDIR}${PREFIX}/lib/mozilla/native-messaging-hosts + ${STAGEDIR}${PREFIX}/bin/beidconnect -setup ${PREFIX}/bin \ + ${STAGEDIR}${PREFIX}/etc/chromium/native-messaging-hosts \ + ${STAGEDIR}${PREFIX}/lib/mozilla/native-messaging-hosts + +.include diff --git a/security/beidconnect/distinfo b/security/beidconnect/distinfo new file mode 100644 index 000000000000..daae3777bb16 --- /dev/null +++ b/security/beidconnect/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1710861679 +SHA256 (Fedict-fts-beidconnect-2.10_GH0.tar.gz) = 59f99e378b17aa85331f5082a4ab5dd5c2dfced1962b1a5fde4e53d385dd9080 +SIZE (Fedict-fts-beidconnect-2.10_GH0.tar.gz) = 1696103 diff --git a/security/beidconnect/files/patch-linux_Makefile b/security/beidconnect/files/patch-linux_Makefile new file mode 100644 index 000000000000..febdd7405820 --- /dev/null +++ b/security/beidconnect/files/patch-linux_Makefile @@ -0,0 +1,26 @@ +--- linux/Makefile.orig 2023-11-13 21:45:08 UTC ++++ linux/Makefile +@@ -1,16 +1,19 @@ ++CFLAGS ?= -O2 ++CXXFLAGS ?= -O2 + PLDFLAGS = $(shell pkg-config --libs libpcsclite) + PCFLAGS = $(shell pkg-config --cflags libpcsclite) ++PREFIX ?= /usr + beidconnect: asn1.o BEIDCard.o CardFactory.o CardReader.o CertChainRequestHandler.o comm.o hash.o InfoRequestHandler.o log.o main.o native.o ReaderList.o Request.o RequestHandler.o SCard.o SignRequestHandler.o UserCertsRequestHandler.o util.o VersionRequestHandler.o VirtualCard.o VirtualReader.o x509Util.o crypto.o setup.o test.o IDRequestHandler.o + $(CXX) $^ $(PLDFLAGS) $(LDFLAGS) -o $@ + + %.o: ../common/%.cpp +- $(CXX) -c -O2 -std=gnu++11 $(CXXFLAGS) $(PCFLAGS) -fPIE -I../common -o $@ $< ++ $(CXX) -c -std=gnu++11 $(CXXFLAGS) $(PCFLAGS) -fPIE -I../common -o $@ $< + %.o: ../common/%.c +- $(CC) -c -O2 -std=gnu99 $(CFLAGS) $(PCFLAGS) -fPIE -I../common -o $@ $< ++ $(CC) -c -std=gnu99 $(CFLAGS) $(PCFLAGS) -fPIE -I../common -o $@ $< + + install: +- install -d $(DESTDIR)/usr/bin +- install -m 755 beidconnect $(DESTDIR)/usr/bin/ ++ install -d $(DESTDIR)$(PREFIX)/bin ++ install -m 755 beidconnect $(DESTDIR)$(PREFIX)/bin/ + + clean: + rm -f *.o beidconnect diff --git a/security/beidconnect/pkg-descr b/security/beidconnect/pkg-descr new file mode 100644 index 000000000000..0d630809d2b3 --- /dev/null +++ b/security/beidconnect/pkg-descr @@ -0,0 +1,10 @@ +BeIDConnect is a browser extension to sign documents with a Belgian eID +card. + +Only belgium.be and fgov.be websites can make use of the BeIDConnect +extension to create an electronic signature. These websites are +operated by institutions of the Belgian federal government. + +This package only contains the backend that connects with your card +reader. The extension itself has to be installed through your web +browser. diff --git a/security/beidconnect/pkg-plist b/security/beidconnect/pkg-plist new file mode 100644 index 000000000000..29b2db6a0aaa --- /dev/null +++ b/security/beidconnect/pkg-plist @@ -0,0 +1,3 @@ +bin/beidconnect +etc/chromium/native-messaging-hosts/be.bosa.beidconnect.json +lib/mozilla/native-messaging-hosts/be.bosa.beidconnect.json