(last) fcron fix for now because the service works as expected

svn path=/nixpkgs/trunk/; revision=13368
This commit is contained in:
Marc Weber 2008-11-22 16:57:31 +00:00
parent 57c012cd8c
commit 26212b62c7

View file

@ -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;