diff options
-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 |