summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2003-06-12 01:09:40 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2003-06-12 01:09:40 +0000
commit34577d8e552d753c729642d2cd8ba451082cbbc3 (patch)
tree6d02943c044cdd72d6d8d507bcc8da7fbf838062 /app-admin/hddtemp
parenta lot of work to update the hddtemp.db file now, and easily again in future (diff)
downloadgentoo-2-34577d8e552d753c729642d2cd8ba451082cbbc3.tar.gz
gentoo-2-34577d8e552d753c729642d2cd8ba451082cbbc3.tar.bz2
gentoo-2-34577d8e552d753c729642d2cd8ba451082cbbc3.zip
a lot of work to update the hddtemp.db file now, and easily again in future
Diffstat (limited to 'app-admin/hddtemp')
-rw-r--r--app-admin/hddtemp/ChangeLog13
-rw-r--r--app-admin/hddtemp/Manifest5
-rw-r--r--app-admin/hddtemp/files/digest-hddtemp-0.3_beta6-r12
-rw-r--r--app-admin/hddtemp/hddtemp-0.3_beta6-r1.ebuild45
4 files changed, 61 insertions, 4 deletions
diff --git a/app-admin/hddtemp/ChangeLog b/app-admin/hddtemp/ChangeLog
index 8e28e9184b46..095acfa67fdc 100644
--- a/app-admin/hddtemp/ChangeLog
+++ b/app-admin/hddtemp/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for app-admin/hddtemp
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v 1.7 2003/05/09 21:43:56 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/ChangeLog,v 1.8 2003/06/12 01:09:37 robbat2 Exp $
+
+*hddtemp-0.3_beta6-r1 (11 Jun 2003)
+
+ 11 Jun 2003; Robin Johnson <robbat2@gentoo.org> hddtemp-0.3_beta6-r1.ebuild:
+ Changes to ebuild to make it easy to bump the version for getting the
+ database updates. One reason for just not updating the hddtemp.db in the
+ tree is that in some cases you might want to go back versions, and the
+ author is also considering changing the hddtemp.db file format.
+ Redo the concept of the hddtemp.db patch, using sed, so we can change the
+ location inside the ebuild. This is important as we want to be able to
+ easily update the file without worrying about CONFIG_PROTECT.
*hddtemp-0.3_beta6 (15 Apr 2003)
diff --git a/app-admin/hddtemp/Manifest b/app-admin/hddtemp/Manifest
index ee381da37ddb..660ad6d667c4 100644
--- a/app-admin/hddtemp/Manifest
+++ b/app-admin/hddtemp/Manifest
@@ -1,9 +1,8 @@
MD5 0d387b08a1bcdabeafc21f76613c446e hddtemp-0.2.ebuild 931
-MD5 76cea0931ed7059840e347978734a514 hddtemp-0.3_beta6-r1.ebuild 1124
+MD5 b003f4e24e6aec098409c7afa35a5712 hddtemp-0.3_beta6-r1.ebuild 1190
MD5 f334818ef1de70b301dbc19ba42e9e6e hddtemp-0.3_beta6.ebuild 910
-MD5 8b6e85ccc33d4be3442365f0ea8d396b ChangeLog 1881
+MD5 48ed771fa9259646fbc4a7e834f1b5f0 ChangeLog 1987
MD5 e42a32b0df5005090c105881a4cb02cc files/digest-hddtemp-0.3_beta6-r1 133
-MD5 298195d02b8ab8492d68457290b29a5c files/hddtemp-0.3_beta6-db_location.patch 338
MD5 0441f48755331a54d70ab13db98b4117 files/digest-hddtemp-0.3_beta6 121
MD5 06b275391f52469a2773a41b9ccc48d6 files/digest-hddtemp-0.2 115
MD5 a4e0540c259f86b5ed2c4af2a7ead160 files/hddtemp-0.2-db_location.patch 593
diff --git a/app-admin/hddtemp/files/digest-hddtemp-0.3_beta6-r1 b/app-admin/hddtemp/files/digest-hddtemp-0.3_beta6-r1
new file mode 100644
index 000000000000..61f92f41c711
--- /dev/null
+++ b/app-admin/hddtemp/files/digest-hddtemp-0.3_beta6-r1
@@ -0,0 +1,2 @@
+MD5 884bdfc69dcdcb16e20159185c56efae hddtemp-0.3-beta6.tar.gz 35032
+MD5 1c0622714475cbc81b600e66eb217b0e hddtemp-20030609.db.gz 2672
diff --git a/app-admin/hddtemp/hddtemp-0.3_beta6-r1.ebuild b/app-admin/hddtemp/hddtemp-0.3_beta6-r1.ebuild
new file mode 100644
index 000000000000..d37f292919ff
--- /dev/null
+++ b/app-admin/hddtemp/hddtemp-0.3_beta6-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/hddtemp/hddtemp-0.3_beta6-r1.ebuild,v 1.1 2003/06/12 01:09:37 robbat2 Exp $
+
+MY_P=${P/_beta/-beta}
+HDDDB_VERSION=20030609
+HDDDB_FILE=hddtemp-${HDDDB_VERSION}.db
+HDDDB_DIR=/usr/share/${PN}
+
+DESCRIPTION="A simple utility to read the temperature of SMART IDE hard drives"
+HOMEPAGE="http://coredump.free.fr/linux/hddtemp.php"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~ppc ~sparc"
+DEPEND="virtual/glibc"
+
+SRC_URI="http://coredump.free.fr/linux/${MY_P}.tar.gz
+ mirror://gentoo/${HDDDB_FILE}.gz"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ unpack ${MY_P}.tar.gz
+ gunzip <${DISTDIR}/${HDDDB_FILE}.gz >${WORKDIR}/${HDDDB_FILE}
+ cd ${S}
+ # patch Makefile
+ mv Makefile Makefile.orig
+ sed -e "s:^CFLAGS.*:CFLAGS=${CFLAGS} -DARCH_I386:" \
+ -e "s:^CC.*:CC=gcc:" \
+ Makefile.orig > Makefile
+ mv db.h db.h.orig
+ sed -e "s:/etc/hddtemp.db:${HDDDB_DIR}/${HDDDB_FILE}:" \
+ db.h.orig > db.h
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ dobin hddtemp
+ insinto ${HDDDB_DIR}
+ doins ${WORKDIR}/${HDDDB_FILE}
+ dodoc README TODO Changelog COPYING
+}