diff options
author | Benedikt Boehm <hollow@gentoo.org> | 2008-11-23 13:50:02 +0000 |
---|---|---|
committer | Benedikt Boehm <hollow@gentoo.org> | 2008-11-23 13:50:02 +0000 |
commit | fad2ab68051942db79fe450408ce8765c1dcb747 (patch) | |
tree | 65cff7a5f42880a08410d44dd12646048e88117d /app-portage | |
parent | Preparation for gtk-sharp-2.12.6. (diff) | |
download | gentoo-2-fad2ab68051942db79fe450408ce8765c1dcb747.tar.gz gentoo-2-fad2ab68051942db79fe450408ce8765c1dcb747.tar.bz2 gentoo-2-fad2ab68051942db79fe450408ce8765c1dcb747.zip |
version bump
(Portage version: 2.1.4.5)
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/porticron/ChangeLog | 8 | ||||
-rwxr-xr-x | app-portage/porticron/files/porticron-0.1 | 55 | ||||
-rw-r--r-- | app-portage/porticron/porticron-0.2.1.ebuild (renamed from app-portage/porticron/porticron-0.1.ebuild) | 14 |
3 files changed, 17 insertions, 60 deletions
diff --git a/app-portage/porticron/ChangeLog b/app-portage/porticron/ChangeLog index 42e81cdc32be..05382a1c7f63 100644 --- a/app-portage/porticron/ChangeLog +++ b/app-portage/porticron/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-portage/porticron # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/porticron/ChangeLog,v 1.2 2008/10/31 08:20:07 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/porticron/ChangeLog,v 1.3 2008/11/23 13:50:02 hollow Exp $ + +*porticron-0.2.1 (23 Nov 2008) + + 23 Nov 2008; Benedikt Böhm <hollow@gentoo.org> -files/porticron-0.1, + -porticron-0.1.ebuild, +porticron-0.2.1.ebuild: + version bump *porticron-0.2 (31 Oct 2008) diff --git a/app-portage/porticron/files/porticron-0.1 b/app-portage/porticron/files/porticron-0.1 deleted file mode 100755 index ab16f6e989c2..000000000000 --- a/app-portage/porticron/files/porticron-0.1 +++ /dev/null @@ -1,55 +0,0 @@ -#!/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 diff --git a/app-portage/porticron/porticron-0.1.ebuild b/app-portage/porticron/porticron-0.2.1.ebuild index 0cf085e11370..0e837bb157fa 100644 --- a/app-portage/porticron/porticron-0.1.ebuild +++ b/app-portage/porticron/porticron-0.2.1.ebuild @@ -1,11 +1,12 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-portage/porticron/porticron-0.1.ebuild,v 1.1 2008/10/28 12:17:34 hollow Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-portage/porticron/porticron-0.2.1.ebuild,v 1.1 2008/11/23 13:50:02 hollow Exp $ DESCRIPTION="porticron is a cron script to sync portage and send update mails to root" -HOMEPAGE="http://www.gentoo.org" +HOMEPAGE="http://git.xnull.de/gitweb/?p=porticron.git;a=summary" +SRC_URI="http://dev.gentoo.org/~hollow/distfiles/${P}.tar.bz2" -LICENSE="as-is" +LICENSE="BSD" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" @@ -13,7 +14,12 @@ IUSE="" DEPEND="" RDEPEND="net-dns/bind-tools" +S="${WORKDIR}"/${PN} + src_install() { + dosbin bin/porticron + insinto /etc + doins etc/porticron.conf insinto /etc/cron.daily - newins "${FILESDIR}"/porticron-0.1 porticron + doins "${FILESDIR}"/porticron } |