From c82e88dd00d1b0b7fcfb4e5628d99611388cef6f Mon Sep 17 00:00:00 2001 From: rawnix ports Date: Sat, 26 Sep 2026 18:19:05 +0000 Subject: sync 2026-09-26 18:19 UTC 1672 files changed, 151396 insertions(+) --- opt/dcron/.footprint | 31 ++++++++++++++++++++ opt/dcron/.signature | 6 ++++ opt/dcron/MAKEPKG | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 119 insertions(+) create mode 100644 opt/dcron/.footprint create mode 100644 opt/dcron/.signature create mode 100644 opt/dcron/MAKEPKG (limited to 'opt/dcron') diff --git a/opt/dcron/.footprint b/opt/dcron/.footprint new file mode 100644 index 0000000..c4e2e4a --- /dev/null +++ b/opt/dcron/.footprint @@ -0,0 +1,31 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/cron.d/ +drwxr-xr-x root/root etc/cron.daily/ +drwxr-xr-x root/root etc/cron.hourly/ +drwxr-xr-x root/root etc/cron.monthly/ +drwxr-xr-x root/root etc/cron.weekly/ +drwxr-xr-x root/root etc/sv/ +drwxr-xr-x root/root etc/sv/crond/ +-rwxr-xr-x root/root etc/sv/crond/run +drwxr-xr-x root/root etc/sv/crond/log/ +-rwxr-xr-x root/root etc/sv/crond/log/run +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwsr-x--- root/cron usr/bin/crontab +drwxr-xr-x root/root usr/sbin/ +-rwx------ root/root usr/sbin/crond +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/crontab.1.gz +drwxr-xr-x root/root usr/share/man/man8/ +-rw-r--r-- root/root usr/share/man/man8/crond.8.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/dcron +drwxr-xr-x root/root var/spool/ +drwxr-xr-x root/root var/spool/cron/ +drwxr-xr-x root/root var/spool/cron/cronstamps/ +drwxr-xr-x root/root var/spool/cron/crontabs/ diff --git a/opt/dcron/.signature b/opt/dcron/.signature new file mode 100644 index 0000000..20305e5 --- /dev/null +++ b/opt/dcron/.signature @@ -0,0 +1,6 @@ +RWTZ9IduCSQ/mK/zOx7Yb5o0e7QAKgiDrKcF89bQkfyqN08n/VsqsdEfnYZvfdKMjoVLqncBe0Iwv1hstrBdUy7uIcCE6w8xVwk= + +SHA256 (MAKEPKG) = 8dfee0ed8845cbc92512eed5d091f6ecdf292b44965b21317ab25288ce6bc4f5 +SHA256 (.footprint) = f4f03bfd34e43397bef4a8621cc07ae005a3d557a916cc98beae59b00671331b +SHA256 (v4.6.tar.gz) = d1dced1554213225f5ca333ebc5eab96ab80fa30800d9420782d5dfa6e2a15e7 +SHA256 (dcron#4.6-1.pkg.tar.gz) = e0002cb008d747ebefd122430162ad3599100ece25d2757e39f6bc3a70df2255 diff --git a/opt/dcron/MAKEPKG b/opt/dcron/MAKEPKG new file mode 100644 index 0000000..60109c8 --- /dev/null +++ b/opt/dcron/MAKEPKG @@ -0,0 +1,82 @@ +#!/bin/mkpkg +# description: Dillon's lightweight cron daemon +# url: https://github.com/ptchinster/dcron + +name=dcron +version=4.6 +release=1 +groups=(cron:user:cron:/var/spool/cron:755) +services=(crond) +permissions=( + /usr/sbin/crond:root:root:700 + /usr/bin/crontab:root:cron:4750 + /var/spool/cron/crontabs:root:root:755 + /var/spool/cron/cronstamps:root:root:755 +) +source=(https://github.com/ptchinster/dcron/archive/refs/tags/v$version.tar.gz) + +sha256sums=( + "d1dced1554213225f5ca333ebc5eab96ab80fa30800d9420782d5dfa6e2a15e7" +) + +build() { + cd $name-$version + + make CC=clang \ + PREFIX=/usr \ + MANDIR=/usr/share/man \ + CRONTAB_GROUP=cron \ + LOG_IDENT=crond + + make install \ + DESTDIR=$PKG \ + PREFIX=/usr \ + MANDIR=/usr/share/man \ + CRONTAB_GROUP=cron + + # Per-user crontabs and timestamps + install -d -m 755 $PKG/var/spool/cron/crontabs + install -d -m 755 $PKG/var/spool/cron/cronstamps + + # System crontabs directory (drop files here for system-wide jobs) + install -d -m 755 $PKG/etc/cron.d + + # Periodic-run directories (run-cron compatible) + install -d -m 755 $PKG/etc/cron.hourly + install -d -m 755 $PKG/etc/cron.daily + install -d -m 755 $PKG/etc/cron.weekly + install -d -m 755 $PKG/etc/cron.monthly +} + +post_build() { + # runit service - crond runs as root because it exec()s user + # crontabs as those users (drops privs per-job, not at startup). + install -d $PKG/etc/sv/crond/log + + printf '%s\n' \ + '#!/bin/sh' \ + 'exec 2>&1' \ + '' \ + '# -f keeps crond in foreground for runit' \ + '# -L /dev/stderr sends log lines to stderr, captured by svlogd' \ + '# -l NOTICE keeps log volume sensible (default)' \ + 'exec /usr/sbin/crond -f -L /dev/stderr -l NOTICE' \ + > $PKG/etc/sv/crond/run + + printf '%s\n' \ + '#!/bin/sh' \ + 'mkdir -p /var/log/crond' \ + 'exec svlogd -tt /var/log/crond' \ + > $PKG/etc/sv/crond/log/run + + chmod 755 $PKG/etc/sv/crond/run + chmod 755 $PKG/etc/sv/crond/log/run +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh + -- cgit v1.3.1