summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPieter van den Abeele <pvdabeel@gentoo.org>2005-01-24 16:20:12 +0000
committerPieter van den Abeele <pvdabeel@gentoo.org>2005-01-24 16:20:12 +0000
commitbc5dc5f3b00efaf53cf23d9d5b5b5d6611a2c7d2 (patch)
tree06504678f403db60bd6261bc31a118cee064610a /app-portage
parentStable on sparc wrt #79183 (diff)
downloadgentoo-2-bc5dc5f3b00efaf53cf23d9d5b5b5d6611a2c7d2.tar.gz
gentoo-2-bc5dc5f3b00efaf53cf23d9d5b5b5d6611a2c7d2.tar.bz2
gentoo-2-bc5dc5f3b00efaf53cf23d9d5b5b5d6611a2c7d2.zip
version bump
Diffstat (limited to 'app-portage')
-rw-r--r--app-portage/basc/ChangeLog7
-rw-r--r--app-portage/basc/Manifest8
-rw-r--r--app-portage/basc/basc-1.5.8.ebuild167
-rw-r--r--app-portage/basc/files/digest-basc-1.5.82
4 files changed, 180 insertions, 4 deletions
diff --git a/app-portage/basc/ChangeLog b/app-portage/basc/ChangeLog
index 0deeae1cf56a..01f78964f58f 100644
--- a/app-portage/basc/ChangeLog
+++ b/app-portage/basc/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-portage/basc
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-portage/basc/ChangeLog,v 1.20 2005/01/19 23:01:30 squash Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-portage/basc/ChangeLog,v 1.21 2005/01/24 16:20:12 pvdabeel Exp $
+
+*basc-1.5.8 (23 Jan 2005)
+
+ 23 Jan 2005; Pieter Van den Abeele <pvdabeel@gentoo.org> basc-1.5.8.ebuild:
+ Version bump ; 78832 ; masked as testing
19 Jan 2005; Josh Grebe <squash@gentoo.org> basc-1.5.2.ebuild,
basc-1.5.3.ebuild, basc-1.5.4.ebuild, basc-1.5.5.ebuild, basc-1.5.6.ebuild,
diff --git a/app-portage/basc/Manifest b/app-portage/basc/Manifest
index 4d15ea17a000..adce6cbe87b2 100644
--- a/app-portage/basc/Manifest
+++ b/app-portage/basc/Manifest
@@ -1,14 +1,16 @@
-MD5 89413cab8f29687c43d4a365f3ad0cd3 ChangeLog 3669
+MD5 e33f32f8b8bdd72743597f614ca3a52d ChangeLog 3820
MD5 473b23db41808b0ae5545ffd4a6c0483 basc-1.5.2.ebuild 2253
MD5 3c0d52cfa58f54d61c4ded338f8778c7 basc-1.5.3.ebuild 2282
MD5 1ffafa9c3d2eb41c6f5b95586b6d9f1e basc-1.5.4.ebuild 2142
-MD5 77095632201910f440f24511c237134a basc-1.5.5.ebuild 2130
+MD5 36441a3af28aa17a592a5c409239a278 metadata.xml 616
MD5 92719ead382ef806938008856fd9aae2 basc-1.5.6.ebuild 2143
+MD5 77095632201910f440f24511c237134a basc-1.5.5.ebuild 2130
MD5 6cb6c7f2479eedda160c3c0a0b858d74 basc-1.5.7.ebuild 2131
-MD5 36441a3af28aa17a592a5c409239a278 metadata.xml 616
+MD5 8d84c0f41304ae62d65599b037a55fda basc-1.5.8.ebuild 4778
MD5 fad108ecff3fcfbf2987a555420c92cc files/digest-basc-1.5.2 61
MD5 74753ac6d1c6ab7f0dbf6c43d17045b4 files/digest-basc-1.5.3 61
MD5 0d0e5ae721dc3402d7b52269750aa9b7 files/digest-basc-1.5.4 61
MD5 144c814e142b0b00a52220a4114f4af3 files/digest-basc-1.5.5 61
MD5 c5c7d0367c00009c8b8151101fe7755f files/digest-basc-1.5.6 61
MD5 e0738699ce03f1a0b4212f2662d714e0 files/digest-basc-1.5.7 61
+MD5 f72b3080ccea9a57db232ad4d323195c files/digest-basc-1.5.8 122
diff --git a/app-portage/basc/basc-1.5.8.ebuild b/app-portage/basc/basc-1.5.8.ebuild
new file mode 100644
index 000000000000..0d334d9dcc40
--- /dev/null
+++ b/app-portage/basc/basc-1.5.8.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header $
+
+# ebuild contributed by Alexander Mieland and Daniel Herzog
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Buildtime And Statistics Client for http://www.gentoo-stats.org"
+HOMEPAGE="http://www.gentoo-stats.org"
+SRC_URI="http://www.gentoo-stats.org/download/${P}.tar.gz mirror://gnu/bash/bash-3.0.tar.gz"
+
+KEYWORDS="~x86 ~ppc"
+SLOT="0"
+LICENSE="GPL-2"
+
+IUSE="screenshot"
+
+RDEPEND="app-portage/gentoolkit
+ dev-lang/perl
+ sys-devel/gcc
+ sys-apps/sed
+ sys-apps/grep
+ app-arch/gzip
+ sys-apps/diffutils
+ sys-apps/time
+ sys-devel/bc
+ >=sys-libs/ncurses-5.2-r2
+ >=sys-apps/uhinv-0.4
+ screenshot? (media-gfx/scrot)"
+
+pkg_setup() {
+ enewgroup stats
+ enewuser stats -1 /bin/false /tmp stats
+}
+
+src_compile() {
+ sed -i "s:/usr/local:/usr:g" client/basc client/basc-fs
+ useq x86 && $(tc-getCC) ${CFLAGS} -o client/smt-detect client/smt-detect.c >/dev/null 2>&1
+}
+
+src_install() {
+ exeinto /usr/bin
+ doexe client/basc client/basc-fs client/urandom.sh
+ useq x86 && doexe client/smt-detect
+ dodoc README ChangeLog TEAM
+ dodir /etc/basc
+}
+
+pkg_postinst() {
+
+ chown -R root:stats ${ROOT}/etc/basc
+ chmod -R ug+rw ${ROOT}/etc/basc
+
+ einfo
+ if [ -f ${ROOT}/etc/basc/basc.gu ]
+ then
+ einfo "Benchmark data present. To re-run the benchmark execute:"
+ einfo "\"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
+ einfo
+ einfo "Now you can run basc by typing \"basc\"."
+ einfo "To get help, type \"basc -h\"."
+ einfo
+ einfo "Note:"
+ einfo
+ einfo "You have to be in the stats group to use the client!"
+ einfo "A user can be added to the stats group by executing:"
+ einfo
+ einfo " \"usermod -G \$(groups <ME> | sed -e 's/ /,/g'),stats <ME>\""
+ einfo
+ einfo "Replace <ME> with your username on the system."
+ einfo "After a login, you are ready to use the client."
+ einfo
+ einfo "If you want to automatically launch the client every 24h,"
+ einfo "you must set up a cronjob for the stats user or a user in"
+ einfo "the stats group."
+ einfo
+ einfo "For example:"
+ einfo
+ einfo " \"0 0 * * * /usr/bin/basc -q -y >/dev/null 2>&1\""
+ einfo
+ einfo "will start the client every day at 00:00am"
+ einfo
+ ebeep
+ else
+ ewarn "Benchmark data not present. You will need to execute:"
+ ewarn "\"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\""
+ ewarn "before using basc."
+ einfo
+ ebeep
+ epause 2
+ fi
+}
+
+pkg_config() {
+ if [ ! -d ${T}/${PF} ]; then
+ mkdir -p ${T}/${PF}
+ else
+ rm -f ${T}/${PF}/*
+ fi
+ cd ${T}/${PF}
+ einfo
+ einfo "I will benchmark your system now."
+ einfo
+ einfo "I'll unpack and compile bash-3.0 now. This package is "
+ einfo "needed to use it as a benchmark for your system. It will not"
+ einfo "be installed on your system. We only need to compile it,"
+ einfo "to have the compiletime then as your GU for your system."
+ einfo
+
+ if [ ! -e ${DISTDIR}/bash-3.0.tar.gz ]; then
+ eerror "I could not find the file ${DISTDIR}/bash-3.0.tar.gz. Please do:"
+ eerror "# ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild fetch"
+ die "Please fetch bash sources."
+ fi
+ unpack ${DISTFILES}/bash-3.0.tar.gz
+
+ cd bash-3.0
+
+ einfo "Configuring bash-3.0... please wait..."
+ /usr/bin/time -p -o ../configure.time -a ./configure >/dev/null 2>&1
+
+ einfo "Compiling bash-3.0... please wait..."
+ /usr/bin/time -p -o ../make.time -a make >/dev/null 2>&1
+
+ einfo "Calculating your GU for your system..."
+ cd ..
+ CONFTIME=`cat ./configure.time 2>/dev/null | head -n 1 | sed -e 's/^real \([^ ]*\)$/\1/'`
+ MAKETIME=`cat ./make.time 2>/dev/null | head -n 1 | sed -e 's/^real \([^ ]*\)$/\1/'`
+ GU=`echo "${CONFTIME} + ${MAKETIME}" | bc | cut -d "." -f 1`
+ echo ${GU} > ./basc.gu
+ cp ./basc.gu ${ROOT}/etc/basc/basc.gu
+
+ einfo "Deleting temporary benchmark-files..."
+ rm -fr ${T}/${PF}
+
+ einfo
+ einfo "Benchmarking successfully finished."
+ einfo
+ ewarn "Your GU: ${GU}"
+ einfo
+ einfo "Now you can run basc by typing \"basc\"."
+ einfo "To get help, type \"basc -h\"."
+ einfo
+ einfo "Note:"
+ einfo ""
+ einfo "You have to be in the stats group to use the client!"
+ einfo "A user can be added to the stats group by executing:"
+ einfo ""
+ einfo " \"usermod -G \$(groups <ME> | sed -e 's/ /,/g'),stats <ME>\""
+ einfo ""
+ einfo "Replace <ME> with your username on the system."
+ einfo "After a login, you are ready to use the client."
+ einfo ""
+ einfo "If you want to automatically launch the client every 24h,"
+ einfo "you must set up a cronjob for the stats user or a user in"
+ einfo "the stats group."
+ einfo ""
+ einfo "For example:"
+ einfo ""
+ einfo " \"0 0 * * * /usr/bin/basc -q -y >/dev/null 2>&1\""
+ einfo ""
+ einfo "will start the client every day at 00:00am"
+ einfo
+ chown -R root:stats ${ROOT}/etc/basc
+ chmod -R ug+rw ${ROOT}/etc/basc
+}
diff --git a/app-portage/basc/files/digest-basc-1.5.8 b/app-portage/basc/files/digest-basc-1.5.8
new file mode 100644
index 000000000000..75c4dad6d470
--- /dev/null
+++ b/app-portage/basc/files/digest-basc-1.5.8
@@ -0,0 +1,2 @@
+MD5 bec5a86f37f5d0b9eba90468bdafb0fe basc-1.5.8.tar.gz 20321
+MD5 26c4d642e29b3533d8d754995bc277b3 bash-3.0.tar.gz 2418293