mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-10-31 22:51:22 +00:00
GNU mcron 1.0.6.
svn path=/nixpkgs/trunk/; revision=22464
This commit is contained in:
parent
900b3d9d86
commit
05dd21d4fb
@ -1,17 +1,19 @@
|
|||||||
{ fetchurl, stdenv, guile, which, ed }:
|
{ fetchurl, stdenv, guile, which, ed }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "mcron-1.0.4";
|
name = "mcron-1.0.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://gnu/mcron/${name}.tar.gz";
|
url = "mirror://gnu/mcron/${name}.tar.gz";
|
||||||
sha256 = "0wrpi9qj50a8wfslapnkmsr6d3qx40hfw57a022m1z1syiljq4xl";
|
sha256 = "0yvrfzzdy2m7fbqkr61fw01wd9r2jpnbyabxhcsfivgxywknl0fy";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./install-vixie-programs.patch ];
|
patches = [ ./install-vixie-programs.patch ];
|
||||||
|
|
||||||
buildInputs = [ guile which ed ];
|
buildInputs = [ guile which ed ];
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "GNU mcron, a flexible implementation of `cron' in Guile";
|
description = "GNU mcron, a flexible implementation of `cron' in Guile";
|
||||||
|
|
||||||
|
@ -1,22 +1,23 @@
|
|||||||
This patch allows us to install the Vixie-compatible binaries as
|
This patch allows us to install the Vixie-compatible binaries as
|
||||||
non-root.
|
non-root without creating /var/run, etc.
|
||||||
|
|
||||||
--- mcron-1.0.4/makefile.in 2008-02-21 20:55:24.000000000 +0100
|
--- mcron-1.0.6/makefile.in 2010-06-19 20:44:17.000000000 +0200
|
||||||
+++ mcron-1.0.4/makefile.in 2009-04-03 20:18:44.000000000 +0200
|
+++ mcron-1.0.6/makefile.in 2010-07-04 16:16:25.000000000 +0200
|
||||||
@@ -872,15 +872,11 @@ mcron.c : main.scm crontab.scm makefile.
|
@@ -1004,15 +1004,11 @@ mcron.c : main.scm crontab.scm makefile.
|
||||||
@rm -f mcron.escaped.scm > /dev/null 2>&1
|
@rm -f mcron.escaped.scm > /dev/null 2>&1
|
||||||
|
|
||||||
install-exec-hook:
|
install-exec-hook:
|
||||||
- @if [ "`id -u`" -eq "0" ]; then \
|
- @if [ "x@NO_VIXIE_CLOBBER@" != "xyes" -a "`id -u`" -eq "0" ]; then \
|
||||||
+ @if true; then \
|
+ @if [ "x@NO_VIXIE_CLOBBER@" != "xyes" ]; then \
|
||||||
rm -f $(fpp)cron$(EXEEXT) > /dev/null 2>&1; \
|
rm -f $(fpp)cron$(EXEEXT) > /dev/null 2>&1; \
|
||||||
$(INSTALL) --mode='u=rwx' mcron$(EXEEXT) $(fpp)cron$(EXEEXT); \
|
$(INSTALL) --mode='u=rwx' mcron$(EXEEXT) $(fpp)cron$(EXEEXT); \
|
||||||
rm -f $(fpp)crontab$(EXEEXT) > /dev/null 2>&1; \
|
rm -f $(fpp)crontab$(EXEEXT) > /dev/null 2>&1; \
|
||||||
$(INSTALL) --mode='u=rwxs,og=rx' mcron$(EXEEXT) $(fpp)crontab$(EXEEXT); \
|
$(INSTALL) --mode='u=rwxs,og=rx' mcron$(EXEEXT) $(fpp)crontab$(EXEEXT); \
|
||||||
- ./mkinstalldirs -m 'u=rwx' /var/cron; \
|
- $(INSTALL) -d --mode='u=rwx' $(DESTDIR)/var/cron; \
|
||||||
- ./mkinstalldirs -m 'u=rwx,og=rx' /var/run; \
|
- $(INSTALL) -d --mode='u=rwx,og=rx' $(DESTDIR)/var/run; \
|
||||||
- ./mkinstalldirs -m 'u=rwx,og=rx' @GUILE_SITE@; \
|
- $(INSTALL) -d --mode='u=rwx,og=rx' $(DESTDIR)@GUILE_SITE@; \
|
||||||
- ./mkinstalldirs -m 'u=rwx,og=rx' @GUILE_SITE@/mcron; \
|
- $(INSTALL) -d --mode='u=rwx,og=rx' $(DESTDIR)@GUILE_SITE@/mcron; \
|
||||||
|
elif [ "x@NO_VIXIE_CLOBBER@" = "xyes" ]; then \
|
||||||
|
echo "Not installing Vixie-style programs"; \
|
||||||
else \
|
else \
|
||||||
echo "+++ WARNING: NON-ROOT INSTALL: ONLY mcron WILL BE INSTALLED, NOT ANY OF THE VIXIE REPLACEMENT PROGRAMS"; \
|
|
||||||
fi
|
|
||||||
|
Loading…
Reference in New Issue
Block a user