diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-25 15:26:24 +0200 |
commit | b6af1e02efe594039707cd882517663d5370f375 (patch) | |
tree | ff9c2d55873e051e82972ba64c017352d3a75d34 /unmaintained/hardinfo | |
parent | a71346b7acebc600960a98c84fb32cfd72fe864b (diff) | |
download | aports-b6af1e02efe594039707cd882517663d5370f375.tar.bz2 aports-b6af1e02efe594039707cd882517663d5370f375.tar.xz |
testing/[multiple]: move unmaintained packages
This moves all packages from testing to unmaintained which have not been
updated for atleast 6 months. If you are affected by this commit please follow
this proceddure:
* make sure your packages build on all architectures
* move your pacakge(s) back to testing
* if you want to keep this package and can maintain it (or find somebody to
maintain it for you) for a minimum of 6 months ask it to be moved to community
Diffstat (limited to 'unmaintained/hardinfo')
-rw-r--r-- | unmaintained/hardinfo/APKBUILD | 44 | ||||
-rw-r--r-- | unmaintained/hardinfo/fixsensors.patch | 13 | ||||
-rw-r--r-- | unmaintained/hardinfo/hardinfo-alpine.patch | 10 | ||||
-rw-r--r-- | unmaintained/hardinfo/uclibc.patch | 22 |
4 files changed, 89 insertions, 0 deletions
diff --git a/unmaintained/hardinfo/APKBUILD b/unmaintained/hardinfo/APKBUILD new file mode 100644 index 0000000000..968ba57d17 --- /dev/null +++ b/unmaintained/hardinfo/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=hardinfo +pkgver=0.5.1 +pkgrel=5 +pkgdesc="A system information and benchmark tool." +url="http://hardinfo.berlios.de/wiki/index.php/Main_Page" +arch="all" +license="GPL2" +makedepends="gtk+-dev libsoup-dev>=2.4.0 gnutls-dev>=2.4.1" +depends= +source="http://download.berlios.de/$pkgname/$pkgname-$pkgver.tar.bz2 + fixsensors.patch + uclibc.patch + hardinfo-alpine.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done + + # configure scrip says bash but bb ash works just fine + sed -i -e '1,1s/bash/sh/' configure +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + install -d "$pkgdir"/etc + echo "Alpine Linux" > "$pkgdir"/etc/hardinfo.distro +} +md5sums="6fb38992e140f2fab16518ae1f38e188 hardinfo-0.5.1.tar.bz2 +05c212db07b9f152cdea052ff7bb28fa fixsensors.patch +e5dfccb5d3cb46acd36072f9e2396ff4 uclibc.patch +41651eb55dc219b6d9c279227a17514a hardinfo-alpine.patch" diff --git a/unmaintained/hardinfo/fixsensors.patch b/unmaintained/hardinfo/fixsensors.patch new file mode 100644 index 0000000000..812c294589 --- /dev/null +++ b/unmaintained/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/unmaintained/hardinfo/hardinfo-alpine.patch b/unmaintained/hardinfo/hardinfo-alpine.patch new file mode 100644 index 0000000000..47e3cb73a8 --- /dev/null +++ b/unmaintained/hardinfo/hardinfo-alpine.patch @@ -0,0 +1,10 @@ +--- ./computer.h.orig ++++ ./computer.h +@@ -23,6 +23,7 @@ + static struct { + gchar *file, *codename; + } distro_db[] = { ++ { DB_PREFIX "alpine-release", "al" }, + { DB_PREFIX "debian_version", "deb" }, + { DB_PREFIX "slackware-version", "slk" }, + { DB_PREFIX "mandrake-release", "mdk" }, diff --git a/unmaintained/hardinfo/uclibc.patch b/unmaintained/hardinfo/uclibc.patch new file mode 100644 index 0000000000..c24e9ea1a1 --- /dev/null +++ b/unmaintained/hardinfo/uclibc.patch @@ -0,0 +1,22 @@ +diff --git a/arch/linux/common/os.h b/arch/linux/common/os.h +index f3c2c2d..78bc78b 100644 +--- a/arch/linux/common/os.h ++++ b/arch/linux/common/os.h +@@ -49,6 +49,9 @@ err: + static gchar * + get_libc_version(void) + { ++#if defined(__UCLIBC__) ++ return g_strdup("uClibc"); ++#else + FILE *libc; + gchar buf[256], *tmp, *p; + +@@ -70,6 +73,7 @@ get_libc_version(void) + strstr(buf, " stable ") ? "" : "un"); + err: + return g_strdup("Unknown"); ++#endif + } + + static gchar * |