- Improve COMMENT text, add LICENSE

- Convert one patch file to MAKE_ARGS
- Stagify, dismiss NOPORTDOCS check
- Cleanup pkg-descr and pkg-message
This commit is contained in:
Alexey Dokuchaev 2014-01-21 06:21:35 +00:00
parent a5794020d8
commit de1b6c2e18
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340555
4 changed files with 16 additions and 45 deletions

View file

@ -9,24 +9,20 @@ DISTNAME= ${PORTNAME}
EXTRACT_SUFX= .tgz EXTRACT_SUFX= .tgz
MAINTAINER= onatan@gmail.com MAINTAINER= onatan@gmail.com
COMMENT= Utility to dump process memory COMMENT= Utility to dump memory of a running process
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= perl5 USES= perl5
USE_PERL5= run USE_PERL5= run
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
CFLAGS+= ${CPPFLAGS} WRKSRC= ${WRKDIR}/${PORTNAME}
NO_STAGE= yes
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/mffind.pl ${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/mffind.pl ${STAGEDIR}${PREFIX}/bin
.if !defined(NOPORTDOCS) @${MKDIR} ${STAGEDIR}${DOCSDIR}
${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,13 +0,0 @@
--- Makefile.orig Thu Nov 25 15:30:12 2004
+++ Makefile Thu Nov 25 15:31:32 2004
@@ -7,8 +7,8 @@
#
FILE = memfetch
-CFLAGS = -Wall -O9
-CC = gcc
+CFLAGS?= -Wall -O9
+CC ?= gcc
all: $(FILE)

View file

@ -1,16 +1,7 @@
Memfetch is a very simple utility that can be used to dump process memory of Memfetch is a simple utility to dump all memory of a running process, either
any userspace process running on the system without affecting its execution. immediately, or when a fault condition is discovered. It is an attractive
Why bother? Well, quite often it is desirable to see what code and what data alternative to the vastly inferior search capabilities of many debuggers and
actually resides in memory under some pid (/proc entries are not always tracers -- and a convenient way to grab "screen shots" from many types of
accurate). Debuggers like gdb are pretty good for examining small sections text-based interactive utilities, like ssh or screen sessions.
of code or memory, but are pretty much useless for massive comparison,
sophisticated searches and such. It's good to be able to retrieve full
memory image to run it thru grep, strings, your favorite viewer or any other
tool. Quite obviously, I developed this code not because it's extremely
difficult to do it on your own, but because it is a valuable shell utility
for all kinds of deep hacking activities that simply saves you time.
Memfetch is a convenient screenshot grabber for ssh or screen sessions, by
the way ;-)
WWW: http://lcamtuf.coredump.cx/ WWW: http://lcamtuf.coredump.cx/

View file

@ -1,5 +1,2 @@
This port requires procfs(5) filesystem mounted under /proc.
Security Warning: Please note that this can pose a security risk.
This port requires that you mount procfs(5) filesystem in /proc.
Please note that this can pose a security risk.