2017-01-31 02:35:21 +01:00
|
|
|
|
# Description: S.M.A.R.T degerlerini okuyarak hdd ısısını verir
|
2016-12-04 16:39:51 +01:00
|
|
|
|
# URL: http://www.guzu.net/linux/hddtemp.php
|
|
|
|
|
# Packager: milisarge
|
2017-01-31 02:35:21 +01:00
|
|
|
|
# Depends on:
|
2016-12-04 16:39:51 +01:00
|
|
|
|
|
|
|
|
|
name=hddtemp
|
|
|
|
|
version=0.3-beta15
|
|
|
|
|
release=1
|
|
|
|
|
source=(http://nongnu.askapache.com/hddtemp/$name-$version.tar.bz2
|
|
|
|
|
http://nongnu.askapache.com/hddtemp/hddtemp.db
|
|
|
|
|
hddtemp-0.3-beta15-satacmds.patch
|
|
|
|
|
hddtemp-0.3-beta15-byteswap.patch
|
|
|
|
|
hddtemp-0.3-beta15-execinfo.patch
|
|
|
|
|
hddtemp-0.3-beta15-nls.patch
|
|
|
|
|
hddtemp-0.3-beta15-iconv.patch
|
|
|
|
|
hddtemp.rc)
|
|
|
|
|
|
|
|
|
|
build() {
|
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
|
|
patch -p 1 -i $SRC/hddtemp-0.3-beta15-satacmds.patch
|
|
|
|
|
patch -p 1 -i $SRC/hddtemp-0.3-beta15-byteswap.patch
|
|
|
|
|
patch -p 1 -i $SRC/hddtemp-0.3-beta15-execinfo.patch
|
|
|
|
|
patch -p 1 -i $SRC/hddtemp-0.3-beta15-nls.patch
|
|
|
|
|
patch -p 1 -i $SRC/hddtemp-0.3-beta15-iconv.patch
|
|
|
|
|
autoreconf
|
|
|
|
|
|
|
|
|
|
./configure \
|
|
|
|
|
--prefix=/usr \
|
|
|
|
|
--mandir=/usr/man \
|
|
|
|
|
--with-db-path=/etc/hddtemp.db
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
install -m 0644 -D $SRC/hddtemp.db $PKG/etc/hddtemp.db
|
|
|
|
|
install -m 0744 -D $SRC/hddtemp.rc $PKG/etc/rc.d/hddtemp
|
|
|
|
|
}
|