r2663 - configs/daniel/desktop/config/chroot_local-includes/usr/local/bin
daniel at alioth.debian.org
daniel at alioth.debian.org
Sat Aug 4 09:22:58 UTC 2007
Author: daniel
Date: 2007-08-04 09:22:58 +0000 (Sat, 04 Aug 2007)
New Revision: 2663
Added:
configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/gpg-sign
configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha1sums
configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha256sums
Modified:
configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/md5sums
Log:
Added: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/gpg-sign
===================================================================
--- configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/gpg-sign (rev 0)
+++ configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/gpg-sign 2007-08-04 09:22:58 UTC (rev 2663)
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+set -e
+
+gpg --output "${1}.gpg" -ba "${1}"
Property changes on: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/gpg-sign
___________________________________________________________________
Name: svn:executable
+ *
Modified: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/md5sums
===================================================================
--- configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/md5sums 2007-08-03 06:46:44 UTC (rev 2662)
+++ configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/md5sums 2007-08-04 09:22:58 UTC (rev 2663)
@@ -7,6 +7,26 @@
set -e
+case "`basename ${0}`" in
+ md5sums|md5sums.sh)
+ DIGEST="MD5"
+ NAME="md5sums"
+ PROGRAM="md5sum"
+ ;;
+
+ sha1sums|sha1sums.sh)
+ DIGEST="SHA1"
+ NAME="sha1sums"
+ PROGRAM="sha1sum"
+ ;;
+
+ sha256sums|sha256sums.sh)
+ DIGEST="SHA256"
+ NAME="sha256sums"
+ PROGRAM="sha256sum"
+ ;;
+esac
+
Passphrase ()
{
if [ -z "${PASSPHRASE}" ]
@@ -33,28 +53,28 @@
fi
# Remove old digests
- rm -f MD5SUM*
+ rm -f ${DIGEST}SUM*
if [ ! -z "`ls`" ]
then
# Create digest
- md5sum * > MD5SUMS
+ ${PROGRAM} * > ${DIGEST}SUMS
# Sign digest
- echo "${PASSPHRASE}" | gpg --quiet --passphrase-fd 0 --clearsign MD5SUMS
- mv -f MD5SUMS.asc MD5SUMS
+ echo "${PASSPHRASE}" | gpg --quiet --passphrase-fd 0 --clearsign ${DIGEST}SUMS
+ mv -f ${DIGEST}SUMS.asc ${DIGEST}SUMS
fi
}
Md5check ()
{
- if [ -r MD5SUMS ]
+ if [ -r ${DIGEST}SUMS ]
then
- gpg --verify MD5SUMS
- md5sum -c MD5SUMS
- elif [ -f MD5SUMS ]
+ gpg --verify ${DIGEST}SUMS
+ ${PROGRAM} -c ${DIGEST}SUMS
+ elif [ -f ${DIGEST}SUMS ]
then
- echo "W: cannot read `pwd`/MD5SUMS: Permission denied."
+ echo "W: cannot read `pwd`/${DIGEST}SUMS: Permission denied."
fi
}
@@ -90,11 +110,11 @@
;;
--clean)
- find "`pwd`" -type f -name "MD5SUM*" | xargs rm -f
+ find "`pwd`" -type f -name "${DIGEST}SUM*" | xargs rm -f
;;
--list)
- find "`pwd`" -type f -name "MD5SUM*"
+ find "`pwd`" -type f -name "${DIGEST}SUM*"
;;
-s|--sum)
@@ -136,7 +156,7 @@
;;
-h|--help)
- echo "md5sums.sh - Generate signed MD5 message digests files"
+ echo "${NAME} - Generate signed ${DIGEST} message digests files"
echo
echo "Usage: `basename ${0}` [-c|--check] [-cc|--recursive-check] [-ccc|--double-recursive-check]"
echo "Usage: `basename ${0}` [--clean] [--list]"
Added: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha1sums
===================================================================
--- configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha1sums (rev 0)
+++ configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha1sums 2007-08-04 09:22:58 UTC (rev 2663)
@@ -0,0 +1 @@
+link md5sums
\ No newline at end of file
Property changes on: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha1sums
___________________________________________________________________
Name: svn:special
+ *
Added: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha256sums
===================================================================
--- configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha256sums (rev 0)
+++ configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha256sums 2007-08-04 09:22:58 UTC (rev 2663)
@@ -0,0 +1 @@
+link md5sums
\ No newline at end of file
Property changes on: configs/daniel/desktop/config/chroot_local-includes/usr/local/bin/sha256sums
___________________________________________________________________
Name: svn:special
+ *
More information about the debian-live-changes
mailing list