diff --git a/net-misc/rsync-bpc/files/rsync-bpc-3.1.3.0-fix-gettimeofday-error.patch b/net-misc/rsync-bpc/files/rsync-bpc-3.1.3.0-fix-gettimeofday-error.patch new file mode 100644 index 0000000000000..92fec6fcec4ea --- /dev/null +++ b/net-misc/rsync-bpc/files/rsync-bpc-3.1.3.0-fix-gettimeofday-error.patch @@ -0,0 +1,14 @@ +--- rsync-bpc-3.1.3.0/configure.ac.old 2025-02-21 20:05:47.000000000 -0600 ++++ rsync-bpc-3.1.3.0/configure.ac 2025-02-21 20:02:27.000000000 -0600 +@@ -852,7 +852,9 @@ + + AC_CACHE_CHECK([if gettimeofday takes tz argument],rsync_cv_HAVE_GETTIMEOFDAY_TZ,[ + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +-#include ]], [[struct timeval tv; exit(gettimeofday(&tv, NULL));]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])]) ++#ifdef HAVE_UNISTD_H ++#include ++#endif]], [[struct timeval tv; return gettimeofday(&tv, NULL);]])],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=yes],[rsync_cv_HAVE_GETTIMEOFDAY_TZ=no])]) + if test x"$rsync_cv_HAVE_GETTIMEOFDAY_TZ" != x"no"; then + AC_DEFINE(HAVE_GETTIMEOFDAY_TZ, 1, [Define to 1 if gettimeofday() takes a time-zone arg]) + fi + diff --git a/net-misc/rsync-bpc/metadata.xml b/net-misc/rsync-bpc/metadata.xml index bf9ec30888efa..7744f6e67e12f 100644 --- a/net-misc/rsync-bpc/metadata.xml +++ b/net-misc/rsync-bpc/metadata.xml @@ -9,4 +9,7 @@ proxy-maint@gentoo.org Proxy Maintainers + + backuppc/rsync-bpc + diff --git a/net-misc/rsync-bpc/rsync-bpc-3.1.3.0-r1.ebuild b/net-misc/rsync-bpc/rsync-bpc-3.1.3.0-r1.ebuild new file mode 100644 index 0000000000000..bebf09918c681 --- /dev/null +++ b/net-misc/rsync-bpc/rsync-bpc-3.1.3.0-r1.ebuild @@ -0,0 +1,26 @@ +# Copyright 2022-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Rsync-bpc is a customized version of rsync that is used as part of BackupPC" +HOMEPAGE="https://github.com/backuppc/rsync-bpc" +SRC_URI="https://github.com/backuppc/rsync-bpc/releases/download/${PV}/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="virtual/ssh" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}/${P}-fix-gettimeofday-error.patch" #874666 +) + +src_prepare() { + default + eautoreconf +}