summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-06 21:00:47 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-10-06 21:00:47 -0500
commite31eb73738c0bce32518840b0dc517548e70f279 (patch)
treebe0a6221f0edfc0ef2adcce4eee072894ab15581 /user
parent50b3b2885183bac697824633cfc17b6b6e3d7690 (diff)
downloadpackages-e31eb73738c0bce32518840b0dc517548e70f279.tar.gz
packages-e31eb73738c0bce32518840b0dc517548e70f279.tar.bz2
packages-e31eb73738c0bce32518840b0dc517548e70f279.tar.xz
packages-e31eb73738c0bce32518840b0dc517548e70f279.zip
user/ksysguard: new package
Diffstat (limited to 'user')
-rw-r--r--user/ksysguard/APKBUILD53
-rw-r--r--user/ksysguard/ksysguard-5.5.5-netstat-use-a-real-type.patch16
-rw-r--r--user/ksysguard/ksysguard-5.6.5-processlist-gnu_source.patch12
-rw-r--r--user/ksysguard/ksysguard-5.6.5-rindex-header.patch10
4 files changed, 91 insertions, 0 deletions
diff --git a/user/ksysguard/APKBUILD b/user/ksysguard/APKBUILD
new file mode 100644
index 000000000..70fa61852
--- /dev/null
+++ b/user/ksysguard/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=ksysguard
+pkgver=5.8.7
+pkgrel=0
+pkgdesc="KDE system monitor utility"
+url="https://www.kde.org/"
+arch="all"
+license="LGPL-2.1"
+depends=""
+makedepends="qt5-qtbase-dev kconfig-dev kcoreaddons-dev kdbusaddons-dev kio-dev
+ ki18n-dev kiconthemes-dev kinit-dev kitemviews-dev knewstuff-dev
+ knotifications-dev kwindowsystem-dev libksysguard-dev
+ cmake extra-cmake-modules kdoctools-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="https://download.kde.org/Attic/plasma/$pkgver/ksysguard-$pkgver.tar.xz
+ ksysguard-5.5.5-netstat-use-a-real-type.patch
+ ksysguard-5.6.5-processlist-gnu_source.patch
+ ksysguard-5.6.5-rindex-header.patch
+ "
+builddir="$srcdir/ksysguard-$pkgver"
+
+build() {
+ cd "$builddir"
+ if [ "$CBUILD" != "$CHOST" ]; then
+ CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
+ fi
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \
+ -DCMAKE_C_FLAGS="$CFLAGS" \
+ ${CMAKE_CROSSOPTS}
+ make
+}
+
+check() {
+ cd "$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="320e02cf94768f9d63e12dfb46ab0728bf64e60636242b9a6f57517b3ca329bfa2d99f4999e2b071a6cd2849d14e807d9a2070cd9d0f51dbdf32fccfec423bb5 ksysguard-5.8.7.tar.xz
+078c9d3e13ee0960a8cc68e3ee6ef4f9fc78640fae71d66dd5579f9d031895aec7cf1c2dbc4b03f84edfb9456163dcf6124c6da936f90eef3e664c4267660ab9 ksysguard-5.5.5-netstat-use-a-real-type.patch
+818d2d603d7113b163cabbf27f0082bd8b482a8e66a1b8f569f353c84f3d031c742708b2f376f962f1ed360594fb6c6506195d9071d070b5c0ac4816d5e0cad4 ksysguard-5.6.5-processlist-gnu_source.patch
+13a26451c459cff1d3b00af27c953d10c55e7e8f43ef7a6f0f54dd05dcb612546545c0170089e9499bb041f004cdacf19cb112d247a8ccf8fd4e77fea0d1c8bc ksysguard-5.6.5-rindex-header.patch"
diff --git a/user/ksysguard/ksysguard-5.5.5-netstat-use-a-real-type.patch b/user/ksysguard/ksysguard-5.5.5-netstat-use-a-real-type.patch
new file mode 100644
index 000000000..d3543f3ce
--- /dev/null
+++ b/user/ksysguard/ksysguard-5.5.5-netstat-use-a-real-type.patch
@@ -0,0 +1,16 @@
+--- ksysguard-5.5.5/ksysguardd/Linux/netstat.old 2016-03-01 14:35:05.000000000 +0100
++++ ksysguard-5.5.5/ksysguardd/Linux/netstat.c 2016-07-22 03:46:19.016064987 +0100
+@@ -264,10 +264,10 @@
+ {
+ FILE *netstat;
+ char buffer[1024];
+- uint local_addr, local_port;
+- uint remote_addr, remote_port;
++ unsigned int local_addr, local_port;
++ unsigned int remote_addr, remote_port;
+ int uid;
+- uint state;
++ unsigned int state;
+ SocketInfo *socket_info;
+
+ if (strstr(cmd, "tcp")) {
diff --git a/user/ksysguard/ksysguard-5.6.5-processlist-gnu_source.patch b/user/ksysguard/ksysguard-5.6.5-processlist-gnu_source.patch
new file mode 100644
index 000000000..e68fc7b2b
--- /dev/null
+++ b/user/ksysguard/ksysguard-5.6.5-processlist-gnu_source.patch
@@ -0,0 +1,12 @@
+--- ksysguard-5.6.5/ksysguardd/Linux/ProcessList.c.old 2016-06-14 11:09:02.000000000 +0100
++++ ksysguard-5.6.5/ksysguardd/Linux/ProcessList.c 2016-08-07 03:14:25.158991313 +0100
+@@ -28,7 +28,9 @@
+ #include <sys/time.h>
+ #include <sys/resource.h>
+ #include <time.h>
++#define _GNU_SOURCE
+ #include <unistd.h>
++#undef _GNU_SOURCE
+ #include <sys/ptrace.h>
+ #include <asm/unistd.h>
+
diff --git a/user/ksysguard/ksysguard-5.6.5-rindex-header.patch b/user/ksysguard/ksysguard-5.6.5-rindex-header.patch
new file mode 100644
index 000000000..423da608c
--- /dev/null
+++ b/user/ksysguard/ksysguard-5.6.5-rindex-header.patch
@@ -0,0 +1,10 @@
+--- ksysguard-5.6.5/ksysguardd/Linux/diskstat.c.old 2016-06-14 11:09:02.000000000 +0100
++++ ksysguard-5.6.5/ksysguardd/Linux/diskstat.c 2016-08-07 02:51:53.101362572 +0100
+@@ -24,6 +24,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <strings.h>
+ #include <sys/statvfs.h>
+ #include <time.h>
+ #include <unistd.h>