93 lines
2.4 KiB
Bash
93 lines
2.4 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=rsync
|
|
_tag='b13e7a8ef4fa430223f66403506fb821caae5cfd' # git rev-parse v${pkgver}
|
|
pkgver=3.2.7
|
|
pkgrel=03
|
|
pkgdesc='A fast and versatile file copying tool for remote and local files w/o systemd zstd ipv6'
|
|
arch=('x86_64')
|
|
url='https://rsync.samba.org/'
|
|
depends=('acl' 'libacl.so' 'lz4' 'openssl' 'popt' 'xxhash' 'libxxhash.so'
|
|
'zlib' 'zstd')
|
|
makedepends=('git' 'python-commonmark')
|
|
optdepends=('python: for rrsync')
|
|
backup=('etc/rsyncd.conf'
|
|
'etc/xinetd.d/rsync')
|
|
#options=('debug') ### uncomment this to have the debug pkg produced
|
|
source=("git+https://github.com/WayneD/rsync#tag=${_tag}?signed"
|
|
'rsyncd.conf')
|
|
|
|
#_backports=(
|
|
# # Fix really silly bug with --relative rules.
|
|
# '464555ea923b32f3504678d05bc7de9205e5c8da'
|
|
#
|
|
# # Fix bug with validing remote filter rules.
|
|
# '950730313de994d191ba2d5be575e97690b355e8'
|
|
#)
|
|
|
|
_reverts=(
|
|
)
|
|
|
|
prepare() {
|
|
|
|
cd "$srcdir/rsync"
|
|
|
|
local _c
|
|
for _c in "${_backports[@]}"; do
|
|
if [[ $_c == *..* ]]; then
|
|
git log --oneline --reverse "${_c}"
|
|
else
|
|
git log --oneline -1 "${_c}"
|
|
fi
|
|
git cherry-pick -n -m1 "${_c}"
|
|
done
|
|
for _c in "${_reverts[@]}"; do
|
|
git log --oneline -1 "${_c}"
|
|
git revert -n "${_c}"
|
|
done
|
|
}
|
|
|
|
build() {
|
|
cd "$srcdir/rsync"
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--disable-debug \
|
|
--with-included-popt=no \
|
|
--with-included-zlib=no \
|
|
--with-systemd=no \
|
|
--disable-zstd \
|
|
--disable-ipv6
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$srcdir/rsync"
|
|
make test
|
|
}
|
|
|
|
package() {
|
|
cd "$srcdir/rsync"
|
|
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm0644 ../rsyncd.conf "$pkgdir/etc/rsyncd.conf"
|
|
install -Dm0644 packaging/lsb/rsync.xinetd "$pkgdir/etc/xinetd.d/rsync"
|
|
install -Dm0755 support/rrsync "$pkgdir/usr/lib/rsync/rrsync"
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=(GPL3)
|
|
|
|
validpgpkeys=(0048C8B026D4C96F0E589C2F6C859FB14B96A8C5) # Wayne Davison <wayned@users.sourceforge.net>
|
|
|
|
sha256sums=(SKIP
|
|
733ccb571721433c3a6262c58b658253ca6553bec79c2bdd0011810bb4f2156b) # rsyncd.conf
|
|
|
|
|
|
# 8bec3e170f986d85e59aa8f9ec6ac1851496277e9ff607dd1fe944ee4b3111e4 rsync-3.2.7-03-x86_64.pkg.tar.xz
|