From be08a328c272e58078b77ecb4e40c81601f8fdba Mon Sep 17 00:00:00 2001 From: milisarge Date: Sun, 11 Jun 2017 00:12:17 +0300 Subject: [PATCH] hardinfo.paketlendi --- talimatname/genel/hardinfo/fixsensors.patch | 13 +++++++++++ talimatname/genel/hardinfo/hardinfo.distro | 1 + talimatname/genel/hardinfo/talimat | 24 +++++++++++++++++++++ 3 files changed, 38 insertions(+) create mode 100644 talimatname/genel/hardinfo/fixsensors.patch create mode 100644 talimatname/genel/hardinfo/hardinfo.distro create mode 100644 talimatname/genel/hardinfo/talimat diff --git a/talimatname/genel/hardinfo/fixsensors.patch b/talimatname/genel/hardinfo/fixsensors.patch new file mode 100644 index 000000000..812c29458 --- /dev/null +++ b/talimatname/genel/hardinfo/fixsensors.patch @@ -0,0 +1,13 @@ + diff -upNr hardinfo-0.4.2.2.orign/util.c hardinfo-0.4.2.2/util.c +--- hardinfo-0.4.2.2.orign/util.c 2007-07-20 16:45:08.000000000 +0200 ++++ hardinfo-0.4.2.2/util.c 2007-07-26 10:15:32.000000000 +0200 +@@ -996,7 +996,8 @@ gchar *h_strdup_cprintf(const gchar * fo + if (source) { + retn = g_strconcat(source, buffer, NULL); + g_free(buffer); +- g_free(source); ++ if(strlen(source)) ++ g_free(source); + } else { + retn = buffer; + } diff --git a/talimatname/genel/hardinfo/hardinfo.distro b/talimatname/genel/hardinfo/hardinfo.distro new file mode 100644 index 000000000..aa93e2a75 --- /dev/null +++ b/talimatname/genel/hardinfo/hardinfo.distro @@ -0,0 +1 @@ +Milis Linux diff --git a/talimatname/genel/hardinfo/talimat b/talimatname/genel/hardinfo/talimat new file mode 100644 index 000000000..1e951b806 --- /dev/null +++ b/talimatname/genel/hardinfo/talimat @@ -0,0 +1,24 @@ +# Description: A system information and benchmark tool for Linux systems +# URL: http://hardinfo.berlios.de/ +# Packager: milisarge +# Depends on: gtk2 + +name=hardinfo +version=0.5.1 +release=1 +source=(http://sourceforge.net/projects/hardinfo.berlios/files/${name}-${version}.tar.bz2 + fixsensors.patch + hardinfo.distro) + +build() { + cd $name-$version + patch -p1 -i "${SRC}/fixsensors.patch" + sed -i 's|/usr/lib64|/usr/lib|' configure + sed -i 's|lib64|lib|' binreloc.c + sed -i 's|{ DB_PREFIX "debian_version", "deb" },|{ DB_PREFIX "hardinfo.distro", "arch" },{ DB_PREFIX "debian_version", "deb" },|' computer.h + ./configure + make + make DESTDIR=$PKG install + rm -r $PKG/usr/local + install -D -m644 "${SRC}/hardinfo.distro" "${PKG}/etc/hardinfo.distro" +}