initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

68
rsync/PKGBUILD Normal file
View File

@@ -0,0 +1,68 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=rsync
pkgver=3.2.7
_debver=$pkgver
_debrel=1
pkgrel=1
pkgdesc="A file transfer program to keep remote files in sync"
arch=('i686' 'x86_64')
url='https://rsync.samba.org/'
license=('GPL-3')
depends=('acl' 'lz4' 'libressl' 'perl' 'popt' 'xxhash' 'zlib')
makedepends=('quilt')
backup=('etc/rsyncd.conf'
'etc/conf.d/rsyncd')
source=("https://rsync.samba.org/ftp/rsync/src/${pkgname}-${pkgver}.tar.gz"
"https://security.debian.org/debian-security/pool/updates/main/r/rsync/rsync_${_debver}-${_debrel}+deb12u2.debian.tar.xz"
"rsyncd.conf"
"rsyncd.confd"
"rsyncd.initd"
"rsyncd.run")
sha512sums=('c2afba11a352fd88133f9e96e19d6df80eb864450c83eced13a7faa23df947bccf2ef093f2101df6ee30abff4cbbd39ac802e9aa5f726e42c9caff274fad8377'
'ac0868ac9b3deb84b878b6f3306629ffdfe75b57c0923fbe7d8e97cc180ea40a11ba85f4e9d64de236b47635c43732e42a10bcea37bcbe53304e1698e1338999'
'4bf7a6c215450f9b49b242f8a14add69bff93b0269f0fcccc070ec33a1f8f5026e6c735a6f166aad724fc335943e8f911680904a87ac3a2c4caf16a72c0623a7'
'8ea9a2f1fea508fa132313fa16513eac84a9ed3ce75741c42769b56bbcd3f1bd2eb8bfdfe40a6c7f619e4281e8fc8d95d1bd84096d0b64aaacf606cd614ae5b3'
'df2ef4d9e65fa72daa9a7d91d69a06027d0e0fbc48f9ebd485e2d51990c8d00985b7ccf41314f984975e8073e2075bbdfe5543754718381497c334dc7d96451a'
'5ef914c93b764e7dc888e0f3533f7c9239a68b44a9287e97909deac603d4deed607a0bef1561b607450a0333119b59bb2d91bfda5eee4a6f2d46e1e2a02df2f6')
prepare() {
cd "$srcdir/$pkgname-$pkgver"
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian .
# Doesn't apply and seems unimportant
rm -v debian/patches/disable_reconfigure_req.diff || true
rm -v debian/patches/skip_devices_test.patch || true
quilt push -av
fi
}
build() {
cd "$srcdir/$pkgname-$pkgver"
./configure \
--prefix=/usr \
--disable-debug \
--disable-zstd \
--with-included-popt=no \
--with-included-zlib=no
make reconfigure
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm755 support/rrsync -t "$pkgdir/usr/libexec/$pkgname"
install -Dm644 COPYING -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm644 "$srcdir/rsyncd.conf" "$pkgdir/etc/rsyncd.conf"
install -Dm644 "$srcdir/rsyncd.confd" "$pkgdir/etc/conf.d/rsyncd"
install -Dm755 "$srcdir/rsyncd.initd" "$pkgdir/etc/init.d/rsyncd"
install -Dm755 "$srcdir/rsyncd.run" "$pkgdir/etc/sv/rsyncd/run"
}

10
rsync/rsyncd.conf Normal file
View File

@@ -0,0 +1,10 @@
uid = nobody
gid = nobody
use chroot = no
max connections = 4
syslog facility = local5
pid file = /run/rsyncd.pid
[ftp]
path = /srv/ftp
comment = ftp area

5
rsync/rsyncd.confd Normal file
View File

@@ -0,0 +1,5 @@
# /etc/conf.d/rsyncd: config file for /etc/init.d/rsyncd
# see man pages for rsync or run `rsync --help`
# for valid cmdline options
#RSYNC_OPTS=""

11
rsync/rsyncd.initd Normal file
View File

@@ -0,0 +1,11 @@
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/rsync"
command_args="--daemon ${RSYNC_OPTS}"
pidfile="/var/run/${SVCNAME}.pid"
depend() {
use net
}

3
rsync/rsyncd.run Normal file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
[ ! -e /etc/rsyncd.conf ] && exit 1
exec rsync --daemon --no-detach