diff options
author | Erich Eckner <git@eckner.net> | 2017-03-07 09:36:41 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2017-03-07 09:36:41 +0100 |
commit | 7ebcb11388dc67248c5150115555a7ff5c4595b7 (patch) | |
tree | e39a7321e4e39c3f35024c12c41240aeb83ec6cb /core/ports | |
parent | 0c44422e2055c108133a0df2c7315bc660557c17 (diff) | |
download | crux-patches-7ebcb11388dc67248c5150115555a7ff5c4595b7.tar.xz |
ports kann aktualisiert jetzt wirklich(er) Signatur von den Dateien, die gepatcht wurden
Diffstat (limited to 'core/ports')
-rw-r--r-- | core/ports/post_update_patches.patch.new | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/core/ports/post_update_patches.patch.new b/core/ports/post_update_patches.patch.new index 7326176..6dffe31 100644 --- a/core/ports/post_update_patches.patch.new +++ b/core/ports/post_update_patches.patch.new @@ -1,6 +1,6 @@ --- ports.in 2004-03-07 21:55:24.000000000 +0100 +++ ports.in 2016-04-27 22:41:06.030194539 +0200 -@@ -22,6 +22,54 @@ +@@ -22,6 +22,57 @@ VERSION="#VERSION#" PORTS_DIR="/usr/ports" @@ -35,13 +35,16 @@ + *.patch) + echo "$(pwd): patching '$DATEI' ..." + patch -p0 -i $DATEI || exit $? -+ sed -i '/^SHA256 (Pkgfile) = /d' .signature ++ for PF in $(grep '^--- ' $DATEI | awk '{print $2}' | sort -u); do ++ sed -i "/^SHA256 ($PF) = /d" .signature ++ sha256sum --tag $PF >> .signature ++ done + ;; + *.new) + echo "$(pwd): copying '$DATEI'" + cp $DATEI $(basename $DATEI .new) + md5sum $(basename $DATEI .new) >> .md5sum -+ sha512sum --tag $(basename $DATEI .new) >> .signature ++ sha256sum --tag $(basename $DATEI .new) >> .signature + ;; + *) + echo "$COMMAND: patch file '$DATEI' has unknown extension" @@ -55,7 +58,7 @@ check_ports_dir() { if [ ! -d "$PORTS_DIR" ]; then -@@ -53,6 +101,7 @@ +@@ -53,6 +104,7 @@ file=/etc/ports/$collection.$suffix if [ -f $file ]; then $driver $file @@ -63,7 +66,7 @@ fi fi done -@@ -67,6 +116,7 @@ +@@ -67,6 +119,7 @@ suffix=`basename $driver` for file in /etc/ports/*.$suffix; do $driver $file |