[Midnightbsd-cvs] mports [23217] trunk/security: add rhash

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Thu Apr 26 09:01:53 EDT 2018


Revision: 23217
          http://svnweb.midnightbsd.org/mports/?rev=23217
Author:   laffer1
Date:     2018-04-26 09:01:52 -0400 (Thu, 26 Apr 2018)
Log Message:
-----------
add rhash

Modified Paths:
--------------
    trunk/security/Makefile

Added Paths:
-----------
    trunk/security/rhash/
    trunk/security/rhash/Makefile
    trunk/security/rhash/distinfo
    trunk/security/rhash/files/
    trunk/security/rhash/files/patch-Makefile
    trunk/security/rhash/files/patch-librhash_Makefile
    trunk/security/rhash/pkg-descr
    trunk/security/rhash/pkg-plist

Modified: trunk/security/Makefile
===================================================================
--- trunk/security/Makefile	2018-04-25 23:48:05 UTC (rev 23216)
+++ trunk/security/Makefile	2018-04-26 13:01:52 UTC (rev 23217)
@@ -124,6 +124,7 @@
 SUBDIR += py-paramiko
 SUBDIR += py-pycrypto
 SUBDIR += py-rsa
+SUBDIR += rhash
 SUBDIR += seahorse
 SUBDIR += security-advisory-client
 SUBDIR += skipfish

