# Recipe for version 3.0.1 by Thomas Queste <tqueste@free.fr>, on Tue May 30 23:01:16 CEST 2006
# Recipe by Bill Burdick, Mobile Reasoning, July 13 2004

compile_version=1.8.0
url="http://fcron.free.fr/archives/fcron-3.0.1.src.tar.gz"
file_size=536972
file_md5=8e5dcb3a646c11294294895954ef0a48
dir=fcron-3.0.1
recipe_type=configure

unmanaged_files=(
    $goboVariable/spool/fcron
)

configure_options=(
	--with-docdir=$target/share/doc
	--with-etcdir=$settings_target
	--with-spooldir=$goboVariable/spool/fcron
	--with-rootname=`SuperUserName`
	--with-rootgroup=`SuperUserName`
	--without-sendmail
	--with-boot-install=no
	--with-editor=$goboExecutables/nano
)

pre_build() {
    grep -q cron  $goboSettings/group  || groupadd cron
    grep -q fcron $goboSettings/passwd || useradd fcron -g cron -s /bin/false
}

post_install() {
	chown -R 0:cron $goboVariable/spool/fcron
	chmod -R 640 $goboVariable/spool/fcron
}
