summaryrefslogtreecommitdiff
path: root/core/rsync
diff options
context:
space:
mode:
Diffstat (limited to 'core/rsync')
-rw-r--r--core/rsync/.footprint24
-rw-r--r--core/rsync/.signature6
-rw-r--r--core/rsync/MAKEPKG97
3 files changed, 127 insertions, 0 deletions
diff --git a/core/rsync/.footprint b/core/rsync/.footprint
new file mode 100644
index 0000000..7608804
--- /dev/null
+++ b/core/rsync/.footprint
@@ -0,0 +1,24 @@
+drwxr-xr-x root/root bin/
+-rwxr-xr-x root/root bin/rsync
+-rwxr-xr-x root/root bin/rsync-ssl
+drwxr-xr-x root/root etc/
+-rw-r--r-- root/root etc/rsyncd.conf
+drwxr-xr-x root/root etc/sv/
+drwxr-xr-x root/root etc/sv/rsyncd/
+-rw-r--r-- root/root etc/sv/rsyncd/down (EMPTY)
+-rwxr-xr-x root/root etc/sv/rsyncd/run
+drwxr-xr-x root/root etc/sv/rsyncd/log/
+-rwxr-xr-x root/root etc/sv/rsyncd/log/run
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/rsync-ssl.1.gz
+-rw-r--r-- root/root usr/share/man/man1/rsync.1.gz
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/rsyncd.conf.5.gz
+drwxr-xr-x root/root var/
+drwxr-xr-x root/root var/lib/
+drwxr-xr-x root/root var/lib/pkg/
+drwxr-xr-x root/root var/lib/pkg/meta/
+-rw-r--r-- root/root var/lib/pkg/meta/rsync
diff --git a/core/rsync/.signature b/core/rsync/.signature
new file mode 100644
index 0000000..63a8805
--- /dev/null
+++ b/core/rsync/.signature
@@ -0,0 +1,6 @@
+RWTZ9IduCSQ/mC9Tt+M8vULMuf1lX/qMdFkAOyhVDxCV39PSLl4Ndm7ffjZNyTzYgCaGDncyzPHiiGV9gQymvNG4MZQyCXNZnQ0=
+
+SHA256 (MAKEPKG) = eb6874f5055ae8c99a04ffd31079fe741e654c2075922ade7168ca609af4ea36
+SHA256 (.footprint) = b922cf469db45e9165d400adb8b235eb6c013641b99be52cecb9e5cc7d5b19b7
+SHA256 (rsync-3.5.1.tar.gz) = c55f9c9dc10fb8bec397b399a0fdded53cc9a2d8e30891bb0d63724d25c37bef
+SHA256 (rsync#3.5.1-2.pkg.tar.gz) = 93c999d12628af26fc8e972685c1f3caf4cd1be120a7f18be06e69e150daf140
diff --git a/core/rsync/MAKEPKG b/core/rsync/MAKEPKG
new file mode 100644
index 0000000..51e94e3
--- /dev/null
+++ b/core/rsync/MAKEPKG
@@ -0,0 +1,97 @@
+#!/bin/mkpkg
+# description: Fast incremental file transfer
+# url: https://rsync.samba.org
+
+name=rsync
+version=3.5.1
+release=2
+depends=(zlib libressl xxhash zstd lz4)
+groups=(rsyncd:user:rsyncd:/nonexistent:700:873:873)
+services=(rsyncd)
+permissions=(
+ /etc/rsyncd.conf:root:root:644
+)
+source=(https://www.samba.org/ftp/rsync/src/$name-$version.tar.gz)
+
+sha256sums=(
+ "c55f9c9dc10fb8bec397b399a0fdded53cc9a2d8e30891bb0d63724d25c37bef"
+)
+
+build() {
+ cd $name-$version
+
+ ./configure \
+ --prefix=/ \
+ --bindir=/bin \
+ --libdir=/lib \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --disable-debug \
+ --disable-idn \
+ --with-included-popt \
+ --with-included-zlib=no \
+ --enable-ipv6 \
+ --enable-xxhash \
+ --enable-zstd \
+ --enable-lz4
+
+ make
+ make DESTDIR=$PKG install
+
+ # Minimal daemon config - no modules exported by default
+ install -d $PKG/etc
+
+ printf '%s\n' \
+ '## rawnix rsyncd configuration' \
+ '## See rsyncd.conf(5) for options' \
+ '' \
+ 'uid = rsyncd' \
+ 'gid = rsyncd' \
+ 'use chroot = yes' \
+ 'read only = yes' \
+ 'list = no' \
+ 'reverse lookup = no' \
+ 'max connections = 8' \
+ 'timeout = 300' \
+ 'transfer logging = no' \
+ '' \
+ '# Example module:' \
+ '# [pub]' \
+ '# path = /srv/rsync/pub' \
+ '# comment = public files' \
+ '# hosts allow = 192.168.0.0/16' \
+ '# auth users = backup' \
+ '# secrets file = /etc/rsyncd.secrets' \
+ > $PKG/etc/rsyncd.conf
+}
+
+post_build() {
+ # runit service
+ install -d $PKG/etc/sv/rsyncd/log
+
+ printf '%s\n' \
+ '#!/bin/sh' \
+ 'exec 2>&1' \
+ '' \
+ 'exec /bin/rsync --daemon --no-detach --config=/etc/rsyncd.conf --log-file=/dev/stdout' \
+ > $PKG/etc/sv/rsyncd/run
+
+ printf '%s\n' \
+ '#!/bin/sh' \
+ 'mkdir -p /var/log/rsyncd' \
+ 'exec svlogd -tt /var/log/rsyncd' \
+ > $PKG/etc/sv/rsyncd/log/run
+
+ chmod 755 $PKG/etc/sv/rsyncd/run
+ chmod 755 $PKG/etc/sv/rsyncd/log/run
+
+ # Service disabled by default - must explicitly: rm /etc/sv/rsyncd/down
+ touch $PKG/etc/sv/rsyncd/down
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh