svn commit: r340554 - in head/sysutils/memdump: . files
Alexey Dokuchaev
danfe at FreeBSD.org
Tue Jan 21 06:21:15 UTC 2014
Author: danfe
Date: Tue Jan 21 06:21:14 2014
New Revision: 340554
URL: http://svnweb.freebsd.org/changeset/ports/340554
QAT: https://qat.redports.org/buildarchive/r340554/
Log:
- Add custom LICENSE (IBM Public License 1.0)
- Respect CFLAGS (CC was already respected)
- Stagify and simplify FreeBSD handling in source code
- Improve COMMENT and port description while here
Modified:
head/sysutils/memdump/Makefile
head/sysutils/memdump/files/patch-makedefs
head/sysutils/memdump/files/patch-memdump.c
head/sysutils/memdump/pkg-descr
Modified: head/sysutils/memdump/Makefile
==============================================================================
--- head/sysutils/memdump/Makefile Tue Jan 21 06:14:58 2014 (r340553)
+++ head/sysutils/memdump/Makefile Tue Jan 21 06:21:14 2014 (r340554)
@@ -7,28 +7,23 @@ CATEGORIES= sysutils
MASTER_SITES= http://www.porcupine.org/forensics/
MAINTAINER= onatan at gmail.com
-COMMENT= Forensic utility for memory-dumping
+COMMENT= Forensic utility for memory dumping
+
+LICENSE= IBM
+LICENSE_NAME= IBM Public License 1.0
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
ALL_TARGET= what
+MAKE_ARGS= OPT="${CFLAGS}" DEBUG=''
-PLIST_FILES= bin/memdump
-PORTDOCS= README LICENSE
-MAN1= memdump.1
+PORTDOCS= README
+PLIST_FILES= bin/memdump man/man1/memdump.1.gz
-NO_STAGE= yes
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/memdump ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/memdump.1 ${MANPREFIX}/man/man1
-. if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/LICENSE ${DOCSDIR}
-. endif
-
-.include <bsd.port.pre.mk>
-
-.if ${OSVERSION} >= 900000
-BROKEN= unsupported FreeBSD version
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/memdump ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/memdump.1 ${STAGEDIR}${MANPREFIX}/man/man1
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/sysutils/memdump/files/patch-makedefs
==============================================================================
--- head/sysutils/memdump/files/patch-makedefs Tue Jan 21 06:14:58 2014 (r340553)
+++ head/sysutils/memdump/files/patch-makedefs Tue Jan 21 06:21:14 2014 (r340554)
@@ -1,11 +1,21 @@
--- ./makedefs.orig 2005-08-30 23:03:40.000000000 +0000
+++ ./makedefs 2007-11-30 18:54:11.000000000 +0000
-@@ -14,6 +14,8 @@
+@@ -2,17 +2,7 @@ SYSTEM=`(uname -s) 2>/dev/null`
+ RELEASE=`(uname -r) 2>/dev/null`
+
+ case "$SYSTEM.$RELEASE" in
+- FreeBSD.2*) DEFS="-DFREEBSD2"
+- ;;
+- FreeBSD.3*) DEFS="-DFREEBSD3"
+- ;;
+- FreeBSD.4*) DEFS="-DFREEBSD4"
+- ;;
+- FreeBSD.5*) DEFS="-DFREEBSD5"
+- ;;
+- FreeBSD.6*) DEFS="-DFREEBSD6"
+- ;;
+- FreeBSD.7*) DEFS="-DFREEBSD7"
++ FreeBSD.*) DEFS="-DFREEBSD"
;;
- FreeBSD.7*) DEFS="-DFREEBSD7"
- ;;
-+ FreeBSD.8*) DEFS="-DFREEBSD8"
-+ ;;
OpenBSD.2*) DEFS="-DOPENBSD2"
;;
- OpenBSD.3*) DEFS="-DOPENBSD3"
Modified: head/sysutils/memdump/files/patch-memdump.c
==============================================================================
--- head/sysutils/memdump/files/patch-memdump.c Tue Jan 21 06:14:58 2014 (r340553)
+++ head/sysutils/memdump/files/patch-memdump.c Tue Jan 21 06:21:14 2014 (r340554)
@@ -1,10 +1,12 @@
--- ./memdump.c.orig 2005-08-30 23:04:18.000000000 +0000
+++ ./memdump.c 2007-11-30 18:54:11.000000000 +0000
-@@ -109,6 +109,7 @@
+@@ -107,8 +107,7 @@
+ #define SUPPORTED
+ #endif
- #if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
- || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
-+ || defined(FREEBSD8) \
+-#if defined(FREEBSD2) || defined(FREEBSD3) || defined(FREEBSD4) \
+- || defined(FREEBSD5) || defined(FREEBSD6) || defined(FREEBSD7) \
++#if defined(FREEBSD) \
|| defined(OPENBSD2) || defined(OPENBSD3) \
|| defined(BSDI2) || defined(BSDI3) || defined(BSDI4)
#include <sys/param.h>
Modified: head/sysutils/memdump/pkg-descr
==============================================================================
--- head/sysutils/memdump/pkg-descr Tue Jan 21 06:14:58 2014 (r340553)
+++ head/sysutils/memdump/pkg-descr Tue Jan 21 06:21:14 2014 (r340554)
@@ -1,5 +1,10 @@
-This program dumps system memory to the standard output stream,
-skipping over holes in memory maps.
-By default, the program dumps the contents of physical memory.
+This program dumps system memory to the standard output stream, skipping
+over holes in memory maps. By default, the program dumps the contents of
+physical memory.
+
+Note: consider using Brian Carrier's Sleuthkit, available as `sysutils/
+sleuthkit' port. It is the official successor, based on parts from TCT.
+Development of the Coroner's Toolkit was stopped years ago. It is only
+updated for bugfixes, which are very rare.
WWW: http://www.porcupine.org/forensics/tct.html
More information about the svn-ports-head
mailing list