From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QCoac-0003A5-Sg for garchives@archives.gentoo.org; Thu, 21 Apr 2011 07:46:15 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3EBAF1C014; Thu, 21 Apr 2011 07:44:29 +0000 (UTC) Received: from vergina.dyndns.org (cust-218-222.on4.ontelecoms.gr [92.118.218.222]) by pigeon.gentoo.org (Postfix) with ESMTP id D83A01C014 for ; Thu, 21 Apr 2011 07:44:28 +0000 (UTC) Received: from [192.168.0.1] (viper.vergina.dyndns.org [192.168.0.1]) by viper.vergina.dyndns.org (Postfix) with ESMTP id 7447956C0 for ; Thu, 21 Apr 2011 10:44:27 +0300 (EEST) Message-ID: <4DAFE05B.6020804@asyr.hopto.org> Date: Thu, 21 Apr 2011 10:44:27 +0300 From: Thanasis User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110407 Lightning/1.0b3pre Thunderbird/3.1.9 ThunderBrowse/3.3.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Howzat! References: <201104180228.59487.peter@humphrey.ukfsn.org> <20110418225609.0e47a40e@digimed.co.uk> <4DAD1ECE.2000207@asyr.hopto.org> <20110419065754.D2F7C39B2@data.antarean.org> <20110419090418.00cdff45@digimed.co.uk> <4DAD7B12.6090806@asyr.hopto.org> <20110420143314.082671c3@zaphod.digimed.co.uk> <4DAF4EB5.2070201@asyr.hopto.org> <20110420230139.49fef528@digimed.co.uk> In-Reply-To: <20110420230139.49fef528@digimed.co.uk> Content-Type: text/plain; charset=ISO-8859-7 Content-Transfer-Encoding: 7bit X-Archives-Salt: X-Archives-Hash: 3caba3ccc164bcd78136809792c1bc3d on 04/21/2011 01:01 AM Neil Bothwick wrote the following: > On Thu, 21 Apr 2011 00:23:01 +0300, Thanasis wrote: > >> Thanks! Can you add some comments, like what the directories presync.d >> and postupdate.d are supposed to be ... as I don't have those. >> >> I have postsync.d and don't know what is it about ... It contains a file >> named q-reinitialize : > > Scripts/programs in postsync.d are executed by portage after a sync. The > other two are ones I added, before portage had postsync support, to run > anything I wanted before and after a sync. The only thing used them for > now is to turn rsyncd off and on on my server, to prevent other machines > syncing from it while its portage tree is being updated. > > BTW - I read the list, no need to send me an extra copy of the mail > directly. So, I understand that normally (in my case) there is no need for these presync.d and postupdate.d directories, right? The script could be stripped from these like so: ########################################################################### #!/bin/bash export PORTAGE_ECLASS_WARNING_ENABLE="0" WORLD_MERGE="emerge --update --deep --reinstall changed-use --with-bdeps y --verbose @system @world" SYNCED="" for i in {0..12}; do echo "$(date): syncing portage" emerge --sync && SYNCED="true" && break sleep 5m done if [[ "${SYNCED}" ]]; then if [[ "${SYNCED}" == "true" ]]; then echo "Portage synced" 1>&2 else echo "Portage not synced" 1>&2 fi TEMPFILE=$(mktemp) ${WORLD_MERGE} --changelog --pretend >|${TEMPFILE} Mail -s "$(hostname): Updated packages" neil <${TEMPFILE} rm -f ${TEMPFILE} else echo "Failure syncing portage" >&2 fi GLSAs=$(glsa-check --test all 2>/dev/null) if [[ -n "${GLSAs}" ]]; then for GLSA in ${GLSAs}; do glsa-check --dump ${GLSA} | grep -B88 Unaffected echo -e "\n" done | Mail -s "GLSA warnings for $(hostname)" neil fi if [[ -x "$(which eix-update 2>/dev/null)" ]]; then eix-update --quiet [[ -f /etc/portage/no-eix-remote ]] || LOCAL_LAYMAN=/mnt/portage/layman eix-remote -q update fi exit 0 ########################################################################### Is that correct?