svn commit: r509198 - in head/sysutils: . frand

Rodrigo Osorio rodrigo at FreeBSD.org
Sun Aug 18 10:34:08 UTC 2019


Author: rodrigo
Date: Sun Aug 18 10:34:06 2019
New Revision: 509198
URL: https://svnweb.freebsd.org/changeset/ports/509198

Log:
  Add new port sysutils/frand
  
  frand is a command line tool who returns
  a random file from a given directory using
  the reservoir sampling algorithm.
  
  With reservoir sampling algorithm, directory
  contents doesn't need to be read in memory
  then sorted and so will perform much better
  than find+sort for directories with a large
  amount of files.
  
  PR:		239467
  Submitted by:	serpent7776 at gmail.com

Added:
  head/sysutils/frand/
  head/sysutils/frand/Makefile   (contents, props changed)
  head/sysutils/frand/distinfo   (contents, props changed)
  head/sysutils/frand/pkg-descr   (contents, props changed)
  head/sysutils/frand/pkg-plist   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Sun Aug 18 10:34:04 2019	(r509197)
+++ head/sysutils/Makefile	Sun Aug 18 10:34:06 2019	(r509198)
@@ -348,6 +348,7 @@
     SUBDIR += fpc-users
     SUBDIR += fpc-utmp
     SUBDIR += fpc-uuid
+    SUBDIR += frand
     SUBDIR += freebsd-snapshot
     SUBDIR += freecolor
     SUBDIR += freedt

Added: head/sysutils/frand/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/frand/Makefile	Sun Aug 18 10:34:06 2019	(r509198)
@@ -0,0 +1,25 @@
+# $FreeBSD$
+
+PORTNAME=	frand
+PORTVERSION=	0.1
+DISTVERSIONPREFIX=	v
+CATEGORIES=	sysutils
+
+MAINTAINER=	serpent7776 at gmail.com
+COMMENT=	Selects a random file using reservoir sampling algorithm
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libboost_filesystem.so:devel/boost-libs
+
+USES=		cmake
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	serpent7776
+GH_PROJECT=	frand StreamSampler:StreamSampler
+GH_TAGNAME=	919a0f1ba6bb3ae63b4708722e9a7d49164ca92d:StreamSampler
+GH_ACCOUNT_StreamSampler=	LiorKogan
+GH_SUBDIR_StreamSampler=	lib/StreamSampler
+
+.include <bsd.port.mk>

Added: head/sysutils/frand/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/frand/distinfo	Sun Aug 18 10:34:06 2019	(r509198)
@@ -0,0 +1,5 @@
+TIMESTAMP = 1564056505
+SHA256 (serpent7776-frand-v0.1_GH0.tar.gz) = 62a114ad80443b8e3fffa56ca3182e4e7294d1a3ba4b92cdb4e1cbe625794389
+SIZE (serpent7776-frand-v0.1_GH0.tar.gz) = 2225
+SHA256 (LiorKogan-StreamSampler-919a0f1ba6bb3ae63b4708722e9a7d49164ca92d_GH0.tar.gz) = 654ac0c0c0f161ef40c4d3fd4632d71cdf59c9cbe1108b47ba44b7f9f10f1d73
+SIZE (LiorKogan-StreamSampler-919a0f1ba6bb3ae63b4708722e9a7d49164ca92d_GH0.tar.gz) = 36890

Added: head/sysutils/frand/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/frand/pkg-descr	Sun Aug 18 10:34:06 2019	(r509198)
@@ -0,0 +1,5 @@
+Selects a random file from given directory using reservoir sampling algorithm.
+This means directory contents doesn't need to be read in memory and then sorted
+and so will perform much better than find+sort for big directories.
+
+WWW: https://github.com/serpent7776/frand

Added: head/sysutils/frand/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/frand/pkg-plist	Sun Aug 18 10:34:06 2019	(r509198)
@@ -0,0 +1,2 @@
+ at comment $FreeBSD$
+bin/frand


More information about the svn-ports-all mailing list