fcron.paketlendi
This commit is contained in:
parent
b7814808c4
commit
25aa13d84e
10 changed files with 114 additions and 67 deletions
5
talimatname/genel/f/fcron/fcron.kos-kur
Normal file
5
talimatname/genel/f/fcron/fcron.kos-kur
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/sh
|
||||||
|
getent group fcron || /sbin/groupadd -g 22 fcron
|
||||||
|
getent passwd fcron || /sbin/useradd -g fcron -u 22 -d /var/spool/fcron -s /bin/false fcron
|
||||||
|
/usr/bin/passwd -l fcron
|
||||||
|
|
|
@ -1,27 +0,0 @@
|
||||||
Si vous installez ce paquet fcron, il semble logique que le service soit lancé par défaut, c'est pourquoi les scripts de lancement sont intégrés dans le paquet.
|
|
||||||
|
|
||||||
Assurez-vous que la ligne ci-dessous se trouve dans le fichier de config /etc/syslog.conf :
|
|
||||||
|
|
||||||
cron.* -/var/log/cron.log
|
|
||||||
|
|
||||||
Exemple de configuration:
|
|
||||||
|
|
||||||
La ligne ci-dessous lancera le script "/etc/fcron/daily" tous les soir à 23H59
|
|
||||||
|
|
||||||
59 23 * * * /etc/fcron/daily
|
|
||||||
|
|
||||||
La ligne ci-dessous lancera le script "/etc/fcron/monthly/flushlogs" tous les premiers du mois à 0h 0 minute
|
|
||||||
|
|
||||||
0 0 1 * * /etc/fcron/monthly/flushlogs
|
|
||||||
|
|
||||||
La ligne ci-dessous lancera le script "/etc/fcron/weekly/cleanup" tous les dimanche à 12h00
|
|
||||||
|
|
||||||
0 12 * * 0 /etc/fcron/weekly/cleanup
|
|
||||||
|
|
||||||
Le /etc/fcron/always/tic sera exécutée toutes les minutes
|
|
||||||
|
|
||||||
* * * * * /etc/fcron/always/tic
|
|
||||||
|
|
||||||
Il faut s'assurer que les scripts à lancer soit executables par exemple
|
|
||||||
|
|
||||||
chmod 755 /etc/fcron/weekly/cleanup
|
|
3
talimatname/genel/f/fcron/fcron.sil-kos
Normal file
3
talimatname/genel/f/fcron/fcron.sil-kos
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
userdel fcron
|
||||||
|
groupdel fcron
|
||||||
|
|
47
talimatname/genel/f/fcron/servis
Normal file
47
talimatname/genel/f/fcron/servis
Normal file
|
@ -0,0 +1,47 @@
|
||||||
|
#!/bin/sh
|
||||||
|
#
|
||||||
|
# /etc/init.d/fcron: start/stop fcron daemon
|
||||||
|
#
|
||||||
|
|
||||||
|
SSD=/sbin/start-stop-daemon
|
||||||
|
PROG=/usr/sbin/fcron
|
||||||
|
PID=/var/run/fcron.pid
|
||||||
|
OPTS="--background"
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
start)
|
||||||
|
$SSD --start --pidfile $PID --exec $PROG -- $OPTS
|
||||||
|
RETVAL=$?
|
||||||
|
if [ $RETVAL -eq 0 -a ! -f /var/spool/fcron/systab ]; then
|
||||||
|
/usr/bin/fcrontab -u systab -z
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
stop)
|
||||||
|
$SSD --stop --retry 10 --pidfile $PID
|
||||||
|
RETVAL=$?
|
||||||
|
;;
|
||||||
|
restart)
|
||||||
|
$0 stop
|
||||||
|
$0 start
|
||||||
|
;;
|
||||||
|
reload)
|
||||||
|
$SSD --stop --signal USR1 --pidfile $PID
|
||||||
|
RETVAL=$?
|
||||||
|
;;
|
||||||
|
status)
|
||||||
|
$SSD --status --pidfile $PID
|
||||||
|
case $? in
|
||||||
|
0) echo "$PROG is running with pid $(cat $PID)" ;;
|
||||||
|
1) echo "$PROG is not running but the pid file $PID exists" ;;
|
||||||
|
3) echo "$PROG is not running" ;;
|
||||||
|
4) echo "Unable to determine the program status" ;;
|
||||||
|
esac
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "usage: $0 [start|stop|restart|reload|status]"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
exit $RETVAL
|
||||||
|
|
||||||
|
# End of file
|
13
talimatname/genel/f/fcron/systab.orig
Normal file
13
talimatname/genel/f/fcron/systab.orig
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#
|
||||||
|
# /var/spool/fcron/systab.org: fcron(8) configuration
|
||||||
|
#
|
||||||
|
|
||||||
|
!mailto(root)
|
||||||
|
!noticenotrun(yes)
|
||||||
|
|
||||||
|
%hourly * /usr/sbin/runjobs /etc/cron/hourly
|
||||||
|
%daily * * /usr/sbin/runjobs /etc/cron/daily
|
||||||
|
%weekly * * /usr/sbin/runjobs /etc/cron/weekly
|
||||||
|
%monthly * * * /usr/sbin/runjobs /etc/cron/monthly
|
||||||
|
|
||||||
|
# End of file
|
|
@ -1,35 +1,43 @@
|
||||||
# Tanım: Özellik açısından zengin cron uygulaması
|
# Tanım: Özellik açısından zengin cron uygulaması
|
||||||
# URL: http://fcron.free.fr
|
# URL: http://fcron.free.fr
|
||||||
# Paketçi: milisarge
|
# Paketçi: milisarge
|
||||||
# Gerekler:
|
# Gerekler: vim fetchmail
|
||||||
|
|
||||||
isim=fcron
|
isim=fcron
|
||||||
surum=3.2.0
|
surum=3.3.0
|
||||||
devir=1
|
devir=1
|
||||||
kaynak=(http://fcron.free.fr/archives/$isim-$surum.src.tar.gz )
|
kaynak=(http://fcron.free.fr/archives/$isim-$surum.src.tar.gz
|
||||||
|
servis
|
||||||
|
systab.orig)
|
||||||
|
|
||||||
derle() {
|
derle() {
|
||||||
unset MAKEFLAGS
|
|
||||||
source /etc/blfs-bootscripts
|
|
||||||
wget http://www.linuxfromscratch.org/blfs/downloads/svn/$scripts-$scriptsversion.tar.bz2
|
|
||||||
tar xf $scripts-$scriptsversion.tar.bz2
|
|
||||||
# build package
|
|
||||||
cd $isim-$surum
|
|
||||||
./configure --prefix=/usr --sysconfdir=/etc \
|
|
||||||
--without-sendmail --localstatedir=/var \
|
|
||||||
--with-boot-install=no --mandir=/usr/share/man \
|
|
||||||
--infodir=/usr/share/info \
|
|
||||||
--with-systemdsystemunitdir=no
|
|
||||||
make
|
|
||||||
make DESTDIR=$PKG install
|
|
||||||
rm $PKG/etc/pam.conf
|
|
||||||
mkdir -p $PKG/etc/pam.d
|
|
||||||
for i in fcron fcrontab
|
|
||||||
|
|
||||||
do install -D -m644 files/fcron.pam $PKG/etc/pam.d/$i
|
getent group fcron || /sbin/groupadd -g 22 fcron
|
||||||
done
|
getent passwd fcron || /sbin/useradd -g fcron -u 22 -d /var/spool/fcron -s /bin/false fcron
|
||||||
# Install the script
|
/usr/bin/passwd -l fcron
|
||||||
cd ../$scripts-$scriptsversion
|
|
||||||
make DESTDIR=$PKG install-fcron
|
cd $isim-$surum
|
||||||
rm -rf $PKG/usr/share/doc
|
|
||||||
|
./configure --prefix=/usr \
|
||||||
|
--sysconfdir=/etc/fcron \
|
||||||
|
--localstatedir=/var \
|
||||||
|
--mandir=/usr/share/man \
|
||||||
|
--with-spooldir=/var/spool/fcron \
|
||||||
|
--with-boot-install=no \
|
||||||
|
--with-answer-all=no \
|
||||||
|
--with-username=fcron \
|
||||||
|
--with-groupname=fcron \
|
||||||
|
--with-db2man=no \
|
||||||
|
--with-dsssl-dir=no \
|
||||||
|
--with-pam=no \
|
||||||
|
--with-sendmail="/usr/bin/fetchmail" \
|
||||||
|
--with-editor="/usr/bin/vi"
|
||||||
|
|
||||||
|
make
|
||||||
|
make DESTDIR=$PKG install
|
||||||
|
|
||||||
|
rm -r $PKG/{usr/share/{doc,man/{fr,man3}},var/run}
|
||||||
|
|
||||||
|
install -D -m 755 $SRC/servis $PKG/etc/rc.d/init.d/fcron
|
||||||
|
install -m 600 -o root -g fcron $SRC/systab.orig $PKG/var/spool/fcron
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,27 +1,21 @@
|
||||||
# Tanım: Uzak posta sunucularından posta alır ve yerel makinelere iletir
|
# Tanım: Uzak posta sunucularından posta alır ve yerel makinelere iletir
|
||||||
# URL: http://www.fetchmail.info
|
# URL: http://www.fetchmail.info
|
||||||
# Paketçi: milisarge
|
# Paketçi: milisarge
|
||||||
# Gerekler: openssl procmail python tk
|
# Gerekler: openssl procmail
|
||||||
|
|
||||||
isim=fetchmail
|
isim=fetchmail
|
||||||
surum=6.3.26
|
surum=6.3.26
|
||||||
devir=1
|
devir=1
|
||||||
kaynak=(http://downloads.sourceforge.net/fetchmail/$isim-$surum.tar.xz
|
kaynak=(http://downloads.sourceforge.net/fetchmail/$isim-$surum.tar.xz
|
||||||
.fetchmailrc)
|
fetchmailrc)
|
||||||
|
|
||||||
derle() {
|
derle() {
|
||||||
|
|
||||||
cd $isim-$surum
|
cd $isim-$surum
|
||||||
|
|
||||||
./configure --prefix=/usr --with-ssl --enable-fallback=procmail
|
./configure --prefix=/usr --with-ssl --enable-fallback=procmail
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
make DESTDIR=$PKG install
|
make DESTDIR=$PKG install
|
||||||
|
install -v -m755 -d $PKG/usr/share/fetchmail
|
||||||
install -v -m755 -d $PKG/root
|
cp -v $SRC/fetchmailrc $PKG/usr/share/fetchmail/.fetchmailrc
|
||||||
|
chmod -v 0600 $PKG/usr/share/fetchmail/.fetchmailrc
|
||||||
cp -v $SRC/.fetchmailrc $PKG/root/.fetchmailrc
|
|
||||||
chmod -v 0600 $PKG/root/.fetchmailrc
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
3
talimatname/genel/s/sendmail/sendmail.sil-kos
Normal file
3
talimatname/genel/s/sendmail/sendmail.sil-kos
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
userdel smmsp
|
||||||
|
groupdel smmsp
|
||||||
|
|
|
@ -1,13 +1,14 @@
|
||||||
# Tanım: The sendmail package contains a Mail Transport Agent (MTA).
|
# Tanım: The sendmail package contains a Mail Transport Agent (MTA).
|
||||||
# URL: ftp://ftp.sendmail.org/pub/sendmail/
|
# URL: ftp://ftp.sendmail.org/pub/sendmail/
|
||||||
# Paketçi: berlius at nutyx dot com
|
# Paketçi: milisarge
|
||||||
# Gerekler: ghostscript cyrus-sasl openssl procmail openldap
|
# Gerekler: ghostscript cyrus-sasl openssl procmail openldap
|
||||||
|
|
||||||
isim=sendmail
|
isim=sendmail
|
||||||
surum=8.15.2
|
surum=8.15.2
|
||||||
devir=1
|
devir=1
|
||||||
|
|
||||||
kaynak=(ftp://ftp.sendmail.org/pub/$isim/$isim.$surum.tar.gz site.config.m4)
|
kaynak=(ftp://ftp.sendmail.org/pub/$isim/$isim.$surum.tar.gz
|
||||||
|
site.config.m4)
|
||||||
|
|
||||||
derle() {
|
derle() {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue