From 3a71f4ee2d226648ca66b42f0fdfd587c52639c7 Mon Sep 17 00:00:00 2001 From: Matias Fonzo Date: Fri, 29 Dec 2017 20:08:22 -0300 Subject: [PATCH] add rsync 3.1.2 --- recipes/networking.order | 1 + recipes/networking/rsync/recipe | 78 +++++++++++++++++++++++++++++++++++++++ sources/SOURCELIST.txt | 1 + sources/rsync-3.1.2.tar.gz.sha256 | 1 + 4 files changed, 81 insertions(+) create mode 100644 recipes/networking/rsync/recipe create mode 100644 sources/rsync-3.1.2.tar.gz.sha256 diff --git a/recipes/networking.order b/recipes/networking.order index 10742d2f..58503ec8 100644 --- a/recipes/networking.order +++ b/recipes/networking.order @@ -34,3 +34,4 @@ networking/dhcpcd: networking/irssi: networking/libressl libs/glib2 networking/wget: networking/libressl +networking/rsync: libs/libz diff --git a/recipes/networking/rsync/recipe b/recipes/networking/rsync/recipe new file mode 100644 index 00000000..e9a635fc --- /dev/null +++ b/recipes/networking/rsync/recipe @@ -0,0 +1,78 @@ +# Build recipe for rsync. +# +# Copyright (c) 2017 Matias Fonzo, . +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +program=rsync +version=3.1.2 +release=1 + +tarname=${program}-${version}.tar.gz + +# Remote source(s) +fetch=https://download.samba.org/pub/rsync/src/$tarname + +description=" +A fast, versatile, remote (and local) file-copying tool. + +Rsync is a fast and extraordinarily versatile file copying tool. +It can copy locally, to/from another host over any remote shell, +or to/from a remote rsync daemon. +" + +homepage=http://rsync.samba.org +license=GPLv3+ + +# Source documentation +docs="COPYING NEWS README TODO" +docsdir="${docdir}/${program}-${version}" + +build() +{ + set -e + + unpack "${tardir}/$tarname" + + cd "$srcdir" + + ./configure CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS -static" \ + $configure_args \ + --libdir=/usr/lib${libSuffix} \ + --mandir=$mandir \ + --disable-debug \ + --without-included-zlib \ + --build="$(cc -dumpmachine)" + + make -j${jobs} V=1 + make -j${jobs} DESTDIR="$destdir" install + + # Compress and link man pages (if needed) + if test -d "${destdir}/$mandir" + then + ( + cd "${destdir}/$mandir" + find . -type f -exec lzip -9 '{}' + + find . -type l | while read -r file + do + ln -sf "$(readlink -- "$file").lz" "${file}.lz" + rm -- "$file" + done + ) + fi + + # Copy documentation + mkdir -p "${destdir}${docsdir}" + cp -p $docs "${destdir}${docsdir}" +} + diff --git a/sources/SOURCELIST.txt b/sources/SOURCELIST.txt index 82baea1a..bb84ed7b 100644 --- a/sources/SOURCELIST.txt +++ b/sources/SOURCELIST.txt @@ -359,3 +359,4 @@ http://ftp.barfooze.de/pub/sabotage/tarballs/libelf-compat-0.156c001.tar.xz http://www.kernel.org/pub/software/scm/git/git-2.15.1.tar.gz http://www.kernel.org/pub/software/scm/git/git-manpages-2.15.1.tar.gz http://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/xf86-video-intel-20170826.tar.xz +http://download.samba.org/pub/rsync/src/rsync-3.1.2.tar.gz diff --git a/sources/rsync-3.1.2.tar.gz.sha256 b/sources/rsync-3.1.2.tar.gz.sha256 new file mode 100644 index 00000000..80f949f4 --- /dev/null +++ b/sources/rsync-3.1.2.tar.gz.sha256 @@ -0,0 +1 @@ +ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2 rsync-3.1.2.tar.gz -- 2.11.4.GIT