* [gentoo-commits] gentoo-x86 commit in app-portage/porticron/files: porticron-0.1
@ 2008-10-28 12:17 Benedikt Boehm (hollow)
0 siblings, 0 replies; 2+ messages in thread
From: Benedikt Boehm (hollow) @ 2008-10-28 12:17 UTC (permalink / raw
To: gentoo-commits
hollow 08/10/28 12:17:34
Added: porticron-0.1
Log:
initial version
(Portage version: 2.1.4.5)
Revision Changes Path
1.1 app-portage/porticron/files/porticron-0.1
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/porticron/files/porticron-0.1?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-portage/porticron/files/porticron-0.1?rev=1.1&content-type=text/plain
Index: porticron-0.1
===================================================================
#!/bin/bash
SCRIPT_NAME=$(basename $0)
FQDN=$(hostname --fqdn)
IP=$(dig +short ${FQDN})
DATE=$(date -R)
PORTDIR=$(portageq portdir)
# only sync portage if PORTDIR is mounted read-write
if touch "${PORTDIR}"/.read_only_check &>/dev/null; then
rm -f "${PORTDIR}"/.read_only_check
/usr/bin/emerge --sync --quiet &>/dev/null
fi
PACKAGES=$(/usr/bin/emerge --pretend --changelog --update --deep --newuse --quiet --usepkg world 2>/dev/null)
if [[ -z ${PACKAGES} ]]; then
exit 0
fi
cat <<EOF | sendmail -t
To: root@${FQDN}
From: root@${FQDN}
Subject: Gentoo package updates on ${FQDN}
Date: ${DATE}
porticron report [${DATE}]
========================================================================
${SCRIPT_NAME} has detected that some packages need upgrading on:
${FQDN}
[ ${IP} ]
The following packages are currently pending an upgrade:
$(echo "${PACKAGES}" | sed 's/^\[/ [/')
========================================================================
You can perform the upgrade by issuing the command:
emerge -NDuk world
as root on ${FQDN}
It is recommended that you pretend the upgrade first to confirm that
the actions that would be taken are reasonable. The upgrade may be
pretended by issuing the command:
emerge -NDuvpk world
--
${SCRIPT_NAME}
EOF
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in app-portage/porticron/files: porticron-0.1
@ 2008-11-23 13:50 Benedikt Boehm (hollow)
0 siblings, 0 replies; 2+ messages in thread
From: Benedikt Boehm (hollow) @ 2008-11-23 13:50 UTC (permalink / raw
To: gentoo-commits
hollow 08/11/23 13:50:02
Removed: porticron-0.1
Log:
version bump
(Portage version: 2.1.4.5)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-23 13:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-28 12:17 [gentoo-commits] gentoo-x86 commit in app-portage/porticron/files: porticron-0.1 Benedikt Boehm (hollow)
-- strict thread matches above, loose matches on Subject: below --
2008-11-23 13:50 Benedikt Boehm (hollow)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox