🔒 Repository is read-only – file editing is disabled.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
pkgname: rsync
pkgver: '3.5.0'
pkgrel: '1'
pkgdesc: Synchronizing files over a network by sending just the differences in the files.
url: 'https://samba.anu.edu.au/rsync/'
arch: x86_64
depends:
- shadow
makedepends: []
source:
- 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz'
- 'https://www.samba.org/ftp/${pkgname}/${pkgname}-${pkgver}.tar.gz'
sha256sums:
- 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072
- SKIP
hooks:
post-install: "name=rsync\nversion=3.5.0\nrelease=1\nif [ ! -f etc/rsyncd.conf ]; then\n\tcat > etc/rsyncd.conf << \"EOF\"\
\n# use chroot = yes\n# [site]\n# path = /home/saravane/nutyx.org\n# comment = Site web\n# auth users = tnut\n#\
\ read only = yes\n# exclude from = /etc/saravane_rsync_exclude_files.txt\n# secrets file = /etc/rsyncd.secrets\n\
EOF\nfi\nsystemctl enable rsyncd\n"
pre-install: "name=rsync\nversion=3.5.0\nrelease=1\nSN=\"rsyncd\"\nIDN=\"48\"\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\
\nif ! (getent group $SN > /dev/null); then\n\tprintf \"${INFO}Creating $SN group${NORMAL}\\n\"\n\tgroupadd -g $IDN $SN\n\
fi\nif ! (getent passwd $SN > /dev/null); then\n\tprintf \"${INFO}Creating $SN user${NORMAL}\\n\"\n\tuseradd -c \"$SN\
\ Daemon\" -d /home/rsync \\\n\t-g $SN -s /usr/bin/false -u $IDN $SN\nfi\n"
build: |
UN=rsyncd
if ! (getent group $UN > /dev/null); then
groupadd -g 48 $UN
fi
if ! (getent passwd $UN > /dev/null); then
useradd -c "rsyncd Daemon" -d /home/rsync \
-g $UN -s /usr/bin/false -u 48 $UN
fi
cd ${pkgname}-${pkgver}
./configure --prefix=/usr \
-mandir=/usr/share/man \
--disable-xxhash \
--disable-lz4 \
--disable-zstd \
--without-included-zlib \
--infodir=/usr/share/info
make
make DESTDIR=${PKGDIR} install
# Service
cd ../pagan-scripts-20260822
make DESTDIR=${PKGDIR} install-sysd-rsyncd
package: |
true