Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bf1d3e4694317e0def94fc1fa3341e2ce0d50a99)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Vlad Glagolev <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bf1d3e4694317e0def94fc1fa3341e2ce0d50a99)
  • Date: Sat, 25 Apr 2009 17:18:44 -0500

GIT changes to master grimoire by Vlad Glagolev <stealth AT sourcemage.org>:

ChangeLog | 3 +++
groups | 1 +
utils/cronie/BUILD | 8 +++++++-
utils/cronie/DEPENDS | 4 ++++
utils/cronie/HISTORY | 7 +++++++
utils/cronie/INSTALL | 11 ++++++++---
utils/cronie/init.d/crond | 3 +++
utils/cronie/init.d/cronie.conf | 6 ++++++
8 files changed, 39 insertions(+), 4 deletions(-)

New commits:
commit bf1d3e4694317e0def94fc1fa3341e2ce0d50a99
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

cronie: continue fixing the spell

commit 9ab28e8bdb8ffebf98e332e2e582106424e89f2e
Author: Vlad Glagolev <stealth AT sourcemage.org>
Commit: Vlad Glagolev <stealth AT sourcemage.org>

groups: added crontab group

diff --git a/ChangeLog b/ChangeLog
index e00b482..6f9f34b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2009-04-26 Vlad Glagolev <stealth AT sourcemage.org>
+ * groups: added crontab group
+
2009-04-25 Vlad Glagolev <stealth AT sourcemage.org>
* utils/cronie: new spell, clone of 'original' vixie-cron

diff --git a/groups b/groups
index f383cf4..8de3d7b 100755
--- a/groups
+++ b/groups
@@ -21,6 +21,7 @@ backup:34:
shadow:42:
utmp:43:
games:60:
+crontab:66:
firebird:84:
djbdns:88:
bind:101:
diff --git a/utils/cronie/BUILD b/utils/cronie/BUILD
index 687370e..fe7f762 100755
--- a/utils/cronie/BUILD
+++ b/utils/cronie/BUILD
@@ -1,3 +1,9 @@
-OPTS="$CRONIE_OPTS $OPTS" &&
+create_group crontab &&
+create_account daemon &&
+
+OPTS="--with-daemon_username=daemon \
+ --with-daemon_groupname=crontab \
+ $CRONIE_OPTS \
+ $OPTS" &&

default_build
diff --git a/utils/cronie/DEPENDS b/utils/cronie/DEPENDS
index 77e7c58..a79d4f8 100755
--- a/utils/cronie/DEPENDS
+++ b/utils/cronie/DEPENDS
@@ -1,3 +1,7 @@
+optional_depends MAIL-TRANSPORT-AGENT \
+ "" "" \
+ "for sending reports" &&
+
optional_depends linux-pam \
"--enable-pam=yes" \
"--enable-pam=no" \
diff --git a/utils/cronie/HISTORY b/utils/cronie/HISTORY
index 80e9e99..708467a 100644
--- a/utils/cronie/HISTORY
+++ b/utils/cronie/HISTORY
@@ -1,3 +1,10 @@
+2009-04-26 Vlad Glagolev <stealth AT sourcemage.org>
+ * DEPENDS: added MTA dep
+ * INSTALL: fixed permissions for crontab; removed account/group
creation
+ * BUILD: use daemon:crontab
+ * init.d/crond: use MTA
+ * init.d/cronie.conf: added to configure MTA command
+
2009-04-25 Vlad Glagolev <stealth AT sourcemage.org>
* BUILD, DEPENDS, DETAILS, INSTALL, PROVIDES, CONFIGURE, CONFLICTS,
crontab, init.d/crond: spell created
diff --git a/utils/cronie/INSTALL b/utils/cronie/INSTALL
index 3a489a8..5cd1657 100755
--- a/utils/cronie/INSTALL
+++ b/utils/cronie/INSTALL
@@ -1,8 +1,13 @@
-create_group daemon &&
-create_account daemon &&
-
default_install &&

+chmod g+s "$INSTALL_ROOT/usr/bin/crontab" &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SPELL_DIRECTORY/init.d/cronie.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/cronie"
+fi &&
+
install -vm 755 -d "$INSTALL_ROOT/etc/cron.d" &&
+install -vm 770 -o daemon -g crontab -d "$INSTALL_ROOT/var/spool/cron" &&

install_config_file "$SPELL_DIRECTORY/crontab" "$INSTALL_ROOT/etc/crontab"
diff --git a/utils/cronie/init.d/crond b/utils/cronie/init.d/crond
index aae4057..57fd3a6 100755
--- a/utils/cronie/init.d/crond
+++ b/utils/cronie/init.d/crond
@@ -1,6 +1,9 @@
#!/bin/sh

+. /etc/sysconfig/cronie
+
PROGRAM=/usr/sbin/crond
+ARGS="-m $MTA"
RUNLEVEL=3
PIDFILE=/var/run/crond.pid

diff --git a/utils/cronie/init.d/cronie.conf b/utils/cronie/init.d/cronie.conf
new file mode 100644
index 0000000..265bd26
--- /dev/null
+++ b/utils/cronie/init.d/cronie.conf
@@ -0,0 +1,6 @@
+# This option allows you to specify a shell command string to use for sending
+# cron mail output instead of sendmail(8). This command must accept a fully
+# formatted mail message (with headers) on stdin and send it as a mail
message
+# to the recipients specified in the mail headers.
+
+MTA="/usr/sbin/sendmail"



  • [SM-Commit] GIT changes to master grimoire by Vlad Glagolev (bf1d3e4694317e0def94fc1fa3341e2ce0d50a99), Vlad Glagolev, 04/25/2009

Archive powered by MHonArc 2.6.24.

Top of Page