]> git.armaanb.net Git - asd-repo.git/commitdiff
rsync: new package at 3.2.3
authorArmaan Bhojwani <me@armaanb.net>
Fri, 2 Jul 2021 19:06:10 +0000 (15:06 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Fri, 2 Jul 2021 19:06:10 +0000 (15:06 -0400)
rsync/build [new file with mode: 0755]
rsync/checksums [new file with mode: 0644]
rsync/depends [new file with mode: 0644]
rsync/files/mkproto.awk [new file with mode: 0644]
rsync/sources [new file with mode: 0644]
rsync/version [new file with mode: 0644]

diff --git a/rsync/build b/rsync/build
new file mode 100755 (executable)
index 0000000..8461018
--- /dev/null
@@ -0,0 +1,18 @@
+#!/bin/sh -e
+
+# Swap to awk script instead of perl script
+# for building rsync. See files/mkproto.awk.
+sed -i 's/perl/awk -f/;s/mkproto.pl/mkproto.awk/' Makefile.in
+
+export CFLAGS="-static $CFLAGS"
+
+./configure \
+    --prefix=/usr \
+    --with-included-popt \
+    --disable-xxhash \
+    --disable-lz4 \
+    --enable-zstd \
+    --without-included-zlib
+
+make
+make DESTDIR="$1" install
diff --git a/rsync/checksums b/rsync/checksums
new file mode 100644 (file)
index 0000000..4c0f123
--- /dev/null
@@ -0,0 +1,2 @@
+becc3c504ceea499f4167a260040ccf4d9f2ef9499ad5683c179a697146ce50e  rsync-3.2.3.tar.gz
+301240aecba5b8fbda8310c841ef61e3c1f312a55378f6079f8d65ae1bd811f2  mkproto.awk
diff --git a/rsync/depends b/rsync/depends
new file mode 100644 (file)
index 0000000..d785ee4
--- /dev/null
@@ -0,0 +1,2 @@
+zlib make
+zstd
\ No newline at end of file
diff --git a/rsync/files/mkproto.awk b/rsync/files/mkproto.awk
new file mode 100644 (file)
index 0000000..d3802f9
--- /dev/null
@@ -0,0 +1,39 @@
+#!/usr/bin/awk -f
+
+BEGIN {
+    while ((getline i < "proto.h") > 0) old_protos = old_protos ? old_protos "\n" i : i
+    protos = "/* This file is automatically generated with \"make proto\". DO NOT EDIT */\n"
+}
+
+inheader {
+    protos = protos "\n" ((inheader = /\)[ \t]*$/ ? 0 : 1) ? $0 : $0 ";")
+    next
+}
+
+/^FN_(LOCAL|GLOBAL)_[^(]+\([^,()]+/ {
+    local = /^FN_LOCAL/
+    gsub(/^FN_(LOC|GLOB)AL_|,.*$/, "")
+    sub(/^BOOL\(/, "BOOL ")
+    sub(/^CHAR\(/, "char ")
+    sub(/^INTEGER\(/, "int ")
+    sub(/^STRING\(/, "char *")
+    protos = protos "\n" $0 (local ? "(int module_id);" : "(void);")
+    next
+}
+
+/^static|^extern|;/||!/^[A-Za-z][A-Za-z0-9_]* / { next }
+
+/\(.*\)[ \t]*$/ {
+    protos = protos "\n" $0 ";"
+    next
+}
+
+/\(/ {
+    inheader = 1
+    protos = protos "\n" $0
+}
+
+END {
+    if (old_protos != protos) print protos > "proto.h"
+    print "" > "proto.h-tstamp"
+}
diff --git a/rsync/sources b/rsync/sources
new file mode 100644 (file)
index 0000000..8cf1740
--- /dev/null
@@ -0,0 +1,2 @@
+https://download.samba.org/pub/rsync/src/rsync-3.2.3.tar.gz
+files/mkproto.awk
diff --git a/rsync/version b/rsync/version
new file mode 100644 (file)
index 0000000..088245e
--- /dev/null
@@ -0,0 +1 @@
+3.2.3 1