Przeglądaj źródła

exmap: drop package

Waldemar Brodkorb 3 miesięcy temu
rodzic
commit
b65b8e88eb

+ 0 - 44
package/exmap/Makefile

@@ -1,44 +0,0 @@
-# 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:=		exmap
-PKG_VERSION:=		0.4.1
-PKG_RELEASE:=		4
-PKG_HASH:=		53082354ae893fd385051c96214640cbeba527131ccf9f5320626252a4aef8d5
-PKG_DESCR:=		memory analysing tools
-PKG_SECTION:=		app/debug
-PKG_DEPENDS:=		libreadline glib
-PKG_BUILDDEP:=		glib readline
-PKG_SITES:=		http://labs.o-hand.com/sources/exmap-console/
-
-PKG_ARCH_DEPENDS:=	!m68k
-PKG_SYSTEM_DEPENDS:=	!raspberry-pi3 !raspberry-pi3p
-PKG_CFLINE_EXMAP:=	depends on !ADK_APPLIANCE_TOOLCHAIN
-
-DISTFILES:=		${PKG_NAME}-console-${PKG_VERSION}.tgz
-WRKDIST=		${WRKDIR}/${PKG_NAME}-console-${PKG_VERSION}
-
-include ${ADK_TOPDIR}/mk/package.mk
-include $(ADK_TOPDIR)/mk/$(ADK_TARGET_OS)-ver.mk
-
-$(eval $(call PKG_template,EXMAP,exmap,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-
-AUTOTOOL_STYLE:=	autoreconf
-CONFIGURE_ARGS+=	--disable-doc
-CONFIGURE_ENV+=		LIBS="-lncurses"
-
-pre-build:
-	LDFLAGS="" $(MAKE) -C ${WRKBUILD}/kernel $(KERNEL_MODULE_FLAGS)
-
-exmap-install:
-	${INSTALL_DIR} ${IDIR_EXMAP}/etc/modules.d/
-	echo "exmap" > ${IDIR_EXMAP}/etc/modules.d/90-exmap
-	${INSTALL_DIR} ${IDIR_EXMAP}/lib/modules/${KERNEL_VERSION}/
-	${INSTALL_DATA} ${WRKBUILD}/kernel/exmap.ko \
-		${IDIR_EXMAP}/lib/modules/${KERNEL_VERSION}
-	${INSTALL_DIR} ${IDIR_EXMAP}/usr/sbin
-	${INSTALL_BIN} ${WRKBUILD}/src/exmap* ${IDIR_EXMAP}/usr/sbin
-
-include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 0 - 8
package/exmap/patches/patch-Makefile_am

@@ -1,8 +0,0 @@
---- exmap-console-0.4.1.orig/Makefile.am	2006-11-06 18:05:01.000000000 +0100
-+++ exmap-console-0.4.1/Makefile.am	2013-10-24 19:00:50.000000000 +0200
-@@ -1,4 +1,4 @@
--SUBDIRS=kernel src doc
-+SUBDIRS=src
- 
- DISTCLEANFILES = *~ Makefile.in install-sh missing depcomp *.m4 config.log config.status Makefile
- 

+ 0 - 13
package/exmap/patches/patch-configure_ac

@@ -1,13 +0,0 @@
---- exmap-console-0.4.1.orig/configure.ac	2007-02-26 12:00:48.000000000 +0100
-+++ exmap-console-0.4.1/configure.ac	2013-10-24 19:00:50.000000000 +0200
-@@ -46,10 +46,6 @@ AC_ARG_WITH(help2man, AS_HELP_STRING([--
- 
- AM_CONDITIONAL(DODOCS, test "x$DO_DOCS" != "xno")
- 
--AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug], 
--                                   [Enable debuggin information]),
--              [CFLAGS="-g -O0"], [CFLAGS="-g -O2"])
--
- CFLAGS="$CFLAGS -DEXMAP_VERSION=\\\"$EXMAP_VERSION\\\" -DEXMAP_PROTOCOL_VERSION=\\\"$EXMAP_PROTOCOL_VERSION\\\""
- 
- AC_SUBST(CFLAGS)

+ 0 - 146
package/exmap/patches/patch-kernel_exmap_c

@@ -1,146 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- exmap-console-0.4.1.orig/kernel/exmap.c	2006-10-24 20:45:11.000000000 +0200
-+++ exmap-console-0.4.1/kernel/exmap.c	2013-11-02 18:56:21.000000000 +0100
-@@ -340,24 +340,22 @@ static int show_vma_start(struct exmap_v
- }
- 
- 
--static int exmap_show_next(char *buffer, int length)
-+static ssize_t exmap_show_next(char *buffer, size_t length)
- {
--	int offset = 0;
-+	ssize_t offset = 0;
- 	struct exmap_vma_data *vma_data;
- 	pte_t pte;
- 	int line_len;
- 
- 	while (local_data.vma_cursor < local_data.num_vmas) {
- 		vma_data = local_data.vma_data + local_data.vma_cursor;
--//		printk (KERN_INFO
--//			"exmap: examining vma %08lx [%d/%d] %d\n",
--//			vma_data->vm_start,
--//			local_data.vma_cursor,
--//			local_data.num_vmas,
--//			vma_data->start_shown);
-+		printk (KERN_INFO
-+			"exmap: examining vma %08lx [%d/%d] %d\n",
-+			vma_data->vm_start,
-+			local_data.vma_cursor,
-+			local_data.num_vmas,
-+			vma_data->start_shown);
- 		if (!vma_data->start_shown) {
--//			printk (KERN_INFO
--//				"exmap: svs\n");
- 			line_len = show_vma_start(vma_data,
- 						  buffer + offset,
- 						  length - offset);
-@@ -392,7 +390,11 @@ int setup_from_pid(pid_t pid)
- 	struct task_struct *tsk;
- 	int errcode = -EINVAL;
- 
-+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
-+	tsk = find_task_by_vpid(pid);
-+#else
- 	tsk = find_task_by_pid(pid);
-+#endif
- 	if (tsk == NULL) {
- 		printk (KERN_ALERT
- 			"/proc/%s: can't find task for pid %d\n",
-@@ -445,10 +447,10 @@ Exit:
-  * where deadbeef is the hex addr of the vma to examine
-  * and pid is the (decimal) pid of the process to examine
-  */
--static int procfile_write (struct file *file,
-+static ssize_t procfile_write (struct file *file,
- 			   const char __user *buffer,
--			   unsigned long count,
--			   void *data)
-+			   size_t count,
-+			   loff_t *off)
- {
- 	pid_t pid;
- 	int errcode = -EINVAL;
-@@ -475,14 +477,11 @@ static int procfile_write (struct file *
-  * Only support sequential reading of file from start to finish
-  * (following a write() to set the pid to examine
-  */
--static int procfile_read (char *buffer,
--			  char **buffer_location,
--			  off_t offset,
--			  int buffer_length,
--			  int *eof,
--			  void *data)
-+static ssize_t procfile_read (struct file *filp,
-+			  char __user *buf,
-+			  size_t len,
-+			  loff_t *ppos)
- {
--	int ret;
- 
- 	if (local_data.vma_data == NULL) {
- 		printk (KERN_ALERT "/proc/%s: vma data not set\n",
-@@ -490,47 +489,40 @@ static int procfile_read (char *buffer,
- 		return -EINVAL;
- 	}
- 	
--	ret = exmap_show_next(buffer, buffer_length);
--	if (ret > 0) {
--		*buffer_location = buffer;
--	}
--	return ret;
-+	return exmap_show_next(buf, len);
- }
- 
--int init_module ()
-+static const struct file_operations proc_file_fops = {
-+ .owner = THIS_MODULE,
-+ .write  = procfile_write,
-+ .read  = procfile_read,
-+};
-+
-+
-+static int __init exmap_init(void)
- {
- 	struct proc_dir_entry *exmap_proc_file;
- 	printk (KERN_INFO "/proc/%s: insert\n", PROCFS_NAME);
- 	
--	exmap_proc_file = create_proc_entry (PROCFS_NAME,
-+	exmap_proc_file = proc_create (PROCFS_NAME,
- 							0644,
--							NULL);
-+							NULL,
-+					&proc_file_fops);
- 
- 	if (exmap_proc_file == NULL) {
--		remove_proc_entry (PROCFS_NAME, &proc_root);
- 		printk (KERN_ALERT "/proc/%s: could not initialize\n",
- 			PROCFS_NAME);
- 		return -ENOMEM;
- 	}
- 	
--	exmap_proc_file->read_proc = procfile_read;
--	exmap_proc_file->write_proc = procfile_write;
--	exmap_proc_file->owner = THIS_MODULE;
--	
--	/*     exmap_proc_file->mode         = S_IFREG | S_IRUGO; */
--	/* TODO - this is quite probably a security problem */
--	exmap_proc_file->mode = 0666;
--	
--	exmap_proc_file->uid = 0;
--	exmap_proc_file->gid = 0;
--	exmap_proc_file->size = 0;
--
- 	init_local_data();
- 	return 0;
- }
- 
--void cleanup_module ()
-+static void __exit exmap_exit(void)
- {
--	printk (KERN_INFO "/proc/%s: remove\n", PROCFS_NAME);
--	remove_proc_entry (PROCFS_NAME, &proc_root);
-+	remove_proc_entry(PROCFS_NAME, NULL);
- }
-+
-+module_init(exmap_init);
-+module_exit(exmap_exit);

+ 0 - 11
package/exmap/patches/patch-src_exmap_c

@@ -1,11 +0,0 @@
---- exmap-console-0.4.1.orig/src/exmap.c	2007-02-22 17:37:13.000000000 +0100
-+++ exmap-console-0.4.1/src/exmap.c	2013-11-02 18:57:51.000000000 +0100
-@@ -1112,7 +1112,7 @@ load_pid_data (data_t * d,
- 	    }
-           else
- 	    {
--              g_warning ("VMA not found in map_hash [%s]", buf);
-+              //g_warning ("VMA not found in map_hash [%s]", buf);
-               cur_vma = NULL;
- 	    }
- 	}

+ 0 - 20
package/exmap/patches/patch-src_exmapd_c

@@ -1,20 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- exmap-console-0.4.1.orig/src/exmapd.c	2006-12-11 08:50:23.000000000 +0100
-+++ exmap-console-0.4.1/src/exmapd.c	2008-12-14 15:53:02.000000000 +0100
-@@ -257,6 +257,7 @@ main (int argc, char ** argv)
-     }
- 
-   /* make sure that the exmap module is loaded */
-+  /*
-   if (g_spawn_sync (NULL, (char**)&modp_args, NULL, G_SPAWN_SEARCH_PATH,
-                     NULL, NULL, NULL, NULL, &modp_status, &error))
-     {
-@@ -268,7 +269,7 @@ main (int argc, char ** argv)
-     {
-       g_error ("Could not spawn modprobe: %s", error ? error->message : "");
-     }
--  
-+  */ 
-   /* Initialise data for the timeout callback
-    *
-    * 4 == 3 + 1: 3 for the exec name + 2 params we feed exmap

+ 0 - 22
package/exmap/patches/patch-src_exmapserver_c

@@ -1,22 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- exmap-console-0.4.1.orig/src/exmapserver.c	2007-02-26 12:00:48.000000000 +0100
-+++ exmap-console-0.4.1/src/exmapserver.c	2008-12-14 15:52:07.000000000 +0100
-@@ -532,9 +532,9 @@ main (int argc, char ** argv)
- 	}
-     }
- 
-+  /* do not try to modprobe 
-   if (getuid() == 0)
-     {
--      /* if running a root, we can make sure that the exmap module is loaded */
-       if (g_spawn_sync (NULL, (char**)&modp_args, NULL, G_SPAWN_SEARCH_PATH,
-                         NULL, NULL, NULL, NULL, &modp_status, &error))
-         {
-@@ -548,6 +548,7 @@ main (int argc, char ** argv)
-                    error ? error->message : "");
-         }
-     }
-+   */
-   
-   /* handle SIGPIPE */
-   struct sigaction sa;