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@olivermahmoudi.com>
This commit is contained in:
@@ -644,6 +644,7 @@
|
||||
SUBDIR += magicrescue
|
||||
SUBDIR += manck
|
||||
SUBDIR += mapchan
|
||||
SUBDIR += mapdir
|
||||
SUBDIR += massadmin
|
||||
SUBDIR += mate-control-center
|
||||
SUBDIR += mate-polkit
|
||||
|
||||
38
sysutils/mapdir/Makefile
Normal file
38
sysutils/mapdir/Makefile
Normal file
@@ -0,0 +1,38 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= mapdir
|
||||
PORTVERSION= 1.0
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= https://www.olivermahmoudi.com/files/
|
||||
|
||||
MAINTAINER= fbsd@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>
|
||||
3
sysutils/mapdir/distinfo
Normal file
3
sysutils/mapdir/distinfo
Normal file
@@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1521914328
|
||||
SHA256 (mapdir-1.0.tar.gz) = 44380a69af60eec22b95dcbafcf01d1eb676d222020ce4bb3b4e5f3e0e367ad5
|
||||
SIZE (mapdir-1.0.tar.gz) = 4534
|
||||
7
sysutils/mapdir/pkg-descr
Normal file
7
sysutils/mapdir/pkg-descr
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user