Browse Source

atop: new package

Waldemar Brodkorb 1 month ago
parent
commit
56f2bf769b

+ 30 - 0
package/atop/Makefile

@@ -0,0 +1,30 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(ADK_TOPDIR)/rules.mk
+
+PKG_NAME:=		atop
+PKG_VERSION:=		2.12.1
+PKG_RELEASE:=		1
+PKG_HASH:=		0f49f3aa5e3449f8c1cf10ac08036e2b67887640fe7980b8bc6ca9fd84d46fdf
+PKG_DESCR:=		performance monitor for linux that is capable of reporting the activity of all processes
+PKG_SECTION:=		sys/utils
+PKG_DEPENDS:=		libncurses glib
+PKG_BUILDDEP:=		ncurses glib
+PKG_URL:=		https://github.com/Atoptool/atop
+PKG_SITES:=		https://github.com/Atoptool/atop/archive/refs/tags/
+
+DISTFILES:=             v$(PKG_VERSION).tar.gz
+
+include $(ADK_TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,ATOP,atop,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
+
+CONFIG_STYLE:=		manual
+
+atop-install:
+	$(INSTALL_DIR) $(IDIR_ATOP)/usr/bin
+	$(INSTALL_BIN) $(WRKINST)/usr/bin/atop \
+		$(IDIR_ATOP)/usr/bin
+
+include $(ADK_TOPDIR)/mk/pkg-bottom.mk

+ 10 - 0
package/atop/patches/patch-atop_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/atop.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/atop.c	2026-07-05 18:32:23.673180289 +0200
+@@ -118,7 +118,6 @@
+ ** can be linked with 'atop'; the one to use can eventually be chosen
+ ** at runtime. 
+ */
+-#define _POSIX_C_SOURCE	
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-atopacctd_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/atopacctd.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/atopacctd.c	2026-07-05 18:35:28.463214341 +0200
+@@ -36,7 +36,6 @@
+ ** it under the terms of the GNU General Public License version 2 as
+ ** published by the Free Software Foundation.
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-atopcat_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/atopcat.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/atopcat.c	2026-07-05 18:35:41.831361522 +0200
+@@ -28,7 +28,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-atophide_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/atophide.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/atophide.c	2026-07-05 18:35:55.067507255 +0200
+@@ -31,7 +31,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-atopsar_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/atopsar.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/atopsar.c	2026-07-05 18:34:40.178682764 +0200
+@@ -28,7 +28,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-cgroups_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/cgroups.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/cgroups.c	2026-07-05 18:33:29.513904915 +0200
+@@ -27,7 +27,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-drawbar_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/drawbar.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/drawbar.c	2026-07-05 18:34:24.802513502 +0200
+@@ -103,7 +103,6 @@
+ // horizontally scaled by the user, atop might switch from one model to
+ // the other.
+ /////////////////////////////////////////////////////////////////////////////
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-gpucom_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/gpucom.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/gpucom.c	2026-07-05 18:35:09.755008371 +0200
+@@ -22,7 +22,6 @@
+ ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ ** See the GNU General Public License for more details.
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-netatopif_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/netatopif.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/netatopif.c	2026-07-05 18:34:55.750854196 +0200
+@@ -22,7 +22,6 @@
+ ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ ** See the GNU General Public License for more details.
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-photoproc_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/photoproc.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/photoproc.c	2026-07-05 18:33:00.761588459 +0200
+@@ -30,7 +30,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-photosyst_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/photosyst.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/photosyst.c	2026-07-05 18:33:14.557740301 +0200
+@@ -29,7 +29,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-rawlog_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/rawlog.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/rawlog.c	2026-07-05 18:33:44.890074163 +0200
+@@ -26,7 +26,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-showgeneric_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/showgeneric.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/showgeneric.c	2026-07-05 18:34:06.926316721 +0200
+@@ -29,7 +29,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE

+ 10 - 0
package/atop/patches/patch-various_c

@@ -0,0 +1,10 @@
+--- atop-2.12.1.orig/various.c	2025-09-23 19:16:03.000000000 +0200
++++ atop-2.12.1/various.c	2026-07-05 18:32:43.541398939 +0200
+@@ -29,7 +29,6 @@
+ ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ ** --------------------------------------------------------------------------
+ */
+-#define _POSIX_C_SOURCE
+ #define _XOPEN_SOURCE
+ #define _GNU_SOURCE
+ #define _DEFAULT_SOURCE