Added: trunk/security/rhash/Makefile
===================================================================
--- trunk/security/rhash/Makefile	                        (rev 0)
+++ trunk/security/rhash/Makefile	2018-04-26 13:01:52 UTC (rev 23217)
@@ -0,0 +1,42 @@
+# $MidnightBSD$
+
+PORTNAME=	rhash
+PORTVERSION=	1.3.5
+CATEGORIES=	security
+MASTER_SITES=	SF
+DISTNAME=	${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER=	ports at MidnightBSD.org
+COMMENT=	Utility and library for computing and checking of file hashes
+
+LICENSE=	mit
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+FAKE_OPTS+=	trueprefix
+
+USE_LDCONFIG=	yes
+MAKE_ARGS=	INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
+		INSTALL_SHARED="${INSTALL_PROGRAM}" \
+		MANDIR="${PREFIX}/man"
+ALL_TARGET=	build-shared
+INSTALL_TARGET=	install-shared install-lib-static install-lib-shared
+
+WRKSRC=		${WRKDIR}/RHash-${PORTVERSION}
+
+PORTDOCS=	ChangeLog README
+
+OPTIONS_DEFINE=	DOCS
+
+post-patch:
+	@${REINPLACE_CMD} -e 's,/etc/,${TRUE_PREFIX}&,' ${WRKSRC}/parse_cmdline.c
+	@${REINPLACE_CMD} -e '/BYTE_ORDER/s,__,_,g' \
+		${WRKSRC}/librhash/byte_order.h
+
+post-install:
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+
+do-test:
+	cd ${WRKSRC}/tests && ${SH} test_rhash.sh --full
+
+.include <bsd.port.mk>


Property changes on: trunk/security/rhash/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/rhash/distinfo
===================================================================
--- trunk/security/rhash/distinfo	                        (rev 0)
+++ trunk/security/rhash/distinfo	2018-04-26 13:01:52 UTC (rev 23217)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1502675104
+SHA256 (rhash-1.3.5-src.tar.gz) = 98e0688acae29e68c298ffbcdbb0f838864105f9b2bd8857980664435b1f1f2e
+SIZE (rhash-1.3.5-src.tar.gz) = 316867


Property changes on: trunk/security/rhash/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/rhash/files/patch-Makefile
===================================================================
--- trunk/security/rhash/files/patch-Makefile	                        (rev 0)
+++ trunk/security/rhash/files/patch-Makefile	2018-04-26 13:01:52 UTC (rev 23217)
@@ -0,0 +1,32 @@
+--- Makefile.orig	2016-11-05 23:22:07 UTC
++++ Makefile
+@@ -6,9 +6,9 @@ VERSION = 1.3.4
+ PREFIX  ?= /usr/local
+ CC      ?= gcc
+ # using OPTFLAGS/OPTLDFLAGS for compatibilty with old scripts using this makefile
+-OPTFLAGS = -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
++OPTFLAGS = -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
+ OPTLDFLAGS =
+-CFLAGS = $(OPTFLAGS)
++CFLAGS += $(OPTFLAGS)
+ LDFLAGS = $(OPTLDFLAGS)
+ ADDCFLAGS =
+ ADDLDFLAGS =
+@@ -106,7 +106,7 @@ install-man:
+ 
+ install-conf:
+ 	$(INSTALL) -d $(DESTDIR)/etc
+-	tr -d \\r < dist/rhashrc.sample > rc.tmp && $(INSTALL_DATA) rc.tmp $(DESTDIR)/etc/rhashrc
++	tr -d \\r < dist/rhashrc.sample > rc.tmp && $(INSTALL_DATA) rc.tmp $(DESTDIR)$(PREFIX)/etc/rhashrc.sample
+ 	rm -f rc.tmp
+ 
+ # dependencies should be properly set, otherwise 'make -j<n>' can fail
+@@ -127,7 +127,7 @@ install-lib-static: $(LIBRHASH)
+ 	+make -C librhash install-lib-static
+ 
+ install-lib-shared: $(SHAREDLIB)
+-	+$(MAKE) -C librhash install-lib-shared
++	+$(MAKE) -C librhash install-lib-shared install-so-link
+ 
+ $(SHAREDLIB):
+ 	+make -C librhash lib-shared


Property changes on: trunk/security/rhash/files/patch-Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/rhash/files/patch-librhash_Makefile
===================================================================
--- trunk/security/rhash/files/patch-librhash_Makefile	                        (rev 0)
+++ trunk/security/rhash/files/patch-librhash_Makefile	2018-04-26 13:01:52 UTC (rev 23217)
@@ -0,0 +1,23 @@
+--- librhash/Makefile.orig	2016-11-06 15:49:40 UTC
++++ librhash/Makefile
+@@ -2,9 +2,9 @@
+ CC      ?= gcc
+ AR      ?= ar
+ #NOTE: NDEBUG turns off asserts
+-OPTFLAGS   = -O2 -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
++OPTFLAGS   = -DNDEBUG -fomit-frame-pointer -ffunction-sections -fdata-sections
+ OPTLDFLAGS =
+-CFLAGS     = $(OPTFLAGS)
++CFLAGS     += $(OPTFLAGS)
+ LDFLAGS    = $(OPTLDFLAGS)
+ ADDCFLAGS  =
+ LIBCFLAGS  =
+@@ -187,7 +187,7 @@ test-dll: $(DLLNAME) test_hashes.o
+ 
+ # shared and static libraries
+ $(SONAME): $(SOURCES)
+-	sed -n '1s/.*/{ global:/p; s/^RHASH_API.* \([a-z0-9_]\+\)(.*/  \1;/p; $$s/.*/local: *; };/p' $(SO_HEADERS) > exports.sym
++	sed -nE '1s/.*/{ global:/p; s/^RHASH_API.* ([a-z0-9_]+)\(.*/  \1;/p; $$s/.*/local: *; };/p' $(SO_HEADERS) > exports.sym
+ 	$(CC) -fpic $(ALLCFLAGS) -shared $(SOURCES) -Wl,--version-script,exports.sym,-soname,$(SONAME) $(LIBLDFLAGS) -o $@
+ 	ln -s $(SONAME) $(SOLINK)
+ # use 'nm -Cg --defined-only $@' to view exported symbols


Property changes on: trunk/security/rhash/files/patch-librhash_Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/rhash/pkg-descr
===================================================================
--- trunk/security/rhash/pkg-descr	                        (rev 0)
+++ trunk/security/rhash/pkg-descr	2018-04-26 13:01:52 UTC (rev 23217)
@@ -0,0 +1,15 @@
+RHash is a console utility and library for computing and verifying hash sums
+of files.  It supports CRC32, MD4, MD5, SHA1, SHA256, SHA512, SHA3, Tiger,
+TTH, Torrent BTIH, AICH, ED2K, GOST R 34.11-94, RIPEMD-160, HAS-160, EDON-R
+256/512, Whirlpool, and Snefru-128/256 hash sums.  Its features are:
+
+  * Can calculate Magnet links
+  * Output in a predefined (SFV, BSD-like) or a user-defined format
+  * Ability to process directories recursively
+  * Updating existing hash-files (adding hash sums of files missing in a
+    hash-file)
+  * Portable, written in pure C, small in size, open source (MIT license)
+
+Perl wrapper is available as `security/p5-Crypt-RHash' port.
+
+WWW: http://rhash.anz.ru/


Property changes on: trunk/security/rhash/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/security/rhash/pkg-plist
===================================================================
--- trunk/security/rhash/pkg-plist	                        (rev 0)
+++ trunk/security/rhash/pkg-plist	2018-04-26 13:01:52 UTC (rev 23217)
@@ -0,0 +1,24 @@
+bin/ed2k-link
+bin/gost-hash
+bin/has160-hash
+bin/magnet-link
+bin/rhash
+bin/sfv-hash
+bin/tiger-hash
+bin/tth-hash
+bin/whirlpool-hash
+ at sample etc/rhashrc.sample
+include/rhash.h
+include/rhash_torrent.h
+lib/librhash.a
+lib/librhash.so
+lib/librhash.so.0
+man/man1/ed2k-link.1.gz
+man/man1/gost-hash.1.gz
+man/man1/has160-hash.1.gz
+man/man1/magnet-link.1.gz
+man/man1/rhash.1.gz
+man/man1/sfv-hash.1.gz
+man/man1/tiger-hash.1.gz
+man/man1/tth-hash.1.gz
+man/man1/whirlpool-hash.1.gz


Property changes on: trunk/security/rhash/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list