Add GNU mcron, a `cron' implementation in Guile Scheme.
svn path=/nixpkgs/trunk/; revision=14870
This commit is contained in:
22
pkgs/tools/system/mcron/install-vixie-programs.patch
Normal file
22
pkgs/tools/system/mcron/install-vixie-programs.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
This patch allows us to install the Vixie-compatible binaries as
|
||||
non-root.
|
||||
|
||||
--- mcron-1.0.4/makefile.in 2008-02-21 20:55:24.000000000 +0100
|
||||
+++ mcron-1.0.4/makefile.in 2009-04-03 20:18:44.000000000 +0200
|
||||
@@ -872,15 +872,11 @@ mcron.c : main.scm crontab.scm makefile.
|
||||
@rm -f mcron.escaped.scm > /dev/null 2>&1
|
||||
|
||||
install-exec-hook:
|
||||
- @if [ "`id -u`" -eq "0" ]; then \
|
||||
+ @if true; then \
|
||||
rm -f $(fpp)cron$(EXEEXT) > /dev/null 2>&1; \
|
||||
$(INSTALL) --mode='u=rwx' mcron$(EXEEXT) $(fpp)cron$(EXEEXT); \
|
||||
rm -f $(fpp)crontab$(EXEEXT) > /dev/null 2>&1; \
|
||||
$(INSTALL) --mode='u=rwxs,og=rx' mcron$(EXEEXT) $(fpp)crontab$(EXEEXT); \
|
||||
- ./mkinstalldirs -m 'u=rwx' /var/cron; \
|
||||
- ./mkinstalldirs -m 'u=rwx,og=rx' /var/run; \
|
||||
- ./mkinstalldirs -m 'u=rwx,og=rx' @GUILE_SITE@; \
|
||||
- ./mkinstalldirs -m 'u=rwx,og=rx' @GUILE_SITE@/mcron; \
|
||||
else \
|
||||
echo "+++ WARNING: NON-ROOT INSTALL: ONLY mcron WILL BE INSTALLED, NOT ANY OF THE VIXIE REPLACEMENT PROGRAMS"; \
|
||||
fi
|
||||
Reference in New Issue
Block a user