OK landry@
Comment: interactive process viewer Description: htop is an interactive process viewer for Unix systems. Maintainer: Ian Sutton <ian@ce.gl> WWW: https://hisham.hm/htop/index.php
This commit is contained in:
parent
4adcb1bc45
commit
2f737d0d45
32
sysutils/htop/Makefile
Normal file
32
sysutils/htop/Makefile
Normal file
@ -0,0 +1,32 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2016/11/16 19:48:19 juanfra Exp $
|
||||
|
||||
COMMENT = interactive process viewer
|
||||
DISTNAME = htop-2.0.2
|
||||
CATEGORIES = sysutils
|
||||
HOMEPAGE = https://hisham.hm/htop/index.php
|
||||
MAINTAINER = Ian Sutton <ian@ce.gl>
|
||||
|
||||
# GPLv2+
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
WANTLIB = c kvm m ncursesw
|
||||
MODULES = lang/python
|
||||
MASTER_SITES = https://hisham.hm/htop/releases/2.0.2/
|
||||
RUN_DEPENDS = devel/desktop-file-utils
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
CONFIGURE_ARGS += --disable-unicode \
|
||||
--disable-taskstats
|
||||
|
||||
ALL_TARGET = debug
|
||||
|
||||
MODPY_RUNDEP = No
|
||||
MODPY_ADJ_FILES = scripts/MakeHeader.py
|
||||
|
||||
# htop has some bugs which takes hours or days to reach.
|
||||
# Keep the symbols to give a chance to the user to get an useful coredump.
|
||||
INSTALL_STRIP=
|
||||
|
||||
.include <bsd.port.mk>
|
2
sysutils/htop/distinfo
Normal file
2
sysutils/htop/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (htop-2.0.2.tar.gz) = F5vp3MuAzuDF4aH1jI9yznsjKO3jD7cdzfM2U5vi9Ic=
|
||||
SIZE (htop-2.0.2.tar.gz) = 476364
|
18
sysutils/htop/patches/patch-FunctionBar_c
Normal file
18
sysutils/htop/patches/patch-FunctionBar_c
Normal file
@ -0,0 +1,18 @@
|
||||
$OpenBSD: patch-FunctionBar_c,v 1.1.1.1 2016/11/16 19:48:19 juanfra Exp $
|
||||
--- FunctionBar.c.orig Tue Nov 15 16:48:23 2016
|
||||
+++ FunctionBar.c Tue Nov 15 16:48:45 2016
|
||||
@@ -72,14 +72,8 @@ FunctionBar* FunctionBar_new(const char** functions, c
|
||||
}
|
||||
|
||||
void FunctionBar_delete(FunctionBar* this) {
|
||||
- for (int i = 0; i < 15 && this->functions[i]; i++) {
|
||||
- free(this->functions[i]);
|
||||
- }
|
||||
free(this->functions);
|
||||
if (!this->staticData) {
|
||||
- for (int i = 0; i < this->size; i++) {
|
||||
- free(this->keys[i]);
|
||||
- }
|
||||
free(this->keys);
|
||||
free(this->events);
|
||||
}
|
13
sysutils/htop/patches/patch-openbsd_OpenBSDProcess_c
Normal file
13
sysutils/htop/patches/patch-openbsd_OpenBSDProcess_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-openbsd_OpenBSDProcess_c,v 1.1.1.1 2016/11/16 19:48:19 juanfra Exp $
|
||||
--- openbsd/OpenBSDProcess.c.orig Tue Nov 15 16:49:01 2016
|
||||
+++ openbsd/OpenBSDProcess.c Tue Nov 15 16:49:12 2016
|
||||
@@ -193,9 +193,7 @@ OpenBSDProcess* OpenBSDProcess_new(Settings* settings)
|
||||
}
|
||||
|
||||
void Process_delete(Object* cast) {
|
||||
- OpenBSDProcess* this = (OpenBSDProcess*) cast;
|
||||
Process_done((Process*)cast);
|
||||
- free(this);
|
||||
}
|
||||
|
||||
void OpenBSDProcess_writeField(Process* this, RichString* str, ProcessField field) {
|
1
sysutils/htop/pkg/DESCR
Normal file
1
sysutils/htop/pkg/DESCR
Normal file
@ -0,0 +1 @@
|
||||
htop is an interactive process viewer for Unix systems.
|
8
sysutils/htop/pkg/PLIST
Normal file
8
sysutils/htop/pkg/PLIST
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/11/16 19:48:19 juanfra Exp $
|
||||
@bin bin/htop
|
||||
@man man/man1/htop.1
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
||||
share/applications/htop.desktop
|
||||
share/pixmaps/
|
||||
share/pixmaps/htop.png
|
Loading…
x
Reference in New Issue
Block a user