]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/fcron
Zwischencommit fuer LFS.
[people/pmueller/ipfire-2.x.git] / lfs / fcron
index 4bf0420d4e85c26902a62bb023284c1101a386b7..2a6d4934f05ff947bdd9eefe2f6abb497d8a456a 100644 (file)
--- a/lfs/fcron
+++ b/lfs/fcron
 # Makefiles are based on LFSMake, which is                                    #
 # Copyright (C) 2002 Rod Roard <rod@sunsetsystems.com>                        #
 #                                                                             #
-# Modifications by:                                                           #
-# ??-12-2003 Mark Wormgoor < mark@wormgoor.com>                               #
-#          - Modified Makefile for IPCop build                                #
-#                                                                             #
-# $Id: fcron,v 1.5.2.4 2005/02/05 15:38:14 gespinasse Exp $
-#                                                                             #
 ###############################################################################
 
 ###############################################################################
 
 include Config
 
-VER        = 2.0.2
+VER        = 3.0.1
 
 THISAPP    = fcron-$(VER)
 DL_FILE    = $(THISAPP).src.tar.gz
-DL_FROM    = http://fcron.free.fr/archives
+DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
@@ -48,7 +42,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 416c55d8a484eb6c9907828009fd649c
+$(DL_FILE)_MD5 = 8e5dcb3a646c11294294895954ef0a48
 
 install : $(TARGET)
 
@@ -78,15 +72,29 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
-       cd $(DIR_APP) && ./configure --prefix=/usr --disable-nls \
-           --without-sendmail \
-           --with-spooldir=/var/spool/cron \
-           --with-username=cron --with-groupname=cron
-       cd $(DIR_APP) && yes 'n' | make
-       cd $(DIR_APP) && yes 'n' | make install
+       cd $(DIR_APP) && ./configure    \
+           --prefix=/usr                       \
+           --disable-nls                       \
+           --without-sendmail          \
+           --with-spooldir=/var/spool/cron     \
+           --with-fifodir=/var/run             \
+           --with-username=cron                \
+           --with-groupname=cron               \
+           --with-run-non-privileged=no        \
+           --with-fcrondyn=no          \
+           --with-sysfcrontab=no               \
+           --with-boot-install=no              \
+           --with-pam=no                       \
+           --with-selinux=no
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
        echo "root" > /etc/fcron.allow
        echo "all"  > /etc/fcron.deny
        chmod u-s /usr/bin/fcrontab /usr/bin/fcronsighup
+       mkdir -p /etc/fcron.minutely /etc/fcron.cyclic /etc/fcron.hourly \
+               /etc/fcron.daily /etc/fcron.weekly /etc/fcron.monthly
+       cp -vf $(DIR_CONF)/cron/minutely/* /etc/fcron.minutely
+       chmod -v 755 /etc/fcron.minutely/*
        /usr/bin/fcrontab $(DIR_SRC)/config/cron/crontab
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)