summaryrefslogtreecommitdiffstats
path: root/source/a/dcron/dcron.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/dcron/dcron.SlackBuild')
-rwxr-xr-xsource/a/dcron/dcron.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/source/a/dcron/dcron.SlackBuild b/source/a/dcron/dcron.SlackBuild
index b9da7dbf1..1038e2dba 100755
--- a/source/a/dcron/dcron.SlackBuild
+++ b/source/a/dcron/dcron.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2009, 2010, 2012, 2016, 2018 Patrick J. Volkerding, Sebeka, MN, USA
+# Copyright 2009, 2010, 2012, 2016, 2018, 2022, 2024 Patrick J. Volkerding, Sebeka, MN, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=dcron
VERSION=${VERSION:-$(echo dcron-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
-BUILD=${BUILD:-11}
+BUILD=${BUILD:-17}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
@@ -112,7 +112,8 @@ mkdir -p $PKG/usr/bin
cat crontab > $PKG/usr/bin/crontab
chmod 4711 $PKG/usr/bin/crontab
-zcat $CWD/run-parts.gz > $PKG/usr/bin/run-parts
+# Add run-parts script and man page, largely taken from Fedora:
+cat $CWD/run-parts > $PKG/usr/bin/run-parts
chmod 0755 $PKG/usr/bin/run-parts
mkdir -p $PKG/usr/man/man{1,8}
@@ -125,9 +126,10 @@ mkdir -p $PKG/etc/rc.d
cat $CWD/rc.crond > $PKG/etc/rc.d/rc.crond.new
chmod 755 $PKG/etc/rc.d/rc.crond.new
-# Add the default file:
+# Add the default files:
mkdir -p $PKG/etc/default
cat $CWD/crond.default > $PKG/etc/default/crond.new
+cat $CWD/run-parts.default > $PKG/etc/default/run-parts.new
# Create some other stuff we need
mkdir -p $PKG/etc/cron.{hourly,daily,weekly,monthly}