Porticron
Porticron est un script qui synchronise l’arbre de portage et vous fait un rapport par mail des paquets à mettre à jour.
Installation
Pour installer le paquet, il vous suffit de taper la commande suivante :
emerge -av porticron
Configuration
porticron.conf
La configuration de porticron est centralisée dans le fichier de configuration /etc/porticron.conf . Modifiez ce fichier à votre guise. En voici un exemple :
# use emerge for synchronisation
#SYNC_CMD="/usr/bin/emerge --sync"
# use eix-sync instead of emerge --sync
SYNC_CMD="/usr/bin/eix-sync"
# do not synchronize (e.g. if PORTDIR is mounted read-only)
#SYNC_CMD="/bin/true"
# use layman for synchronizing overlays
SYNC_OVERLAYS_CMD="/usr/bin/layman -S"
# do not synchronize overlays
#SYNC_OVERLAYS_CMD="/bin/true"
# include a report of changed ebuilds
DIFF_CMD="/usr/bin/eix-diff /var/cache/eix/previous.eix"
# emerge upgrade options
UPGRADE_OPTS="-vuDN"
# recipient for reports
RCPT=root@$(hostname -f)
# format of the e-mail subject
# use {FQDN}, {HOST}, {IP}, and {DATE} as variables
#SUBJECT="Gentoo package updates on {FQDN} [ {IP} ]"
# format of the e-mail subject in case of warnings
# use {FQDN}, {HOST}, {IP}, and {DATE} as variables
#SUBJECT_WARN="WARNING: Gentoo security updates on {FQDN} [ {IP} ]"
# path to sendmail binary
SENDMAIL=/usr/sbin/sendmail
# send each unique notification e-mail only once
CHECK_DUP_MSG=1
Crontab
Il ne reste plus qu’à ajouter la tâche planifiée suivante :
0 0 * * * root /usr/sbin/porticron