pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/security security/git-crypt: Import git-crypt version ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/27e0eb2808c7
branches:  trunk
changeset: 389540:27e0eb2808c7
user:      nikita <nikita%pkgsrc.org@localhost>
date:      Mon Dec 05 21:57:57 2022 +0000

description:
security/git-crypt: Import git-crypt version 0.7.0 from wip.

git-crypt enables transparent encryption and decryption of files in a
git repository.  Files which you choose to protect are encrypted when
committed, and decrypted when checked out.  git-crypt lets you freely
share a repository containing a mix of public and private content.
git-crypt gracefully degrades, so developers without the secret key can
still clone and commit to a repository with encrypted files.  This lets
you store your secret material (such as keys or passwords) in the same
repository as your code, without requiring you to lock down your entire
repository.

diffstat:

 security/Makefile                         |   3 ++-
 security/git-crypt/DESCR                  |   9 +++++++++
 security/git-crypt/Makefile               |  20 ++++++++++++++++++++
 security/git-crypt/PLIST                  |   2 ++
 security/git-crypt/distinfo               |   6 ++++++
 security/git-crypt/patches/patch-util.cpp |  19 +++++++++++++++++++
 6 files changed, 58 insertions(+), 1 deletions(-)

diffs (93 lines):

diff -r 263a6c1affee -r 27e0eb2808c7 security/Makefile
--- a/security/Makefile Mon Dec 05 21:44:58 2022 +0000
+++ b/security/Makefile Mon Dec 05 21:57:57 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.882 2022/11/29 05:59:16 adam Exp $
+# $NetBSD: Makefile,v 1.883 2022/12/05 21:57:57 nikita Exp $
 #
 
 COMMENT=       Security and cryptography tools and libraries
@@ -99,6 +99,7 @@
 SUBDIR+=       fprint-demo
 SUBDIR+=       fsh
 SUBDIR+=       gcr
+SUBDIR+=       git-crypt
 SUBDIR+=       gnome-keyring
 SUBDIR+=       gnu-crypto
 SUBDIR+=       gnu-pw-mgr
diff -r 263a6c1affee -r 27e0eb2808c7 security/git-crypt/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/git-crypt/DESCR  Mon Dec 05 21:57:57 2022 +0000
@@ -0,0 +1,9 @@
+git-crypt enables transparent encryption and decryption of files in a
+git repository.  Files which you choose to protect are encrypted when
+committed, and decrypted when checked out.  git-crypt lets you freely
+share a repository containing a mix of public and private content.
+git-crypt gracefully degrades, so developers without the secret key can
+still clone and commit to a repository with encrypted files.  This lets
+you store your secret material (such as keys or passwords) in the same
+repository as your code, without requiring you to lock down your entire
+repository.
diff -r 263a6c1affee -r 27e0eb2808c7 security/git-crypt/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/git-crypt/Makefile       Mon Dec 05 21:57:57 2022 +0000
@@ -0,0 +1,20 @@
+# $NetBSD: Makefile,v 1.1 2022/12/05 21:57:58 nikita Exp $
+
+DISTNAME=      git-crypt-0.7.0
+CATEGORIES=    security
+MASTER_SITES=  https://www.agwa.name/projects/git-crypt/downloads/
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.agwa.name/projects/git-crypt/
+COMMENT=       Transparent file encryption in git
+LICENSE=       gnu-gpl-v3
+
+USE_LANGUAGES= c++11
+
+SUBST_CLASSES+=                        explicit_memset
+SUBST_STAGE.explicit_memset=   pre-configure
+SUBST_MESSAGE.explicit_memset= Avoid conflicts with explicit_memset(3)
+SUBST_FILES.explicit_memset=   *.cpp *.hpp
+SUBST_SED.explicit_memset+=    -e 's,explicit_memset,gitcrypt_explicit_memset,g'
+
+.include "../../mk/bsd.pkg.mk"
diff -r 263a6c1affee -r 27e0eb2808c7 security/git-crypt/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/git-crypt/PLIST  Mon Dec 05 21:57:57 2022 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/05 21:57:58 nikita Exp $
+bin/git-crypt
diff -r 263a6c1affee -r 27e0eb2808c7 security/git-crypt/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/git-crypt/distinfo       Mon Dec 05 21:57:57 2022 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2022/12/05 21:57:58 nikita Exp $
+
+BLAKE2s (git-crypt-0.7.0.tar.gz) = 742db2743dd7c5daea1658c8028a8024839151eb8a28bb545c6f5e12a5980208
+SHA512 (git-crypt-0.7.0.tar.gz) = 88eb730f0f0b4622c1a3ce64c62fa97a9a4da0716f4cce86fad8d700e2cb248dae8fc9e92996448564903564dbcddaa1f87201cf7ebc77144660f3044ae92904
+Size (git-crypt-0.7.0.tar.gz) = 57621 bytes
+SHA1 (patch-util.cpp) = ed9dee74f7e8d50f72670542323013d0a2d44464
diff -r 263a6c1affee -r 27e0eb2808c7 security/git-crypt/patches/patch-util.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/git-crypt/patches/patch-util.cpp Mon Dec 05 21:57:57 2022 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-util.cpp,v 1.1 2022/12/05 21:57:58 nikita Exp $
+
+Keep the C++ streams synchronized to the standard C streams on NetBSD otherwise
+it is not possible to read via std::cin.
+
+XXX: Why?
+
+--- util.cpp.orig      2017-11-26 18:24:03.000000000 +0000
++++ util.cpp
+@@ -141,7 +141,9 @@ static void        init_std_streams_platform ()
+ void          init_std_streams ()
+ {
+       // The following two lines are essential for achieving good performance:
++#ifndef __NetBSD__
+       std::ios_base::sync_with_stdio(false);
++#endif
+       std::cin.tie(0);
+ 
+       std::cin.exceptions(std::ios_base::badbit);



Home | Main Index | Thread Index | Old Index