svn commit: r492672 - in head/sysutils: . mapdir

Tobias Kortkamp tobik at FreeBSD.org
Mon Feb 11 08:09:11 UTC 2019


Author: tobik
Date: Mon Feb 11 08:09:09 2019
New Revision: 492672
URL: https://svnweb.freebsd.org/changeset/ports/492672

Log:
  New port: sysutils/mapdir
  
  mapdir is a shell script utility, that can be used to map the
  structure of directory trees.  It is mainly used to verify the
  consistency between different directory hierachies, which contain
  the same files, as the report files generated by mapdir can
  subsequently be passed to the diff utility.
  
  WWW: https://www.olivermahmoudi.com/programming/mapping-dirs
  
  PR:		233112
  Submitted by:	Oliver Mahmoudi <fbsd at olivermahmoudi.com>

Added:
  head/sysutils/mapdir/
  head/sysutils/mapdir/Makefile   (contents, props changed)
  head/sysutils/mapdir/distinfo   (contents, props changed)
  head/sysutils/mapdir/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Mon Feb 11 07:39:41 2019	(r492671)
+++ head/sysutils/Makefile	Mon Feb 11 08:09:09 2019	(r492672)
@@ -644,6 +644,7 @@
     SUBDIR += magicrescue
     SUBDIR += manck
     SUBDIR += mapchan
+    SUBDIR += mapdir
     SUBDIR += massadmin
     SUBDIR += mate-control-center
     SUBDIR += mate-polkit

Added: head/sysutils/mapdir/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mapdir/Makefile	Mon Feb 11 08:09:09 2019	(r492672)
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME=	mapdir
+PORTVERSION=	1.0
+CATEGORIES=	sysutils
+MASTER_SITES=	https://www.olivermahmoudi.com/files/
+
+MAINTAINER=	fbsd at olivermahmoudi.com
+COMMENT=	Tool to map directory trees
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${LOCALBASE}/bin/bash:shells/bash
+
+NO_ARCH=	yes
+NO_BUILD=	yes
+
+PLIST_FILES=	bin/mapdir \
+		man/man1/mapdir.1.gz
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|/bin/sh|${LOCALBASE}/bin/bash|' \
+		-e 's|md5sum|md5|g' \
+		-e 's|sha256sum|sha256|g' \
+		-e 's|print $$1|print $$4|g' \
+		${WRKSRC}/${PORTNAME}
+	@${REINPLACE_CMD} -e 's|md5sum|md5|g' \
+		-e 's|sha256sum|sha256|g' \
+		${WRKSRC}/${PORTNAME}.1
+
+do-install:
+	${INSTALL_SCRIPT} ${WRKSRC}/mapdir ${STAGEDIR}${PREFIX}/bin
+	${INSTALL_MAN} ${WRKSRC}/mapdir.1 ${STAGEDIR}${PREFIX}/man/man1
+
+.include <bsd.port.mk>

Added: head/sysutils/mapdir/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mapdir/distinfo	Mon Feb 11 08:09:09 2019	(r492672)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1521914328
+SHA256 (mapdir-1.0.tar.gz) = 44380a69af60eec22b95dcbafcf01d1eb676d222020ce4bb3b4e5f3e0e367ad5
+SIZE (mapdir-1.0.tar.gz) = 4534

Added: head/sysutils/mapdir/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/mapdir/pkg-descr	Mon Feb 11 08:09:09 2019	(r492672)
@@ -0,0 +1,7 @@
+mapdir is a shell script utility, that can be used to map the
+structure of directory trees.  It is mainly used to verify the
+consistency between different directory hierachies, which contain
+the same files, as the report files generated by mapdir can
+subsequently be passed to the diff utility.
+
+WWW: https://www.olivermahmoudi.com/programming/mapping-dirs


More information about the svn-ports-all mailing list