summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--development/git-crypt/README11
-rw-r--r--development/git-crypt/git-crypt.SlackBuild93
-rw-r--r--development/git-crypt/git-crypt.info10
-rw-r--r--development/git-crypt/slack-desc19
4 files changed, 133 insertions, 0 deletions
diff --git a/development/git-crypt/README b/development/git-crypt/README
new file mode 100644
index 0000000000..6363c7b888
--- /dev/null
+++ b/development/git-crypt/README
@@ -0,0 +1,11 @@
+git-crypt - transparent file encryption in git
+
+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 --git a/development/git-crypt/git-crypt.SlackBuild b/development/git-crypt/git-crypt.SlackBuild
new file mode 100644
index 0000000000..d2311f3035
--- /dev/null
+++ b/development/git-crypt/git-crypt.SlackBuild
@@ -0,0 +1,93 @@
+#!/bin/sh
+
+# Slackware build script for git-crypt
+
+# Copyright 2021 Nicolas Piatto <nico@lodpp.net> FRANCE
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 1. Redistributions of this script must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+#
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+# 02/Mar/2021 * First version
+
+PRGNAM=git-crypt
+VERSION=${VERSION:-0.6.0}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+if [ "$ARCH" = "i586" ]; then
+ SLKCFLAGS="-O2 -march=i586 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+find -L . \
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -o -perm 511 \) -exec chmod 755 {} \; -o \
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+make
+make install ENABLE_MAN=yes DESTDIR=$PKG
+
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a \
+ doc AUTHORS CONTRIBUTING.md COPYING NEWS README \
+ RELEASE_NOTES-0.4.1.md RELEASE_NOTES-0.4.md THANKS.md \
+ $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+
+mkdir -p $PKG/install
+cat $CWD/slack-desc > $PKG/install/slack-desc
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/development/git-crypt/git-crypt.info b/development/git-crypt/git-crypt.info
new file mode 100644
index 0000000000..a6a3260538
--- /dev/null
+++ b/development/git-crypt/git-crypt.info
@@ -0,0 +1,10 @@
+PRGNAM="git-crypt"
+VERSION="0.6.0"
+HOMEPAGE="https://www.agwa.name/projects/git-crypt/"
+DOWNLOAD="https://github.com/AGWA/git-crypt/archive/0.6.0/git-crypt-0.6.0.tar.gz"
+MD5SUM="0667274390a7e90313c443b70df4e5f9"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+REQUIRES=""
+MAINTAINER="Nicolas Piatto"
+EMAIL="nico@lodpp.net"
diff --git a/development/git-crypt/slack-desc b/development/git-crypt/slack-desc
new file mode 100644
index 0000000000..c7b4bd94f6
--- /dev/null
+++ b/development/git-crypt/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description.
+# Line up the first '|' above the ':' following the base package name, and
+# the '|' on the right side marks the last column you can put a character in.
+# You must make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':' except on otherwise blank lines.
+
+ |-----handy-ruler------------------------------------------------------|
+git-crypt: git-crypt (transparent file encryption in git)
+git-crypt:
+git-crypt: git-crypt enables transparent encryption and decryption of files in a
+git-crypt: a git repository. Files which you choose to protect are encrypted
+git-crypt: when committed, and decrypted when checked out. git-crypt lets you
+git-crypt: freely share a repository containing a mix of public and private
+git-crypt: content. git-crypt gracefully degrades, so developers without the
+git-crypt: secret key can still clone and commit to a repository with encrypted
+git-crypt: files. This lets you store your secret material (such as keys or
+git-crypt: passwords) in the same repository as your code, without requiring you
+git-crypt: to lock down your entire repository