Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
279c81b366 | ||
|
a935cc9da0 | ||
|
ad51843419 | ||
|
682db6f593 | ||
|
6d10f268c9 | ||
|
79652fd531 | ||
|
691a4c9bfa | ||
|
ca39db51aa | ||
|
53372c20a2 | ||
|
0c594392ac | ||
|
bdf0408644 | ||
|
0de9c5e286 | ||
|
38f79ab6a4 | ||
|
16e9a0ed83 | ||
|
3f49655c6b |
16
debian/README.Debian
vendored
Normal file
16
debian/README.Debian
vendored
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
cronie for Debian
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
This version of cronie has been patched and configured to be as compatible as
|
||||||
|
possible to Debian's standard job scheduler, ISC cron. You should be able to
|
||||||
|
switch between these implementations without experiencing any major negative
|
||||||
|
side effects to your system.
|
||||||
|
|
||||||
|
Feature-wise, however, there still are quite a number of subtle and
|
||||||
|
not-so-subtle differences (mostly because of how much Debian's version of ISC
|
||||||
|
cron is patched), so be sure to read the manpages.
|
||||||
|
|
||||||
|
cronie installs a file /etc/cron.deny (empty), thereby enabling all users to
|
||||||
|
use the crontab(1) command by default.
|
||||||
|
|
||||||
|
-- Christian Kastner <ckk@debian.org> Sun, 20 Mar 2011 01:27:55 +0100
|
134
debian/changelog
vendored
Normal file
134
debian/changelog
vendored
Normal file
@ -0,0 +1,134 @@
|
|||||||
|
cronie (1.6.1-5) experimental; urgency=medium
|
||||||
|
|
||||||
|
* cronie pre-depends now on cron-daemon-common, and does no longer install
|
||||||
|
conflicting files.
|
||||||
|
|
||||||
|
-- Georges Khaznadar <georgesk@debian.org> Sun, 13 Nov 2022 17:09:31 +0100
|
||||||
|
|
||||||
|
cronie (1.6.1-4) experimental; urgency=medium
|
||||||
|
|
||||||
|
* fixed the watch file
|
||||||
|
|
||||||
|
-- Georges Khaznadar <georgesk@debian.org> Tue, 01 Nov 2022 21:53:41 +0100
|
||||||
|
|
||||||
|
cronie (1.6.1-3) experimental; urgency=medium
|
||||||
|
|
||||||
|
* reverted previous changes, as I did not notice the closed ITA bug
|
||||||
|
#974038, came back to contents authored by Lin Lance.
|
||||||
|
|
||||||
|
-- Georges Khaznadar <georgesk@debian.org> Thu, 12 May 2022 10:35:36 +0200
|
||||||
|
|
||||||
|
cronie (1.6.1-2) experimental; urgency=medium
|
||||||
|
|
||||||
|
* refreshed debian patches, which were targetted to version 1.5.5
|
||||||
|
|
||||||
|
-- Georges Khaznadar <georgesk@debian.org> Tue, 10 May 2022 17:56:24 +0200
|
||||||
|
|
||||||
|
cronie (1.6.1-1) experimental; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version (1.6.1)
|
||||||
|
* Refreshed patches
|
||||||
|
* d/control: New maintainer (Closes: #974038)
|
||||||
|
* d/control: Updated standards (4.6.0), dh-compat (13)
|
||||||
|
|
||||||
|
-- Lance Lin <LQi254@protonmail.com> Tue, 03 May 2022 21:21:59 +0700
|
||||||
|
|
||||||
|
cronie (1.5.5-3) experimental; urgency=medium
|
||||||
|
|
||||||
|
* Add Hurd-workaround-for-PATH_MAX.patch (Closes: #638048)
|
||||||
|
* Fix spelling error in previous changelog entry
|
||||||
|
|
||||||
|
-- Christian Kastner <ckk@debian.org> Tue, 05 Nov 2019 08:04:37 +0100
|
||||||
|
|
||||||
|
cronie (1.5.5-2) experimental; urgency=medium
|
||||||
|
|
||||||
|
* Don't build /usr/sbin/anacron
|
||||||
|
/usr/sbin/anacron is still provided by src:anacron.
|
||||||
|
Thanks, Andreas Beckmann, for catching this! (Closes: #944024)
|
||||||
|
|
||||||
|
-- Christian Kastner <ckk@debian.org> Sun, 03 Nov 2019 11:12:33 +0100
|
||||||
|
|
||||||
|
cronie (1.5.5-1) experimental; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version 1.5.5
|
||||||
|
* Drop patches (included upstream):
|
||||||
|
- crond-report-missing-newline-before-EOF.patch
|
||||||
|
- crontab-Add-Y-N-to-retry-prompt.patch
|
||||||
|
- crontab-fsync-to-check-for-full-disk.patch
|
||||||
|
- crontab.1-Various-fixes-and-improvements.patch
|
||||||
|
- entries-Explicitly-validate-upper-ranges-and-steps.patch
|
||||||
|
* Refresh patches
|
||||||
|
- debian/patches/Manpage-and-typo-fixes.patch
|
||||||
|
- debian/patches/Rename-PAM-service-to-cronie.patch
|
||||||
|
+ Split out Unbundle-upstream-PAM-config.patch from this one
|
||||||
|
|
||||||
|
-- Christian Kastner <ckk@debian.org> Thu, 31 Oct 2019 22:20:05 +0100
|
||||||
|
|
||||||
|
cronie (1.5.4-final-2) experimental; urgency=medium
|
||||||
|
|
||||||
|
* build: Set default EDITOR to /usr/bin/sensible-editor
|
||||||
|
* d/patches (added):
|
||||||
|
- crond-report-missing-newline-before-EOF.patch
|
||||||
|
- entries-Explicitly-validate-upper-ranges-and-steps.patch
|
||||||
|
- crontab.1-Various-fixes-and-improvements.patch
|
||||||
|
- crontab-Add-Y-N-to-retry-prompt.patch
|
||||||
|
- crontab-fsync-to-check-for-full-disk.patch
|
||||||
|
|
||||||
|
-- Christian Kastner <ckk@debian.org> Wed, 30 Oct 2019 21:12:01 +0100
|
||||||
|
|
||||||
|
cronie (1.5.4-final-1) experimental; urgency=medium
|
||||||
|
|
||||||
|
* New upstream release. (Closes: #697811, #783856)
|
||||||
|
|
||||||
|
[ Andreas Henriksson ]
|
||||||
|
* debian/watch: update for cronie move to github
|
||||||
|
* Modify patches to apply against new upstream release
|
||||||
|
* Add debian/gbp.conf
|
||||||
|
* Adjust and ship the cronie.service file
|
||||||
|
* Use debian/clean to remove src/cron-paths.h
|
||||||
|
* Fix lintian warning about not using default-mta
|
||||||
|
* Fix typo in patch tagging meta-header
|
||||||
|
|
||||||
|
[ Christian Kastner ]
|
||||||
|
* d/control:
|
||||||
|
- Switch Build-Depends from debhelper to debhelper-compat
|
||||||
|
- Bump debhelper compatibility level to 12
|
||||||
|
- Bump Standards-Version to 4.4.1 (no changes needed)
|
||||||
|
- Remove now obsolete d/compat file
|
||||||
|
- Set Rules-Requires-Root: no
|
||||||
|
We don't need (fake)root for building the package.
|
||||||
|
- Point Homepage to GitHub
|
||||||
|
- Set Vcs-* URLs for Salsa
|
||||||
|
- Mark package cronie as Multi-Arch: foreign
|
||||||
|
- Add Pre-Depends: ${misc:Pre-Depends} to binary package
|
||||||
|
As recommended by lintian's skip-systemd-native-flag-missing-pre-depends
|
||||||
|
* d/cronie.default: Add new daemon flag "-P"
|
||||||
|
* d/rules:
|
||||||
|
- Add hardening flags
|
||||||
|
- Stop passing actions to dh_installinit
|
||||||
|
This has been obsoleted by dependency-based booting in Wheezy, see
|
||||||
|
https://lists.debian.org/debian-devel/2013/05/msg01109.html
|
||||||
|
- Use DEB_HOST_ARCH_OS from /usr/share/dpkg/architecture.mk
|
||||||
|
- Proper passing of CFLAGS through DEB_CFLAGS_MAINT_APPEND
|
||||||
|
* d/copyright:
|
||||||
|
- Fix syntax errors
|
||||||
|
- Switch URL to official policy URL
|
||||||
|
- Point Source to GitHub
|
||||||
|
fedorahosted.org has been retired
|
||||||
|
- Bump copyrights
|
||||||
|
* d/clean: Remove generated files for (non-enabled) anacron build
|
||||||
|
* Sync maintscripts with src:cron
|
||||||
|
|
||||||
|
-- Christian Kastner <ckk@debian.org> Mon, 28 Oct 2019 19:35:38 +0100
|
||||||
|
|
||||||
|
cronie (1.4.8-1~exp1) experimental; urgency=low
|
||||||
|
|
||||||
|
* Initial release (Closes: #590876)
|
||||||
|
* debian/patches added:
|
||||||
|
- 0001-Unbundle-anacron
|
||||||
|
- 0002-Manpage-and-typo-fixes
|
||||||
|
- 0003-Rename-PAM-service-to-cronie
|
||||||
|
- 0004-Debian-specific-paths-and-features
|
||||||
|
- 0005-Extend-support-for-kFreeBSD-and-GNU-HURD
|
||||||
|
|
||||||
|
-- Christian Kastner <debian@kvr.at> Tue, 26 Jul 2011 14:00:34 +0200
|
2
debian/clean
vendored
Normal file
2
debian/clean
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
src/cron-paths.h
|
||||||
|
anacron/anacron-paths.h
|
46
debian/control
vendored
Normal file
46
debian/control
vendored
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
Source: cronie
|
||||||
|
Section: admin
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Lance Lin <LQi254@protonmail.com>
|
||||||
|
Uploaders: Georges Khaznadar <georgesk@debian.org>
|
||||||
|
Build-Depends:
|
||||||
|
debhelper-compat (= 13),
|
||||||
|
libpam0g-dev,
|
||||||
|
libselinux1-dev [linux-any],
|
||||||
|
libaudit-dev [linux-any]
|
||||||
|
Rules-Requires-Root: no
|
||||||
|
Standards-Version: 4.6.0
|
||||||
|
Homepage: https://github.com/cronie-crond/cronie
|
||||||
|
Vcs-Git: https://salsa.debian.org/debian/cronie.git
|
||||||
|
Vcs-Browser: https://salsa.debian.org/debian/cronie
|
||||||
|
|
||||||
|
Package: cronie
|
||||||
|
Architecture: any
|
||||||
|
Multi-Arch: foreign
|
||||||
|
Pre-Depends:
|
||||||
|
${misc:Pre-Depends},
|
||||||
|
cron-daemon-common
|
||||||
|
Depends:
|
||||||
|
${shlibs:Depends},
|
||||||
|
${misc:Depends},
|
||||||
|
adduser,
|
||||||
|
lsb-base (>= 3.0-6),
|
||||||
|
libpam-runtime (>= 1.0.1-11),
|
||||||
|
sensible-utils
|
||||||
|
Recommends:
|
||||||
|
default-mta | mail-transport-agent
|
||||||
|
Suggests:
|
||||||
|
anacron (>= 2.0-1)
|
||||||
|
Provides: cron-daemon, cron
|
||||||
|
Conflicts: cron
|
||||||
|
Replaces: cron
|
||||||
|
Description: Process Scheduling Daemon
|
||||||
|
cronie is a daemon that runs specified programs at scheduled times and
|
||||||
|
optionally mails generated output to the user. It is a fork of the original
|
||||||
|
ISC cron and contains many improvements, such as:
|
||||||
|
* inotify support (Linux only)
|
||||||
|
* clustering support
|
||||||
|
* full PAM support
|
||||||
|
.
|
||||||
|
cronie is fully compatible with ISC cron (Debian's standard job scheduler),
|
||||||
|
and can be used as a drop-in replacement for it.
|
135
debian/copyright
vendored
Normal file
135
debian/copyright
vendored
Normal file
@ -0,0 +1,135 @@
|
|||||||
|
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
|
||||||
|
Upstream-Name: cronie
|
||||||
|
Upstream-Contact: Marcela Mašláňová <mmaslano@redhat.com>
|
||||||
|
Source: https://github.com/cronie-crond/cronie
|
||||||
|
|
||||||
|
Files: *
|
||||||
|
Copyright: 1988,1989,1990,1993,1994, The Regents of the University of California
|
||||||
|
1997,2000, Internet Software Consortium, Inc.
|
||||||
|
2004, Internet Systems Consortium, Inc. ("ISC")
|
||||||
|
1997-2019, Red Hat, Inc.
|
||||||
|
2000,2002, Todd C. Miller
|
||||||
|
2010, Colin Dean
|
||||||
|
License: ISC
|
||||||
|
|
||||||
|
Files: src/popen.c
|
||||||
|
Copyright: 1989,1993,1994,2005, The Regents of the University of California
|
||||||
|
License: BSD-2-clause
|
||||||
|
|
||||||
|
Files: src/bitstring.h
|
||||||
|
Copyright: 1989,1993,2003, The Regents of the University of California
|
||||||
|
License: BSD-3-clause
|
||||||
|
|
||||||
|
Files: anacron/*
|
||||||
|
Copyright: 1998, Itai Tzur <itzur@actcom.co.il>
|
||||||
|
1999, Sean 'Shaleh' Perry <shaleh@debian.org>
|
||||||
|
2004, Pascal Hakim <pasc@redellipse.net>
|
||||||
|
2009-2019, Red Hat, Inc.
|
||||||
|
License: GPL-2+
|
||||||
|
|
||||||
|
Files: debian/*
|
||||||
|
Copyright: 2010-2019, Christian Kastner <ckk@debian.org>
|
||||||
|
2018, Andreas Henriksson <andreas@fatal.se>
|
||||||
|
License: GPL-3+
|
||||||
|
|
||||||
|
Files: debian/patches/*
|
||||||
|
Copyright: 2019, Christian Kastner <ckk@debian.org>
|
||||||
|
License: ISC
|
||||||
|
|
||||||
|
License: ISC
|
||||||
|
Permission to use, copy, modify, and distribute this software for any
|
||||||
|
purpose with or without fee is hereby granted, provided that the above
|
||||||
|
copyright notice and this permission notice appear in all copies.
|
||||||
|
.
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
|
||||||
|
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
|
||||||
|
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||||
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||||
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
||||||
|
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
|
|
||||||
|
License: BSD-2-clause
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
.
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
License: BSD-3-clause
|
||||||
|
Redistribution and use in source and binary forms, with or without
|
||||||
|
modification, are permitted provided that the following conditions
|
||||||
|
are met:
|
||||||
|
1. Redistributions of source code must retain the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer.
|
||||||
|
2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
notice, this list of conditions and the following disclaimer in the
|
||||||
|
documentation and/or other materials provided with the distribution.
|
||||||
|
3. Neither the name of the University nor the names of its contributors
|
||||||
|
may be used to endorse or promote products derived from this software
|
||||||
|
without specific prior written permission.
|
||||||
|
.
|
||||||
|
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
||||||
|
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
|
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
||||||
|
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
|
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
|
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
|
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
|
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
|
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
|
SUCH DAMAGE.
|
||||||
|
|
||||||
|
License: GPL-2+
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU General Public License along
|
||||||
|
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
|
.
|
||||||
|
On Debian systems, the full text of the GNU General Public
|
||||||
|
License version 2 can be found in the file
|
||||||
|
"/usr/share/common-licenses/GPL-2".
|
||||||
|
|
||||||
|
License: GPL-3+
|
||||||
|
This program is free software: you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation, either version 3 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
.
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
.
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
.
|
||||||
|
On Debian systems, the full text of the GNU General Public
|
||||||
|
License version 3 can be found in the file
|
||||||
|
"/usr/share/common-licenses/GPL-3".
|
||||||
|
|
13
debian/cronie.default
vendored
Normal file
13
debian/cronie.default
vendored
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# Defaults for cronie initscript
|
||||||
|
# This is a POSIX shell fragment
|
||||||
|
|
||||||
|
# Some additional options for the daemon
|
||||||
|
# See cron(8) for all options and a detailed explanation of these
|
||||||
|
#
|
||||||
|
# -m <cmd> shell command to use for sending mail instead of sendmail(8)
|
||||||
|
# -p lift some restrictions on user crontabs (owner, mode, type)
|
||||||
|
# -P Don't set PATH; instead, inherit it from the environment
|
||||||
|
# -c enable clustering support
|
||||||
|
# -s send job output to syslog instead of mail
|
||||||
|
#
|
||||||
|
DAEMON_ARGS=""
|
6
debian/cronie.dirs
vendored
Normal file
6
debian/cronie.dirs
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
etc/cron.d
|
||||||
|
etc/cron.hourly
|
||||||
|
etc/cron.daily
|
||||||
|
etc/cron.weekly
|
||||||
|
etc/cron.monthly
|
||||||
|
var/spool/cron/crontabs
|
87
debian/cronie.init
vendored
Normal file
87
debian/cronie.init
vendored
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
### BEGIN INIT INFO
|
||||||
|
# Provides: cronie
|
||||||
|
# Required-Start: $remote_fs $syslog $time
|
||||||
|
# Required-Stop: $remote_fs $syslog $time
|
||||||
|
# Default-Start: 2 3 4 5
|
||||||
|
# Default-Stop:
|
||||||
|
# Short-Description: time-based job scheduler
|
||||||
|
# Description: cronie is a daemon that runs specified programs at
|
||||||
|
# scheduled times and optionally mails generated output
|
||||||
|
# to the user.
|
||||||
|
### END INIT INFO
|
||||||
|
|
||||||
|
# Author: Christian Kastner <ckk@debian.org>
|
||||||
|
|
||||||
|
PATH=/sbin:/usr/sbin:/bin:/usr/bin
|
||||||
|
DESC="time-based job scheduler"
|
||||||
|
NAME=cronie
|
||||||
|
DAEMON_NAME=crond
|
||||||
|
DAEMON=/usr/sbin/$DAEMON_NAME
|
||||||
|
DAEMON_ARGS=""
|
||||||
|
PIDFILE=/var/run/$DAEMON_NAME.pid
|
||||||
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
|
# Exit if the package is not installed
|
||||||
|
[ -x $DAEMON ] || exit 0
|
||||||
|
|
||||||
|
# Read configuration variable file if it is present
|
||||||
|
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||||
|
|
||||||
|
# Load the VERBOSE setting and other rcS variables
|
||||||
|
. /lib/init/vars.sh
|
||||||
|
|
||||||
|
# Define LSB log_* functions.
|
||||||
|
. /lib/lsb/init-functions
|
||||||
|
|
||||||
|
do_start()
|
||||||
|
{
|
||||||
|
start_daemon -p $PIDFILE $DAEMON $DAEMON_ARGS
|
||||||
|
}
|
||||||
|
|
||||||
|
do_stop()
|
||||||
|
{
|
||||||
|
killproc -p $PIDFILE $DAEMON
|
||||||
|
}
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
start)
|
||||||
|
[ "$VERBOSE" != no ] && log_daemon_msg "Starting $DESC " "$NAME"
|
||||||
|
do_start
|
||||||
|
case "$?" in
|
||||||
|
0|1) [ "$VERBOSE" != no ] && log_end_msg 0 || exit 0 ;;
|
||||||
|
2|3) [ "$VERBOSE" != no ] && log_end_msg 1 || exit 1 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
[ "$VERBOSE" != no ] && log_daemon_msg "Stopping $DESC" "$NAME"
|
||||||
|
do_stop
|
||||||
|
case "$?" in
|
||||||
|
0|3) [ "$VERBOSE" != no ] && log_end_msg 0 || exit 0 ;;
|
||||||
|
*) [ "$VERBOSE" != no ] && log_end_msg 1 || exit 1 ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
status_of_proc -p $PIDFILE "$DAEMON" "$DAEMON_NAME" && exit 0 || exit $?
|
||||||
|
;;
|
||||||
|
restart|force-reload)
|
||||||
|
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||||
|
do_stop
|
||||||
|
if [ $? -eq 0 ]
|
||||||
|
then
|
||||||
|
do_start
|
||||||
|
case "$?" in
|
||||||
|
0) log_end_msg 0 ;;
|
||||||
|
1) log_end_msg 1 ;; # Old process is still running
|
||||||
|
*) log_end_msg 1 ;; # Failed to start
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
# Failed to stop
|
||||||
|
log_end_msg 1
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||||
|
exit 3
|
||||||
|
;;
|
||||||
|
esac
|
21
debian/cronie.pam
vendored
Normal file
21
debian/cronie.pam
vendored
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# The PAM configuration file for cronie (cron daemon)
|
||||||
|
|
||||||
|
# Access control using /etc/security/access.conf
|
||||||
|
account required pam_access.so
|
||||||
|
|
||||||
|
# Set the loginuid process attribute
|
||||||
|
session required pam_loginuid.so
|
||||||
|
|
||||||
|
# Read environment variables from pam_env's default files, /etc/environment
|
||||||
|
# and /etc/security/pam_env.conf.
|
||||||
|
session required pam_env.so
|
||||||
|
|
||||||
|
# In addition to the above, read system locale information
|
||||||
|
session required pam_env.so envfile=/etc/default/locale
|
||||||
|
|
||||||
|
# Sets up user limits
|
||||||
|
session required pam_limits.so
|
||||||
|
|
||||||
|
@include common-account
|
||||||
|
@include common-session-noninteractive
|
||||||
|
@include common-auth
|
65
debian/cronie.postinst
vendored
Normal file
65
debian/cronie.postinst
vendored
Normal file
@ -0,0 +1,65 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# Analogous to Debian's ISC cron postinst script (for compatibility reasons)
|
||||||
|
crondir="/var/spool/cron"
|
||||||
|
action="$1"
|
||||||
|
|
||||||
|
if [ "$action" != configure ]
|
||||||
|
then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# Make sure group "crontab" exists (needed for running SGID)
|
||||||
|
getent group crontab > /dev/null 2>&1 || addgroup --system crontab
|
||||||
|
|
||||||
|
# Make crontab(1) SGID
|
||||||
|
if ! dpkg-statoverride --list /usr/bin/crontab > /dev/null
|
||||||
|
then
|
||||||
|
dpkg-statoverride --update --add root crontab 2755 /usr/bin/crontab
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Adjust permissions for spool dir
|
||||||
|
# Can't use dpkg-statoverride for this because it doesn't cooperate nicely
|
||||||
|
# with cron alternatives such as bcron
|
||||||
|
if [ -d $crondir/crontabs ]
|
||||||
|
then
|
||||||
|
# This must be in sync with misc.c:check_spool_dir()
|
||||||
|
chown root:crontab $crondir/crontabs
|
||||||
|
chmod 1730 $crondir/crontabs
|
||||||
|
|
||||||
|
cd $crondir/crontabs
|
||||||
|
set +e
|
||||||
|
|
||||||
|
# Iterate over each entry in the spool directory, perform some sanity
|
||||||
|
# checks (see CVE-2017-9525), and chown/chgroup the crontabs
|
||||||
|
for tab_name in *
|
||||||
|
do
|
||||||
|
[ "$tab_name" = "*" ] && continue
|
||||||
|
tab_links=`stat -c '%h' "$tab_name"`
|
||||||
|
tab_owner=`stat -c '%U' "$tab_name"`
|
||||||
|
|
||||||
|
if [ ! -f "$tab_name" ]
|
||||||
|
then
|
||||||
|
echo "Warning: $tab_name is not a regular file!"
|
||||||
|
continue
|
||||||
|
elif [ "$tab_links" -ne 1 ]
|
||||||
|
then
|
||||||
|
echo "Warning: $tab_name has more than one hard link!"
|
||||||
|
continue
|
||||||
|
elif [ "$tab_owner" != "$tab_name" ]
|
||||||
|
then
|
||||||
|
echo "Warning: $tab_name name differs from owner $tab_owner!"
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
chown "$tab_owner:crontab" "$tab_name"
|
||||||
|
chmod 600 "$tab_name"
|
||||||
|
done
|
||||||
|
set -e
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
11
debian/cronie.postrm
vendored
Normal file
11
debian/cronie.postrm
vendored
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ "$1" = "purge" ]
|
||||||
|
then
|
||||||
|
rm -f /etc/cron.allow /etc/cron.deny
|
||||||
|
fi
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
6
debian/cronie.prerm
vendored
Normal file
6
debian/cronie.prerm
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
set -e
|
||||||
|
|
||||||
|
#DEBHELPER#
|
||||||
|
|
||||||
|
exit 0
|
2
debian/docs
vendored
Normal file
2
debian/docs
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
NEWS
|
||||||
|
README
|
0
debian/etc/cronie.deny
vendored
Normal file
0
debian/etc/cronie.deny
vendored
Normal file
12
debian/etc/crontab.system
vendored
Normal file
12
debian/etc/crontab.system
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# /etc/crontab: system-wide crontab
|
||||||
|
# See crontab(5)
|
||||||
|
|
||||||
|
# Set PATH to system default
|
||||||
|
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||||
|
|
||||||
|
# m h dom mon dow user command
|
||||||
|
17 * * * * root cd / && run-parts --report /etc/cron.hourly
|
||||||
|
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
|
||||||
|
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
|
||||||
|
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
|
||||||
|
#
|
2
debian/etc/placeholder
vendored
Normal file
2
debian/etc/placeholder
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# DO NOT REMOVE
|
||||||
|
# this file prevents dpkg from removing this directory
|
10
debian/gbp.conf
vendored
Normal file
10
debian/gbp.conf
vendored
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
[DEFAULT]
|
||||||
|
pristine-tar = True
|
||||||
|
debian-branch = debian/master
|
||||||
|
upstream-branch = upstream/latest
|
||||||
|
|
||||||
|
[buildpackage]
|
||||||
|
sign-tags = True
|
||||||
|
|
||||||
|
[pq]
|
||||||
|
patch-numbers = False
|
75
debian/patches/Debian-specific-paths-and-features.patch
vendored
Normal file
75
debian/patches/Debian-specific-paths-and-features.patch
vendored
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Thu, 28 Jul 2011 11:15:01 +0200
|
||||||
|
Subject: Debian-specific paths and features
|
||||||
|
|
||||||
|
Use Debian-specific paths and features. For example, the spool dir differs from
|
||||||
|
upstream, and we always build to use syslog.
|
||||||
|
|
||||||
|
Forwarded: not-needed
|
||||||
|
Last-Update: 2011-07-28
|
||||||
|
---
|
||||||
|
man/cron.8 | 15 ++-------------
|
||||||
|
man/crontab.1 | 2 +-
|
||||||
|
man/crontab.5 | 2 +-
|
||||||
|
3 files changed, 4 insertions(+), 15 deletions(-)
|
||||||
|
|
||||||
|
--- a/man/cron.8
|
||||||
|
+++ b/man/cron.8
|
||||||
|
@@ -41,7 +41,7 @@
|
||||||
|
.PP
|
||||||
|
.I Cron
|
||||||
|
searches
|
||||||
|
-.I /var/spool/cron
|
||||||
|
+.I /var/spool/cron/crontabs
|
||||||
|
for crontab files which are named after user accounts;
|
||||||
|
together with the system crontab
|
||||||
|
.IR /etc/crontab ,
|
||||||
|
@@ -88,7 +88,7 @@
|
||||||
|
.IR /etc/cron.d/
|
||||||
|
directory that contains system cronjobs stored for different users.
|
||||||
|
.TP
|
||||||
|
-.IR /var/spool/cron
|
||||||
|
+.IR /var/spool/cron/crontabs
|
||||||
|
directory that contains user crontables created by the
|
||||||
|
.BR crontab (1)
|
||||||
|
command.
|
||||||
|
@@ -181,17 +181,6 @@
|
||||||
|
.TP
|
||||||
|
.B "\-V"
|
||||||
|
Print version and exit.
|
||||||
|
-.SH SIGNALS
|
||||||
|
-When the
|
||||||
|
-.I SIGHUP
|
||||||
|
-is received, the
|
||||||
|
-.I Cron
|
||||||
|
-daemon will close and reopen its log file. This proves to be useful in
|
||||||
|
-scripts which rotate and age log files. Naturally, this is not relevant
|
||||||
|
-if
|
||||||
|
-.I Cron
|
||||||
|
-was built to use
|
||||||
|
-.IR syslog (3).
|
||||||
|
.SH CLUSTERING SUPPORT
|
||||||
|
In this version of
|
||||||
|
.IR Cron
|
||||||
|
--- a/man/crontab.1
|
||||||
|
+++ b/man/crontab.1
|
||||||
|
@@ -68,7 +68,7 @@
|
||||||
|
In this version of
|
||||||
|
.IR Cron
|
||||||
|
it is possible to use a network-mounted shared
|
||||||
|
-.I /var/spool/cron
|
||||||
|
+.I /var/spool/cron/crontabs
|
||||||
|
across a cluster of hosts and specify that only one of the hosts should
|
||||||
|
run the crontab jobs in the particular directory at any one time. You
|
||||||
|
may also use
|
||||||
|
--- a/man/crontab.5
|
||||||
|
+++ b/man/crontab.5
|
||||||
|
@@ -315,7 +315,7 @@
|
||||||
|
.SH FILES
|
||||||
|
.I /etc/crontab
|
||||||
|
main system crontab file.
|
||||||
|
-.I /var/spool/cron/
|
||||||
|
+.I /var/spool/cron/crontabs
|
||||||
|
a directory for storing crontabs defined by users.
|
||||||
|
.I /etc/cron.d/
|
||||||
|
a directory for storing system crontabs.
|
36
debian/patches/Extend-support-for-kFreeBSD-and-GNU-HURD.patch
vendored
Normal file
36
debian/patches/Extend-support-for-kFreeBSD-and-GNU-HURD.patch
vendored
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Sun, 7 Aug 2011 19:48:09 +0200
|
||||||
|
Subject: Extend support for kFreeBSD and GNU HURD
|
||||||
|
|
||||||
|
Extend some of the #ifdefs to include kFreeBSD and HURD where it's obviously OK
|
||||||
|
to do so
|
||||||
|
|
||||||
|
Forwarded: no
|
||||||
|
Last-Update: 2011-08-07
|
||||||
|
---
|
||||||
|
src/entry.c | 2 +-
|
||||||
|
src/pathnames.h | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/src/entry.c
|
||||||
|
+++ b/src/entry.c
|
||||||
|
@@ -403,7 +403,7 @@
|
||||||
|
}
|
||||||
|
else
|
||||||
|
log_it("CRON", getpid(), "ERROR", "can't set LOGNAME", 0);
|
||||||
|
-#if defined(BSD) || defined(__linux)
|
||||||
|
+#if defined(BSD) || defined(__linux) || defined(__GLIBC__) || defined(__gnu_hurd__)
|
||||||
|
if (glue_strings(envstr, sizeof envstr, "USER", pw->pw_name, '=')) {
|
||||||
|
if ((tenvp = env_set(e->envp, envstr)) == NULL) {
|
||||||
|
ecode = e_memory;
|
||||||
|
--- a/src/pathnames.h
|
||||||
|
+++ b/src/pathnames.h
|
||||||
|
@@ -26,7 +26,7 @@
|
||||||
|
#ifndef _PATHNAMES_H_
|
||||||
|
#define _PATHNAMES_H_
|
||||||
|
|
||||||
|
-#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX)
|
||||||
|
+#if (defined(BSD)) && (BSD >= 199103) || defined(__linux) || defined(AIX) || defined(__GLIBC__) || defined(__gnu_hurd__)
|
||||||
|
# include <paths.h>
|
||||||
|
#endif /*BSD*/
|
||||||
|
|
27
debian/patches/Hurd-workaround-for-PATH_MAX.patch
vendored
Normal file
27
debian/patches/Hurd-workaround-for-PATH_MAX.patch
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Tue, 5 Nov 2019 07:52:09 +0100
|
||||||
|
Subject: Hurd workaround for PATH_MAX
|
||||||
|
|
||||||
|
PATH_MAX is not defined on GNU Hurd, which is legal according to POSIX.
|
||||||
|
|
||||||
|
https://www.gnu.org/software/hurd/hurd/porting/guidelines.html
|
||||||
|
|
||||||
|
Bug-Debian: https://bugs.debian.org/638048
|
||||||
|
---
|
||||||
|
src/macros.h | 5 +++++
|
||||||
|
1 file changed, 5 insertions(+)
|
||||||
|
|
||||||
|
--- a/src/macros.h
|
||||||
|
+++ b/src/macros.h
|
||||||
|
@@ -43,6 +43,11 @@
|
||||||
|
#define DEBUGGING FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+/* Gnu Hurd has no limit on pathnames */
|
||||||
|
+#if !defined PATH_MAX && defined __GNU__
|
||||||
|
+#define PATH_MAX 4096
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#define INIT_PID 1 /* parent of orphans */
|
||||||
|
#define READ_PIPE 0 /* which end of a pipe pair do you read? */
|
||||||
|
#define WRITE_PIPE 1 /* or write to? */
|
133
debian/patches/Manpage-and-typo-fixes.patch
vendored
Normal file
133
debian/patches/Manpage-and-typo-fixes.patch
vendored
Normal file
@ -0,0 +1,133 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Thu, 28 Jul 2011 11:07:40 +0200
|
||||||
|
Subject: Manpage and typo fixes
|
||||||
|
|
||||||
|
Correct some errors or clarify sections in the manpages; fix some typos
|
||||||
|
---
|
||||||
|
man/cron.8 | 43 ++++++++++++++++---------------------------
|
||||||
|
man/crontab.1 | 2 +-
|
||||||
|
man/crontab.5 | 2 +-
|
||||||
|
src/cron.c | 2 +-
|
||||||
|
4 files changed, 19 insertions(+), 30 deletions(-)
|
||||||
|
|
||||||
|
--- a/man/cron.8
|
||||||
|
+++ b/man/cron.8
|
||||||
|
@@ -37,23 +37,15 @@
|
||||||
|
.B -V
|
||||||
|
.SH DESCRIPTION
|
||||||
|
.I Cron
|
||||||
|
-is started from
|
||||||
|
-.I /etc/rc.d/init.d
|
||||||
|
-or
|
||||||
|
-.I /etc/init.d
|
||||||
|
-when classical sysvinit scripts are used. In case systemd is enabled, then unit file is installed into
|
||||||
|
-.I /lib/systemd/system/crond.service
|
||||||
|
-and daemon is started by
|
||||||
|
-.I systemctl start crond.service
|
||||||
|
-command. It returns immediately, thus, there is no need to need to start it with
|
||||||
|
-the '&' parameter.
|
||||||
|
+is automatically started at boot time.
|
||||||
|
.PP
|
||||||
|
.I Cron
|
||||||
|
searches
|
||||||
|
.I /var/spool/cron
|
||||||
|
-for crontab files which are named after accounts in
|
||||||
|
-.I /etc/passwd;
|
||||||
|
-The found crontabs are loaded into the memory.
|
||||||
|
+for crontab files which are named after user accounts;
|
||||||
|
+together with the system crontab
|
||||||
|
+.IR /etc/crontab ,
|
||||||
|
+the found crontabs are loaded into the memory.
|
||||||
|
.I Cron
|
||||||
|
also searches for
|
||||||
|
any files in the
|
||||||
|
@@ -71,12 +63,11 @@
|
||||||
|
option.
|
||||||
|
.PP
|
||||||
|
There are two ways how changes in crontables are checked. The first
|
||||||
|
-method is checking the modtime of a file. The second method is using the
|
||||||
|
-inotify support. Using of inotify is logged in the
|
||||||
|
-.I /var/log/cron
|
||||||
|
-log after the daemon is started. The inotify support checks for changes
|
||||||
|
-in all crontables and accesses the hard disk only when a change is
|
||||||
|
-detected.
|
||||||
|
+method is checking the modtime of a file. The second method
|
||||||
|
+is using inotify support, which is only available on Linux.
|
||||||
|
+When the daemon uses inotify, it logs this fact to syslog on startup.
|
||||||
|
+The inotify support checks for changes in all crontables and accesses the
|
||||||
|
+hard disk only when a change is detected.
|
||||||
|
.PP
|
||||||
|
When using the modtime option,
|
||||||
|
.I Cron
|
||||||
|
@@ -99,13 +90,8 @@
|
||||||
|
.TP
|
||||||
|
.IR /var/spool/cron
|
||||||
|
directory that contains user crontables created by the
|
||||||
|
-.IR crontab
|
||||||
|
-command.
|
||||||
|
-.PP
|
||||||
|
-Note that the
|
||||||
|
.BR crontab (1)
|
||||||
|
-command updates the modtime of the spool directory whenever it changes a
|
||||||
|
-crontab.
|
||||||
|
+command.
|
||||||
|
.PP
|
||||||
|
.SS Daylight Saving Time and other time changes
|
||||||
|
Local time changes of less than three hours, such as those caused by the
|
||||||
|
@@ -153,7 +139,6 @@
|
||||||
|
standard input and send it as a mail message to the recipients specified
|
||||||
|
in the mail headers. Specifying the string
|
||||||
|
.I "off"
|
||||||
|
-(i.e., crond -m off)
|
||||||
|
will disable the sending of mail.
|
||||||
|
.TP
|
||||||
|
.B "\-n"
|
||||||
|
@@ -167,10 +152,14 @@
|
||||||
|
.B "\-f"
|
||||||
|
the same as -n, consistent with other crond implementations.
|
||||||
|
.TP
|
||||||
|
+.B "\-i"
|
||||||
|
+Disables inotify support (if present)
|
||||||
|
+.TP
|
||||||
|
.B "\-p"
|
||||||
|
Allows
|
||||||
|
.I Cron
|
||||||
|
-to accept any user set crontables.
|
||||||
|
+to accept any user set crontables (read: lift owner, type and mode
|
||||||
|
+restrictions)
|
||||||
|
.TP
|
||||||
|
.B "\-P"
|
||||||
|
Don't set PATH. PATH is instead inherited from the environment.
|
||||||
|
--- a/man/crontab.1
|
||||||
|
+++ b/man/crontab.1
|
||||||
|
@@ -109,7 +109,7 @@
|
||||||
|
.IR /etc/cron.d/
|
||||||
|
directory.
|
||||||
|
.PP
|
||||||
|
-The temporary directory can be set in an environment variable. If it is
|
||||||
|
+The temporary directory can be set using the environment variable $TMPDIR. If it is
|
||||||
|
not set by the user, the
|
||||||
|
.I /tmp
|
||||||
|
directory is used.
|
||||||
|
--- a/man/crontab.5
|
||||||
|
+++ b/man/crontab.5
|
||||||
|
@@ -268,7 +268,7 @@
|
||||||
|
# run at 2:15pm on the first of every month -- output mailed to paul
|
||||||
|
15 14 1 * * $HOME/bin/monthly
|
||||||
|
# run at 10 pm on weekdays, annoy Joe
|
||||||
|
-0 22 * * 1-5 mail -s "It's 10pm" joe%Joe,%%Where are your kids?%
|
||||||
|
+0 22 * * 1-5 mail \-s "It's 10pm" joe%Joe,%%Where are your kids?%
|
||||||
|
23 0-23/2 * * * echo "run 23 minutes after midn, 2am, 4am ..., everyday"
|
||||||
|
5 4 * * sun echo "run at 5 after 4 every sunday"
|
||||||
|
.fi
|
||||||
|
--- a/src/cron.c
|
||||||
|
+++ b/src/cron.c
|
||||||
|
@@ -179,7 +179,7 @@
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
fprintf(stderr, "Options:\n");
|
||||||
|
fprintf(stderr, " -h print this message \n");
|
||||||
|
- fprintf(stderr, " -i deamon runs without inotify support\n");
|
||||||
|
+ fprintf(stderr, " -i daemon runs without inotify support\n");
|
||||||
|
fprintf(stderr, " -m <comm> off, or specify preferred client for sending mails\n");
|
||||||
|
fprintf(stderr, " -n run in foreground\n");
|
||||||
|
fprintf(stderr, " -f run in foreground, the same as -n\n");
|
24
debian/patches/Rename-PAM-service-to-cronie.patch
vendored
Normal file
24
debian/patches/Rename-PAM-service-to-cronie.patch
vendored
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Thu, 28 Jul 2011 11:11:45 +0200
|
||||||
|
Subject: Rename PAM service to cronie
|
||||||
|
|
||||||
|
Upstream uses "crond"; we switch to "cron" to avoid confusion with Debian's ISC
|
||||||
|
cron (it uses "cron" but that might change).
|
||||||
|
|
||||||
|
Forwarded: not-needed
|
||||||
|
Last-Update: 2011-07-28
|
||||||
|
---
|
||||||
|
src/security.c | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
--- a/src/security.c
|
||||||
|
+++ b/src/security.c
|
||||||
|
@@ -195,7 +195,7 @@
|
||||||
|
int cron_start_pam(struct passwd *pw) {
|
||||||
|
int retcode = 0;
|
||||||
|
|
||||||
|
- retcode = pam_start("crond", pw->pw_name, &conv, &pamh);
|
||||||
|
+ retcode = pam_start("cronie", pw->pw_name, &conv, &pamh);
|
||||||
|
PAM_FAIL_CHECK;
|
||||||
|
retcode = pam_set_item(pamh, PAM_TTY, "cron");
|
||||||
|
PAM_FAIL_CHECK;
|
40
debian/patches/Unbundle-anacron.patch
vendored
Normal file
40
debian/patches/Unbundle-anacron.patch
vendored
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Thu, 28 Jul 2011 11:01:03 +0200
|
||||||
|
Subject: Unbundle anacron
|
||||||
|
|
||||||
|
Upstream has integrated anacron into cronie. Debian has its own package, so
|
||||||
|
we unbundle it (mostly by removing references to it).
|
||||||
|
|
||||||
|
Forwarded: not-needed
|
||||||
|
Last-Update: 2011-07-28
|
||||||
|
---
|
||||||
|
man/cron.8 | 11 +++--------
|
||||||
|
1 file changed, 3 insertions(+), 8 deletions(-)
|
||||||
|
|
||||||
|
--- a/man/cron.8
|
||||||
|
+++ b/man/cron.8
|
||||||
|
@@ -56,8 +56,7 @@
|
||||||
|
The found crontabs are loaded into the memory.
|
||||||
|
.I Cron
|
||||||
|
also searches for
|
||||||
|
-.I /etc/anacrontab
|
||||||
|
-and any files in the
|
||||||
|
+any files in the
|
||||||
|
.I /etc/cron.d
|
||||||
|
directory, which have a different format (see
|
||||||
|
.BR crontab (5)).
|
||||||
|
@@ -91,12 +90,8 @@
|
||||||
|
checks these files and directories:
|
||||||
|
.TP
|
||||||
|
.IR /etc/crontab
|
||||||
|
-system crontab. Nowadays the file is empty by default. Originally it
|
||||||
|
-was usually used to run daily, weekly, monthly jobs. By default these
|
||||||
|
-jobs are now run through anacron which reads
|
||||||
|
-.IR /etc/anacrontab
|
||||||
|
-configuration file. See
|
||||||
|
-.BR anacrontab (5)
|
||||||
|
+system crontab, usually used to run daily, weekly, monthly jobs. See
|
||||||
|
+.BR crontab (5)
|
||||||
|
for more details.
|
||||||
|
.TP
|
||||||
|
.IR /etc/cron.d/
|
27
debian/patches/Unbundle-upstream-PAM-config.patch
vendored
Normal file
27
debian/patches/Unbundle-upstream-PAM-config.patch
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From: Christian Kastner <ckk@kvr.at>
|
||||||
|
Date: Thu, 31 Oct 2019 22:16:13 +0100
|
||||||
|
Subject: Unbundle upstream PAM config
|
||||||
|
|
||||||
|
We supply our own PAM config, tailored to the Debian setup.
|
||||||
|
|
||||||
|
Last-Update: 2019-10-31
|
||||||
|
---
|
||||||
|
Makefile.am | 7 -------
|
||||||
|
1 file changed, 7 deletions(-)
|
||||||
|
|
||||||
|
--- a/Makefile.am
|
||||||
|
+++ b/Makefile.am
|
||||||
|
@@ -24,13 +24,6 @@
|
||||||
|
contrib/cronie.systemd \
|
||||||
|
anacron/ChangeLog.anacron
|
||||||
|
|
||||||
|
-if PAM
|
||||||
|
-pamdir = $(sysconfdir)/pam.d
|
||||||
|
-dist_pam_DATA = pam/crond
|
||||||
|
-else
|
||||||
|
-EXTRA_DIST += pam/crond
|
||||||
|
-endif
|
||||||
|
-
|
||||||
|
include anacron/Makemodule.am
|
||||||
|
include man/Makemodule.am
|
||||||
|
include src/Makemodule.am
|
27
debian/patches/cronie-service-debianization.patch
vendored
Normal file
27
debian/patches/cronie-service-debianization.patch
vendored
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From: Andreas Henriksson <andreas@fatal.se>
|
||||||
|
Date: Mon, 28 Oct 2019 19:33:53 +0100
|
||||||
|
Subject: Adjust the cronie.service file for debian use
|
||||||
|
|
||||||
|
Use default file instead of sysconfig, as shipped by this
|
||||||
|
package (debian/cronie.default) and also modify the variable
|
||||||
|
on ExecStart line as for what is used in the shipped default
|
||||||
|
file.
|
||||||
|
|
||||||
|
Forwarded: not-needed
|
||||||
|
---
|
||||||
|
contrib/cronie.systemd | 4 ++--
|
||||||
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
--- a/contrib/cronie.systemd
|
||||||
|
+++ b/contrib/cronie.systemd
|
||||||
|
@@ -3,8 +3,8 @@
|
||||||
|
After=auditd.service nss-user-lookup.target systemd-user-sessions.service time-sync.target ypbind.service autofs.service
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
-EnvironmentFile=/etc/sysconfig/crond
|
||||||
|
-ExecStart=/usr/sbin/crond -n $CRONDARGS
|
||||||
|
+EnvironmentFile=/etc/default/cronie
|
||||||
|
+ExecStart=/usr/sbin/crond -n $DAEMON_ARGS
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
KillMode=process
|
||||||
|
Restart=on-failure
|
8
debian/patches/series
vendored
Normal file
8
debian/patches/series
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
Unbundle-anacron.patch
|
||||||
|
Manpage-and-typo-fixes.patch
|
||||||
|
Rename-PAM-service-to-cronie.patch
|
||||||
|
Unbundle-upstream-PAM-config.patch
|
||||||
|
Debian-specific-paths-and-features.patch
|
||||||
|
Extend-support-for-kFreeBSD-and-GNU-HURD.patch
|
||||||
|
cronie-service-debianization.patch
|
||||||
|
Hurd-workaround-for-PATH_MAX.patch
|
76
debian/rules
vendored
Executable file
76
debian/rules
vendored
Executable file
@ -0,0 +1,76 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
# Uncomment this to turn on verbose mode.
|
||||||
|
#export DH_VERBOSE=1
|
||||||
|
|
||||||
|
# For DEB_HOST_ARCH_OS
|
||||||
|
include /usr/share/dpkg/architecture.mk
|
||||||
|
|
||||||
|
# Add build flags
|
||||||
|
export DEB_CFLAGS_MAINT_APPEND = -Wall
|
||||||
|
|
||||||
|
# Add hardening flags
|
||||||
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
||||||
|
|
||||||
|
# Build the config options string
|
||||||
|
CONFIG_OPTIONS =
|
||||||
|
|
||||||
|
# anacron is still being provided by src:anacron
|
||||||
|
CONFIG_OPTIONS += --disable-anacron
|
||||||
|
|
||||||
|
# Default EDITOR path
|
||||||
|
CONFIG_OPTIONS += --with-editor=/usr/bin/sensible-editor
|
||||||
|
|
||||||
|
# PAM is enabled by default
|
||||||
|
ifeq (,$(findstring nopam,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CONFIG_OPTIONS += --with-pam
|
||||||
|
endif
|
||||||
|
|
||||||
|
##########################
|
||||||
|
### Linux-only options ###
|
||||||
|
ifeq ($(DEB_HOST_ARCH_OS), linux)
|
||||||
|
|
||||||
|
# SELINUX is enabled by default
|
||||||
|
ifeq (,$(findstring noselinux,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CONFIG_OPTIONS += --with-selinux
|
||||||
|
endif
|
||||||
|
|
||||||
|
# inotify is enabled by default
|
||||||
|
ifeq (,$(findstring noinotify,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CONFIG_OPTIONS += --with-inotify
|
||||||
|
endif
|
||||||
|
|
||||||
|
# audit is disabled by default
|
||||||
|
ifneq (,$(findstring withaudit,$(DEB_BUILD_OPTIONS)))
|
||||||
|
CONFIG_OPTIONS += --with-audit
|
||||||
|
endif
|
||||||
|
|
||||||
|
endif
|
||||||
|
##### End Linux-only #####
|
||||||
|
##########################
|
||||||
|
|
||||||
|
|
||||||
|
%:
|
||||||
|
dh $@
|
||||||
|
|
||||||
|
# Set SPOOL_DIR to Debian's traditional location for crontabs (see Policy)
|
||||||
|
# Set CRON_GROUP to "crontab" to enable SGID functionality (avoids SUID)
|
||||||
|
override_dh_auto_configure:
|
||||||
|
SPOOL_DIR=/var/spool/cron/crontabs \
|
||||||
|
dh_auto_configure CRON_GROUP=crontab -- $(CONFIG_OPTIONS)
|
||||||
|
|
||||||
|
override_dh_install:
|
||||||
|
dh_install
|
||||||
|
# Create /etc/cron.deny to allow crontab(1) for all users by default
|
||||||
|
install -m 644 debian/etc/cronie.deny debian/cronie/etc/cron.deny
|
||||||
|
# System-wide crontab: IS NOT INSTALLED HERE: SEE CON-DAEMON-COMMON
|
||||||
|
#install -m 644 debian/etc/crontab.system debian/cronie/etc/crontab
|
||||||
|
# Placeholders for dpkg: ARE NOT INSTALLED HERE: SEE CON-DAEMON-COMMON
|
||||||
|
#install -m 644 debian/etc/placeholder debian/cronie/etc/cron.d/.placeholder
|
||||||
|
#install -m 644 debian/etc/placeholder debian/cronie/etc/cron.hourly/.placeholder
|
||||||
|
#install -m 644 debian/etc/placeholder debian/cronie/etc/cron.daily/.placeholder
|
||||||
|
#install -m 644 debian/etc/placeholder debian/cronie/etc/cron.weekly/.placeholder
|
||||||
|
#install -m 644 debian/etc/placeholder debian/cronie/etc/cron.monthly/.placeholder
|
||||||
|
# systemd service file
|
||||||
|
install -d -m 755 debian/cronie/lib/systemd/system/
|
||||||
|
install -m 644 contrib/cronie.systemd debian/cronie/lib/systemd/system/cronie.service
|
1
debian/source/format
vendored
Normal file
1
debian/source/format
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
3.0 (quilt)
|
8
debian/watch
vendored
Normal file
8
debian/watch
vendored
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
version=4
|
||||||
|
|
||||||
|
# using Github's API with tags
|
||||||
|
|
||||||
|
opts="searchmode=plain,\
|
||||||
|
filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.gz%" \
|
||||||
|
https://api.github.com/repos/cronie-crond/cronie/tags?per_page=100 \
|
||||||
|
https://api.github.com/repos/[^/]+/[^/]+/tarball/refs/tags/v?@ANY_VERSION@
|
Loading…
Reference in New Issue
Block a user