diff options
author | Cecil <knoppmyth@gmail.com> | 2011-07-06 08:08:18 (GMT) |
---|---|---|
committer | Cecil <knoppmyth@gmail.com> | 2011-07-06 08:08:18 (GMT) |
commit | 2349be277829ca5a534c1c928c424b53c3365a8a (patch) | |
tree | 6cab73254f89a8936fdabdf294335c0b8bfb4e53 /abs | |
parent | 5682957686bc461e19d7a38b0436b83007b6b8d4 (diff) | |
download | linhes_pkgbuild-2349be277829ca5a534c1c928c424b53c3365a8a.zip linhes_pkgbuild-2349be277829ca5a534c1c928c424b53c3365a8a.tar.gz linhes_pkgbuild-2349be277829ca5a534c1c928c424b53c3365a8a.tar.bz2 |
hddtemp:bumped to latest.
Diffstat (limited to 'abs')
-rw-r--r-- | abs/extra/hddtemp/PKGBUILD | 28 | ||||
-rw-r--r-- | abs/extra/hddtemp/hddtemp-0.3-beta15-reg-eip.patch | 22 |
2 files changed, 37 insertions, 13 deletions
diff --git a/abs/extra/hddtemp/PKGBUILD b/abs/extra/hddtemp/PKGBUILD index 996577d..f43fb8f 100644 --- a/abs/extra/hddtemp/PKGBUILD +++ b/abs/extra/hddtemp/PKGBUILD @@ -1,13 +1,13 @@ -# $Id: PKGBUILD 29127 2009-03-05 18:08:55Z andyrtr $ +# $Id: PKGBUILD 98707 2010-11-12 20:24:41Z ibiru $ # Maintainer: Andrea Scarpino <bash@archlinux.it> # Contributor: Roman Kyrylych <roman@archlinux.org> # Contributor: Damir Perisa <damir@archlinux.org> pkgname=hddtemp -pkgver=0.3.beta15.45 +pkgver=0.3.beta15.46 _origver=0.3-beta15 -_patchver=45 -pkgrel=2 +_patchver=46 +pkgrel=1 pkgdesc="Gives you the temperature of your hard drive by reading S.M.A.R.T. information" arch=('i686' 'x86_64') url="http://www.guzu.net/linux/hddtemp.php" @@ -16,24 +16,26 @@ depends=('glibc') backup=('etc/conf.d/hddtemp') source=(http://www.guzu.net/files/hddtemp-${_origver}.tar.bz2 http://ftp.debian.org/debian/pool/main/h/hddtemp/hddtemp_${_origver}-${_patchver}.diff.gz - 'hddtemp' 'hddtemp.confd') + 'hddtemp' 'hddtemp.confd' 'hddtemp-0.3-beta15-reg-eip.patch') md5sums=('8b829339e1ae9df701684ec239021bb8' - 'a809a3a28d29ee719b2855af9b4eb1a8' + '040437845e28771c560b4bb40e41f933' 'b7ebb86dfeef3bc4577ed1040307e36b' - 'fdca5c43900406f0be76534ef2a5a697') + 'fdca5c43900406f0be76534ef2a5a697' + '526ef28549dd0da7e38d32cfc8523592') options=('!libtool') build() { cd "$srcdir/$pkgname-${_origver}" - patch -Np1 -i "$srcdir/${pkgname}_${_origver}-${_patchver}.diff" || return 1 + patch -Np1 -i "$srcdir/${pkgname}_${_origver}-${_patchver}.diff" + patch -Np1 -i "$srcdir/hddtemp-0.3-beta15-reg-eip.patch" ./configure --prefix=/usr --mandir=/usr/share/man --with-db-path=/usr/share/$pkgname/hddtemp.db - make || return 1 - make DESTDIR=$startdir/pkg install || return 1 + make + make DESTDIR=$pkgdir install install -D -m644 "$srcdir/$pkgname-${_origver}/debian/hddtemp.db" \ - "$pkgdir/usr/share/${pkgname}/hddtemp.db" || return 1 - install -D -m644 "$srcdir/hddtemp.confd" "$pkgdir/etc/conf.d/hddtemp" || return 1 - install -D -m755 "$srcdir/hddtemp" "$pkgdir/etc/rc.d/hddtemp" || return 1 + "$pkgdir/usr/share/${pkgname}/hddtemp.db" + install -D -m644 "$srcdir/hddtemp.confd" "$pkgdir/etc/conf.d/hddtemp" + install -D -m755 "$srcdir/hddtemp" "$pkgdir/etc/rc.d/hddtemp" } diff --git a/abs/extra/hddtemp/hddtemp-0.3-beta15-reg-eip.patch b/abs/extra/hddtemp/hddtemp-0.3-beta15-reg-eip.patch new file mode 100644 index 0000000..504a036 --- /dev/null +++ b/abs/extra/hddtemp/hddtemp-0.3-beta15-reg-eip.patch @@ -0,0 +1,22 @@ +__USE_GNU needs to be in effect when including sys/ucontext.h, +and signal.h pulls it in in some setups. + +diff -up hddtemp-0.3-beta15/src/backtrace.c~ hddtemp-0.3-beta15/src/backtrace.c +--- hddtemp-0.3-beta15/src/backtrace.c~ 2006-04-19 05:38:14.000000000 +0300 ++++ hddtemp-0.3-beta15/src/backtrace.c 2010-02-14 21:59:47.000000000 +0200 +@@ -27,13 +27,12 @@ + #include <stdlib.h> + #include <unistd.h> + #include <linux/ptrace.h> ++#define __USE_GNU ++#include <ucontext.h> + #include <signal.h> + #include <bits/sigcontext.h> + #include <sys/param.h> + +-#define __USE_GNU +-#include <ucontext.h> +- + #define MAX_BTSIZE 64 + + void backtrace_handler(int n, siginfo_t *ist, void *extra) { |