diff --git a/talimatname/genel/f/fcron/fcron.kos-kur b/talimatname/genel/f/fcron/fcron.kos-kur new file mode 100644 index 000000000..35363e6b0 --- /dev/null +++ b/talimatname/genel/f/fcron/fcron.kos-kur @@ -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 + diff --git a/talimatname/genel/f/fcron/fcron.okubeni b/talimatname/genel/f/fcron/fcron.okubeni deleted file mode 100644 index a0e859557..000000000 --- a/talimatname/genel/f/fcron/fcron.okubeni +++ /dev/null @@ -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 diff --git a/talimatname/genel/f/fcron/fcron.sil-kos b/talimatname/genel/f/fcron/fcron.sil-kos new file mode 100644 index 000000000..2dbe810d9 --- /dev/null +++ b/talimatname/genel/f/fcron/fcron.sil-kos @@ -0,0 +1,3 @@ +userdel fcron +groupdel fcron + diff --git a/talimatname/genel/f/fcron/servis b/talimatname/genel/f/fcron/servis new file mode 100644 index 000000000..d96f74f16 --- /dev/null +++ b/talimatname/genel/f/fcron/servis @@ -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 diff --git a/talimatname/genel/f/fcron/systab.orig b/talimatname/genel/f/fcron/systab.orig new file mode 100644 index 000000000..54e72b2b1 --- /dev/null +++ b/talimatname/genel/f/fcron/systab.orig @@ -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 \ No newline at end of file diff --git a/talimatname/genel/f/fcron/talimat b/talimatname/genel/f/fcron/talimat index 63f34a951..31151e6d1 100644 --- a/talimatname/genel/f/fcron/talimat +++ b/talimatname/genel/f/fcron/talimat @@ -1,35 +1,43 @@ # Tanım: Özellik açısından zengin cron uygulaması # URL: http://fcron.free.fr # Paketçi: milisarge -# Gerekler: +# Gerekler: vim fetchmail isim=fcron -surum=3.2.0 +surum=3.3.0 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() { -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 -done -# Install the script -cd ../$scripts-$scriptsversion -make DESTDIR=$PKG install-fcron -rm -rf $PKG/usr/share/doc + 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 + + cd $isim-$surum + + ./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 } diff --git a/talimatname/genel/f/fetchmail/.fetchmailrc b/talimatname/genel/f/fetchmail/fetchmailrc similarity index 100% rename from talimatname/genel/f/fetchmail/.fetchmailrc rename to talimatname/genel/f/fetchmail/fetchmailrc diff --git a/talimatname/genel/f/fetchmail/talimat b/talimatname/genel/f/fetchmail/talimat index 017e69171..21627f5b5 100644 --- a/talimatname/genel/f/fetchmail/talimat +++ b/talimatname/genel/f/fetchmail/talimat @@ -1,27 +1,21 @@ # Tanım: Uzak posta sunucularından posta alır ve yerel makinelere iletir # URL: http://www.fetchmail.info # Paketçi: milisarge -# Gerekler: openssl procmail python tk +# Gerekler: openssl procmail isim=fetchmail surum=6.3.26 devir=1 kaynak=(http://downloads.sourceforge.net/fetchmail/$isim-$surum.tar.xz - .fetchmailrc) + fetchmailrc) derle() { cd $isim-$surum - ./configure --prefix=/usr --with-ssl --enable-fallback=procmail - make - make DESTDIR=$PKG install - - install -v -m755 -d $PKG/root - - cp -v $SRC/.fetchmailrc $PKG/root/.fetchmailrc - chmod -v 0600 $PKG/root/.fetchmailrc - + install -v -m755 -d $PKG/usr/share/fetchmail + cp -v $SRC/fetchmailrc $PKG/usr/share/fetchmail/.fetchmailrc + chmod -v 0600 $PKG/usr/share/fetchmail/.fetchmailrc } diff --git a/talimatname/genel/s/sendmail/sendmail.sil-kos b/talimatname/genel/s/sendmail/sendmail.sil-kos new file mode 100644 index 000000000..3355681bd --- /dev/null +++ b/talimatname/genel/s/sendmail/sendmail.sil-kos @@ -0,0 +1,3 @@ +userdel smmsp +groupdel smmsp + diff --git a/talimatname/genel/s/sendmail/talimat b/talimatname/genel/s/sendmail/talimat index 2da970817..d0f5c8e84 100644 --- a/talimatname/genel/s/sendmail/talimat +++ b/talimatname/genel/s/sendmail/talimat @@ -1,13 +1,14 @@ # Tanım: The sendmail package contains a Mail Transport Agent (MTA). -# URL: ftp://ftp.sendmail.org/pub/sendmail/ -# Paketçi: berlius at nutyx dot com -# Gerekler: ghostscript cyrus-sasl openssl procmail openldap +# URL: ftp://ftp.sendmail.org/pub/sendmail/ +# Paketçi: milisarge +# Gerekler: ghostscript cyrus-sasl openssl procmail openldap isim=sendmail surum=8.15.2 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() {