svn commit: r424854 - head/security/rhash
Alexey Dokuchaev
danfe at FreeBSD.org
Fri Oct 28 14:32:55 UTC 2016
Author: danfe
Date: Fri Oct 28 14:32:54 2016
New Revision: 424854
URL: https://svnweb.freebsd.org/changeset/ports/424854
Log:
- Fix byte order detection to allow the build on ARM (armv6)
- Enable tests, add LICENSE_FILE, optionize DOCS while here
PR: 213847
Submitted by: amdmi3
Modified:
head/security/rhash/Makefile
Modified: head/security/rhash/Makefile
==============================================================================
--- head/security/rhash/Makefile Fri Oct 28 14:22:36 2016 (r424853)
+++ head/security/rhash/Makefile Fri Oct 28 14:32:54 2016 (r424854)
@@ -11,6 +11,7 @@ MAINTAINER= danfe at FreeBSD.org
COMMENT= Utility and library for computing and checking of file hashes
LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/COPYING
USE_LDCONFIG= yes
@@ -18,11 +19,22 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVER
PORTDOCS= ChangeLog README
+OPTIONS_DEFINE= DOCS
+
post-patch:
@${REINPLACE_CMD} -e 's,/etc/,${PREFIX}&,' ${WRKSRC}/parse_cmdline.c
+ @${REINPLACE_CMD} -e '/BYTE_ORDER/s,__,_,g' \
+ ${WRKSRC}/librhash/byte_order.h
post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rhash \
+ ${STAGEDIR}${PREFIX}/lib/librhash.so
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+do-test:
+ cd ${WRKSRC}/tests && ${SH} test_rhash.sh --full
+
.include <bsd.port.mk>
More information about the svn-ports-all
mailing list