pkgsrc-Changes archive

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

CVS commit: pkgsrc/security



Module Name:    pkgsrc
Committed By:   nikita
Date:           Mon Dec  5 21:57:58 UTC 2022

Modified Files:
        pkgsrc/security: Makefile
Added Files:
        pkgsrc/security/git-crypt: DESCR Makefile PLIST distinfo
        pkgsrc/security/git-crypt/patches: patch-util.cpp

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.882 -r1.883 pkgsrc/security/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/security/git-crypt/DESCR \
    pkgsrc/security/git-crypt/Makefile pkgsrc/security/git-crypt/PLIST \
    pkgsrc/security/git-crypt/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/git-crypt/patches/patch-util.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/Makefile
diff -u pkgsrc/security/Makefile:1.882 pkgsrc/security/Makefile:1.883
--- pkgsrc/security/Makefile:1.882      Tue Nov 29 05:59:16 2022
+++ pkgsrc/security/Makefile    Mon Dec  5 21:57:57 2022
@@ -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+=      flawfinder
 SUBDIR+=       fprint-demo
 SUBDIR+=       fsh
 SUBDIR+=       gcr
+SUBDIR+=       git-crypt
 SUBDIR+=       gnome-keyring
 SUBDIR+=       gnu-crypto
 SUBDIR+=       gnu-pw-mgr

Added files:

Index: pkgsrc/security/git-crypt/DESCR
diff -u /dev/null pkgsrc/security/git-crypt/DESCR:1.1
--- /dev/null   Mon Dec  5 21:57:58 2022
+++ pkgsrc/security/git-crypt/DESCR     Mon Dec  5 21:57:58 2022
@@ -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.
Index: pkgsrc/security/git-crypt/Makefile
diff -u /dev/null pkgsrc/security/git-crypt/Makefile:1.1
--- /dev/null   Mon Dec  5 21:57:58 2022
+++ pkgsrc/security/git-crypt/Makefile  Mon Dec  5 21:57:58 2022
@@ -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"
Index: pkgsrc/security/git-crypt/PLIST
diff -u /dev/null pkgsrc/security/git-crypt/PLIST:1.1
--- /dev/null   Mon Dec  5 21:57:58 2022
+++ pkgsrc/security/git-crypt/PLIST     Mon Dec  5 21:57:58 2022
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/05 21:57:58 nikita Exp $
+bin/git-crypt
Index: pkgsrc/security/git-crypt/distinfo
diff -u /dev/null pkgsrc/security/git-crypt/distinfo:1.1
--- /dev/null   Mon Dec  5 21:57:58 2022
+++ pkgsrc/security/git-crypt/distinfo  Mon Dec  5 21:57:58 2022
@@ -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

Index: pkgsrc/security/git-crypt/patches/patch-util.cpp
diff -u /dev/null pkgsrc/security/git-crypt/patches/patch-util.cpp:1.1
--- /dev/null   Mon Dec  5 21:57:58 2022
+++ pkgsrc/security/git-crypt/patches/patch-util.cpp    Mon Dec  5 21:57:58 2022
@@ -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