Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2016 14:32:54 +0000 (UTC)
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424854 - head/security/rhash
Message-ID:  <201610281432.u9SEWsdT076620@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610281432.u9SEWsdT076620>