aboutsummaryrefslogtreecommitdiff
path: root/core/rsync/build
diff options
context:
space:
mode:
Diffstat (limited to 'core/rsync/build')
-rwxr-xr-xcore/rsync/build15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/rsync/build b/core/rsync/build
new file mode 100755
index 00000000..8b4a7e2c
--- /dev/null
+++ b/core/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