freebsd-ports/sysutils/mapdir/Makefile
Tobias Kortkamp d6954f6ecb 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>
2019-02-11 08:09:09 +00:00

38 lines
848 B
Makefile

# $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>