From 96fcfde6452f55e1b7a7c4dea70f5219e02d4cf3 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sat, 25 Apr 2020 12:12:24 +0300 Subject: rsync: move to extra --- core/rsync/build | 15 --------------- core/rsync/checksums | 2 -- core/rsync/depends | 1 - core/rsync/files/mkproto.awk | 39 --------------------------------------- core/rsync/sources | 2 -- core/rsync/version | 1 - extra/rsync/build | 15 +++++++++++++++ extra/rsync/checksums | 2 ++ extra/rsync/depends | 1 + extra/rsync/files/mkproto.awk | 39 +++++++++++++++++++++++++++++++++++++++ extra/rsync/sources | 2 ++ extra/rsync/version | 1 + 12 files changed, 60 insertions(+), 60 deletions(-) delete mode 100755 core/rsync/build delete mode 100644 core/rsync/checksums delete mode 100644 core/rsync/depends delete mode 100644 core/rsync/files/mkproto.awk delete mode 100644 core/rsync/sources delete mode 100644 core/rsync/version create mode 100755 extra/rsync/build create mode 100644 extra/rsync/checksums create mode 100644 extra/rsync/depends create mode 100644 extra/rsync/files/mkproto.awk create mode 100644 extra/rsync/sources create mode 100644 extra/rsync/version diff --git a/core/rsync/build b/core/rsync/build deleted file mode 100755 index 8b4a7e2c..00000000 --- a/core/rsync/build +++ /dev/null @@ -1,15 +0,0 @@ -#!/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 \ - --without-included-zlib - -make -make DESTDIR="$1" install diff --git a/core/rsync/checksums b/core/rsync/checksums deleted file mode 100644 index f8cfcc6f..00000000 --- a/core/rsync/checksums +++ /dev/null @@ -1,2 +0,0 @@ -55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0 rsync-3.1.3.tar.gz -301240aecba5b8fbda8310c841ef61e3c1f312a55378f6079f8d65ae1bd811f2 mkproto.awk diff --git a/core/rsync/depends b/core/rsync/depends deleted file mode 100644 index 17a6d43d..00000000 --- a/core/rsync/depends +++ /dev/null @@ -1 +0,0 @@ -zlib make diff --git a/core/rsync/files/mkproto.awk b/core/rsync/files/mkproto.awk deleted file mode 100644 index d3802f95..00000000 --- a/core/rsync/files/mkproto.awk +++ /dev/null @@ -1,39 +0,0 @@ -#!/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/core/rsync/sources b/core/rsync/sources deleted file mode 100644 index 1f921867..00000000 --- a/core/rsync/sources +++ /dev/null @@ -1,2 +0,0 @@ -https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz -files/mkproto.awk diff --git a/core/rsync/version b/core/rsync/version deleted file mode 100644 index b803f4d1..00000000 --- a/core/rsync/version +++ /dev/null @@ -1 +0,0 @@ -3.1.3 2 diff --git a/extra/rsync/build b/extra/rsync/build new file mode 100755 index 00000000..8b4a7e2c --- /dev/null +++ b/extra/rsync/build @@ -0,0 +1,15 @@ +#!/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 \ + --without-included-zlib + +make +make DESTDIR="$1" install diff --git a/extra/rsync/checksums b/extra/rsync/checksums new file mode 100644 index 00000000..f8cfcc6f --- /dev/null +++ b/extra/rsync/checksums @@ -0,0 +1,2 @@ +55cc554efec5fdaad70de921cd5a5eeb6c29a95524c715f3bbf849235b0800c0 rsync-3.1.3.tar.gz +301240aecba5b8fbda8310c841ef61e3c1f312a55378f6079f8d65ae1bd811f2 mkproto.awk diff --git a/extra/rsync/depends b/extra/rsync/depends new file mode 100644 index 00000000..17a6d43d --- /dev/null +++ b/extra/rsync/depends @@ -0,0 +1 @@ +zlib make diff --git a/extra/rsync/files/mkproto.awk b/extra/rsync/files/mkproto.awk new file mode 100644 index 00000000..d3802f95 --- /dev/null +++ b/extra/rsync/files/mkproto.awk @@ -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/extra/rsync/sources b/extra/rsync/sources new file mode 100644 index 00000000..1f921867 --- /dev/null +++ b/extra/rsync/sources @@ -0,0 +1,2 @@ +https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz +files/mkproto.awk diff --git a/extra/rsync/version b/extra/rsync/version new file mode 100644 index 00000000..b803f4d1 --- /dev/null +++ b/extra/rsync/version @@ -0,0 +1 @@ +3.1.3 2 -- cgit v1.2.3