summary refs log tree commit diff
path: root/pkgs/tools/system/fcron
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2008-11-22 16:57:31 +0000
committerMarc Weber <marco-oweber@gmx.de>2008-11-22 16:57:31 +0000
commit26212b62c702dd890db750cfdb5cee152259bf3a (patch)
treef75b16f86e90ef4a37b76ac62013ddacafb0b052 /pkgs/tools/system/fcron
parent57c012cd8c5d30db922eb4023cec6b13e92343fe (diff)
downloadnixlib-26212b62c702dd890db750cfdb5cee152259bf3a.tar
nixlib-26212b62c702dd890db750cfdb5cee152259bf3a.tar.gz
nixlib-26212b62c702dd890db750cfdb5cee152259bf3a.tar.bz2
nixlib-26212b62c702dd890db750cfdb5cee152259bf3a.tar.lz
nixlib-26212b62c702dd890db750cfdb5cee152259bf3a.tar.xz
nixlib-26212b62c702dd890db750cfdb5cee152259bf3a.tar.zst
nixlib-26212b62c702dd890db750cfdb5cee152259bf3a.zip
(last) fcron fix for now because the service works as expected
svn path=/nixpkgs/trunk/; revision=13368
Diffstat (limited to 'pkgs/tools/system/fcron')
-rw-r--r--pkgs/tools/system/fcron/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/tools/system/fcron/default.nix b/pkgs/tools/system/fcron/default.nix
index 0d7f49ff7d37..197bd3f0ce7c 100644
--- a/pkgs/tools/system/fcron/default.nix
+++ b/pkgs/tools/system/fcron/default.nix
@@ -16,10 +16,12 @@ args.stdenv.mkDerivation {
   configureFlags = [ "--with-sendmail=/var/setuid-wrappers/sendmail"
                     "--with-editor=/var/run/current-system/sw/bin/vi"
                     "--with-bootinstall=no"
+                    "--sysconfdir=/etc"
                     # fcron would have been default user/grp
                     "--with-username=root"
                     "--with-groupname=root"
                   ];
+  installTargets = "install-staged"; # install does also try to change permissions of /etc/* files
   preConfigure = ''
     sed -i 's@/usr/bin/env perl@${args.perl}/bin/perl@g' configure
     # Don't let fcron create the group fcron, nix(os) should do this
@@ -32,10 +34,6 @@ args.stdenv.mkDerivation {
     find -type f | xargs sed -i -e 's@^\(\s\)*chown@\1:@' -e 's@^\(\s\)*chgrp@\1:@'
   '';
 
-  # default location for pidfile, fifofile, fcronallow, fcrondenay..
-  # Then we don't need a wrapper to tell fcron where to find another configuration file
-  postInstall = '' sed -i "s@$out@@" $out/etc/fcron.conf '';
-
   meta = { 
       description="A command scheduler with extended capabilities over cron and anacron";
       homepage =  http://fcron.free.fr;