diff --git a/sysutils/memfetch/Makefile b/sysutils/memfetch/Makefile index c15b5c7f3e14..251ef8ac44b3 100644 --- a/sysutils/memfetch/Makefile +++ b/sysutils/memfetch/Makefile @@ -10,10 +10,6 @@ DISTNAME= ${PORTNAME} MAINTAINER= onatan@gmail.com COMMENT= Utility to dump memory of a running process -BROKEN= unfetchable -DEPRECATED= Broken for more than 6 months -EXPIRATION_DATE= 2020-05-05 - LICENSE= GPLv2 USES= perl5 shebangfix tar:tgz diff --git a/sysutils/memfetch/distinfo b/sysutils/memfetch/distinfo index 8fd885d62b7d..2da2840a1a34 100644 --- a/sysutils/memfetch/distinfo +++ b/sysutils/memfetch/distinfo @@ -1,2 +1,3 @@ -SHA256 (memfetch.tgz) = 923fe5dc11e4bcd611853c42d637da11941ea83c7f53d5c16f741be116573140 -SIZE (memfetch.tgz) = 12435 +TIMESTAMP = 1588564241 +SHA256 (memfetch.tgz) = bf5fd71fa645c19b2ad6cd9b578837dfb8cffcd2d2d6691b2cc43fd87c510e09 +SIZE (memfetch.tgz) = 12438 diff --git a/sysutils/memfetch/files/patch-memfetch.c b/sysutils/memfetch/files/patch-memfetch.c index a90349ebdcbe..022aad444b05 100644 --- a/sysutils/memfetch/files/patch-memfetch.c +++ b/sysutils/memfetch/files/patch-memfetch.c @@ -78,8 +78,8 @@ st,len); if (avoid_mmap) writeptr=MAP_FAILED; else { -- for (i=st;i<=en;i+=PAGE_SIZE) ptrace(PTRACE_PEEKDATA,tracepid,i,0); -+ for (i=st;i<=en;i+=PAGE_SIZE) ptrace(PT_READ_D,tracepid,(caddr_t)i,0); +- for (i=st;i