From nobody Mon Apr 1 10:49:26 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V7SSQ3hPyz5GCl3; Mon, 1 Apr 2024 10:49:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V7SSQ38WFz567V; Mon, 1 Apr 2024 10:49:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711968566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zmn7sDV1qiaFSM1aP3XsgQluvMMYa1qijovUs7T4lUs=; b=v4tlAC9PDQoxwjhjNUEf4s+LI31IrVHcgmGKqrEhjS/XUW4XkMIQ2IEDEUokB/dJ925lEw jgGUb575Fr6qVmCz0rDdRw/EFf45FLViLSpr0bSAyOgXcReV2gQxrjZEb27AiCa2uXaEyN NIh3TDTy88IUBa1kwhz9VPf7JDh15Kf53igVyeMRayRjtFwvYqhaH6ufPVLpMeLwg1RfeX q9K3+zoLEjQjTKO9BJ9RuOqc9XoiLF6gksSiPbXEMBejunZ60Db3vxh5dKvaTZMFlHwQI4 DGa9OPsu2JhMEmp0RAEAQ/c5CbAz0joH8ORQ1YN5QSxRghvXHiT4yNO7LMmPFw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711968566; a=rsa-sha256; cv=none; b=LXpzGPH4fRSKeZhalTG89AHK8X2DcPErdkzRjww1yvXTHwd2AnAa5Q6LdNuMpabmdxFi9U 04VTmdO1XkA5WF3Ws1ZkXoZv7psL2GT5Nw9rq4kxFL0Yt6fPdYWYsRbS/2nVFp3iZMeGRo rLh1VMbqLl3Qdw+KkI2HRuOBYXIfhHYkVP9m8xQbNxuCGp+NNPa3U6UszdGsHHgufta3Zs d9ork/xn4fauDgkp0RZDrB0v+RxOLVk4JGE4XzhNPnHPnqmW7hudl3Ueuel8SQgklBOh63 3XTDtnN2x2490Rs8Uqsv+YwrQqBhzMGLwywvZrelq5GuOOEULDzEGjr+uJsyew== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711968566; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Zmn7sDV1qiaFSM1aP3XsgQluvMMYa1qijovUs7T4lUs=; b=pW2dg6hJR964J/hZirN20et/bEZAgQ61NRPV7EZhDgqr1zhhaP+3PhrCFjIlAT1N49Y08s OfcBK//3XL96HI2i7rQfJcSXF2u9kz7tUm05ILBN5bZfHVYGOvkish/P21jPcePcVACR64 nVBEsVheOHrtg9K+GMNqdbRIT0CvkvjZ0WM5eyuU1ioKCjoFRepKA2/hIzSsM1nPedD1CL ykAqGUBWVjGwz0toXGl+iBXI2C5CyjPh+xjbUuAPPoWghvQx2Yo+wfA6SXYMdaktG55Y6F nJJeM7Rw3ArWAVsOZUH69y+UkKcNWSPot76Jg0nJF00xezIhhGwXJw/PULCViQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V7SSQ2mRVz1Hvq; Mon, 1 Apr 2024 10:49:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 431AnQS2060244; Mon, 1 Apr 2024 10:49:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 431AnQ91060241; Mon, 1 Apr 2024 10:49:26 GMT (envelope-from git) Date: Mon, 1 Apr 2024 10:49:26 GMT Message-Id: <202404011049.431AnQ91060241@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Rene Ladan Subject: git: 2db400e0d44b - main - misc/buffer: Remove expired port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: rene X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2db400e0d44ba47d203680df4bbe28fd7ca88eb5 Auto-Submitted: auto-generated The branch main has been updated by rene: URL: https://cgit.FreeBSD.org/ports/commit/?id=2db400e0d44ba47d203680df4bbe28fd7ca88eb5 commit 2db400e0d44ba47d203680df4bbe28fd7ca88eb5 Author: Rene Ladan AuthorDate: 2024-04-01 10:49:00 +0000 Commit: Rene Ladan CommitDate: 2024-04-01 10:49:20 +0000 misc/buffer: Remove expired port 2024-03-31 misc/buffer: No upstream updates since 1995. Switch to misc/mbuffer --- MOVED | 1 + misc/Makefile | 1 - misc/buffer/Makefile | 23 ----- misc/buffer/distinfo | 2 - misc/buffer/files/patch-buffer.c | 170 ------------------------------------- misc/buffer/files/patch-buffer.man | 33 ------- misc/buffer/files/patch-sem.c | 19 ----- misc/buffer/pkg-descr | 10 --- 8 files changed, 1 insertion(+), 258 deletions(-) diff --git a/MOVED b/MOVED index ee93181905a0..9d647cdd9332 100644 --- a/MOVED +++ b/MOVED @@ -3096,3 +3096,4 @@ www/mediawiki135||2024-04-01|Has expired: Upstream reached EOL on 2023-12-21 net-p2p/bitflu||2024-04-01|Has expired: No development in years and lack common functionality found in modern clients devel/busybee||2024-04-01|Has expired: Abandoned upstream, last release 2015 and last commit 2017 textproc/rubygem-zmq||2024-04-01|Has expired: Last releasee was in 2011 and depends on deprecated libzmq2 +misc/buffer|misc/mbuffer|2024-04-01|Has expired: No upstream updates since 1995. Switch to misc/mbuffer diff --git a/misc/Makefile b/misc/Makefile index e23b87985a75..9054231e09b0 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -38,7 +38,6 @@ SUBDIR += boxes SUBDIR += broot SUBDIR += bsod - SUBDIR += buffer SUBDIR += caffe SUBDIR += chatgpt-shell-cli SUBDIR += cheat diff --git a/misc/buffer/Makefile b/misc/buffer/Makefile deleted file mode 100644 index a36739118dc4..000000000000 --- a/misc/buffer/Makefile +++ /dev/null @@ -1,23 +0,0 @@ -PORTNAME= buffer -PORTVERSION= 1.19 -PORTREVISION= 1 -CATEGORIES= misc -MASTER_SITES= GENTOO \ - http://www.mondorescue.org/download/MondoCD/TGZS/ - -MAINTAINER= ports@FreeBSD.org -COMMENT= Buffer sporadic I/O for faster tape and pipe throughput - -DEPRECATED= No upstream updates since 1995. Switch to misc/mbuffer -EXPIRATION_DATE=2024-03-31 - -USES= tar:tgz -PLIST_FILES= bin/buffer \ - share/man/man1/buffer.1.gz -CFLAGS+= -D_WANT_SEMUN -MAKE_ARGS= CC="${CC}" \ - CFLAGS="${CFLAGS}" \ - INSTBIN="${STAGEDIR}${PREFIX}/bin" \ - INSTMAN="${STAGEDIR}${PREFIX}/share/man/man1" - -.include diff --git a/misc/buffer/distinfo b/misc/buffer/distinfo deleted file mode 100644 index a26673707f6f..000000000000 --- a/misc/buffer/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (buffer-1.19.tgz) = ec7da9f9737cd03c11a26f8380ab7d567b252b862b989da430b1e92db79b42c8 -SIZE (buffer-1.19.tgz) = 34960 diff --git a/misc/buffer/files/patch-buffer.c b/misc/buffer/files/patch-buffer.c deleted file mode 100644 index bbc8ff0ace18..000000000000 --- a/misc/buffer/files/patch-buffer.c +++ /dev/null @@ -1,170 +0,0 @@ ---- buffer.c.orig Sat Jan 19 20:47:17 2002 -+++ buffer.c Tue Dec 13 11:57:38 2005 -@@ -114,12 +114,17 @@ - #include - #include - #include -+#include - #include - #include - #include - #include - #include - #include -+#include -+#include -+#include -+#include - #include "sem.h" - - #ifndef lint -@@ -127,7 +132,6 @@ - #endif - - #ifndef __alpha --extern char *shmat(); - #endif /* __alpha */ - - /* General macros */ -@@ -252,6 +256,8 @@ - /* Number of K output */ - unsigned long outk = 0; - -+struct timeval starttime; -+ - int - main( argc, argv ) - int argc; -@@ -263,6 +269,8 @@ - - buffer_allocate(); - -+ gettimeofday(&starttime, NULL); -+ - start_reader_and_writer(); - - byee( 0 ); -@@ -384,8 +392,8 @@ - fprintf( stderr, "Usage: %s [-B] [-t] [-S size] [-m memsize] [-b blocks] [-p percent] [-s blocksize] [-u pause] [-i infile] [-o outfile] [-z size]\n", - progname ); - fprintf( stderr, "-B = blocked device - pad out last block\n" ); -- fprintf( stderr, "-t = show total amount writen at end\n" ); -- fprintf( stderr, "-S size = show amount writen every size bytes\n" ); -+ fprintf( stderr, "-t = show total amount written at end\n" ); -+ fprintf( stderr, "-S size = show amount written every size bytes\n" ); - fprintf( stderr, "-m size = size of shared mem chunk to grab\n" ); - fprintf( stderr, "-b num = number of blocks in queue\n" ); - fprintf( stderr, "-p percent = don't start writing until percent blocks filled\n" ); -@@ -398,6 +406,11 @@ - } - } - -+ if (argc > optind) { -+ fprintf( stderr, "too many arguments\n" ); -+ byee( -1 ); -+ } -+ - if (zflag) showevery = blocksize; - - /* If -b was not given try and work out the max buffer size */ -@@ -507,9 +520,9 @@ - get_buffer(); - - if( debug ) -- fprintf( stderr, "%s pbuffer is 0x%08x, buffer_size is %d [%d x %d]\n", -+ fprintf( stderr, "%s pbuffer is 0x%08lx, buffer_size is %d [%d x %d]\n", - proc_string, -- (char *)pbuffer, buffer_size, blocks, blocksize ); -+ (unsigned long)pbuffer, buffer_size, blocks, blocksize ); - - #ifdef SYS5 - memset( (char *)pbuffer, '\0', buffer_size ); -@@ -526,9 +539,11 @@ - lock( pbuffer->semid, pbuffer->blocks_used_lock ); - - pbuffer->blocks_free_lock = 1; -- /* start this off so lock() can be called on it for each block -- * till all the blocks are used up */ -- sem_set( pbuffer->semid, pbuffer->blocks_free_lock, blocks - 1 ); -+ /* Initializing the semaphore to "blocks - 1" causes a hang when using option -+ * "-p 100" because it always keeps one block free, so we'll never reach 100% fill -+ * level. However, there doesn't seem to be a good reason to keep one block free, -+ * so we initialize the semaphore to "blocks" instead. */ -+ sem_set( pbuffer->semid, pbuffer->blocks_free_lock, blocks ); - - /* Detattach the shared memory so the fork doesnt do anything odd */ - shmdt( (char *)pbuffer ); -@@ -648,7 +663,7 @@ - int - fill_block() - { -- int bytes; -+ int bytes = 0; - char *start; - int toread; - static char eof_reached = 0; -@@ -707,7 +722,7 @@ - { - int filled = 0; - int maxfilled = (blocks * percent) / 100; -- int first_block; -+ int first_block = 0; - - if( debug ) - fprintf( stderr, "\tW: Entering writer\n blocks = %d\n maxfilled = %d\n", -@@ -914,13 +929,12 @@ - do_size( arg ) - char *arg; - { -- char format[ 20 ]; -- int ret; -+ int ret = 0; - -- *format = '\0'; -- sscanf( arg, "%d%s", &ret, format ); -+ char unit = '\0'; -+ sscanf( arg, "%d%c", &ret, &unit ); - -- switch( *format ){ -+ switch( unit ){ - case 'm': - case 'M': - ret = ret K K; -@@ -941,7 +955,36 @@ - void - pr_out() - { -- fprintf( stderr, " %10luK\r", outk ); -+ struct timeval now; -+ unsigned long ms_delta, k_per_s; -+ -+ gettimeofday(&now, NULL); -+ ms_delta = (now.tv_sec - starttime.tv_sec) * 1000 -+ + (now.tv_usec - starttime.tv_usec) / 1000; -+ if (ms_delta) { -+ /* Use increased accuracy for small amounts of data, -+ * decreased accuracy for *huge* throughputs > 4.1GB/s -+ * to avoid division by 0. This will overflow if your -+ * machine's throughput exceeds 4TB/s - you deserve to -+ * loose if you're still using 32 bit longs on such a -+ * beast ;-) -+ * -+ */ -+ if (outk < ULONG_MAX / 1000) { -+ k_per_s = (outk * 1000) / ms_delta; -+ } else if (ms_delta >= 1000) { -+ k_per_s = outk / (ms_delta / 1000); -+ } else { -+ k_per_s = (outk / ms_delta) * 1000; -+ } -+ fprintf( stderr, " %10luK, %10luK/s\r", outk, k_per_s ); -+ } else { -+ if (outk) { -+ fprintf( stderr, " %10luK, ?K/s\r", outk ); -+ } else { -+ fprintf( stderr, " 0K, 0K/s\r"); -+ } -+ } - } - - #ifdef SYS5 diff --git a/misc/buffer/files/patch-buffer.man b/misc/buffer/files/patch-buffer.man deleted file mode 100644 index b2001a2cbec9..000000000000 --- a/misc/buffer/files/patch-buffer.man +++ /dev/null @@ -1,33 +0,0 @@ ---- buffer.man.orig Tue Dec 13 11:55:36 2005 -+++ buffer.man Tue Dec 13 11:56:56 2005 -@@ -37,7 +37,8 @@ - Use the given file as the output file. The default is stdout. - .TP - .B \-S size --After every chunk this size has been writen print out how much been writen so far. -+After every chunk of this size has been written, print out how much -+been written so far. Also prints the total throughput. - By default this is not set. - .TP - .B \-s size -@@ -71,9 +72,9 @@ - throughput on some drives.) - .TP - .B \-B --Force each block writen to be padded out to the blocksize. This is needed by some tape -+Force each block written to be padded out to the blocksize. This is needed by some tape - and cartridge drives. Defaults to unpadded. This only affects the --last block writen. -+last block written. - .TP - .B \-t - On exiting print to stderr a brief message showing the total number of -@@ -82,7 +83,7 @@ - .B \-Z - If reading/writing directly to a character device (like a tape drive) - then after each gigabyte perform an lseek to the start of the file. --Use this flag with extreme care. If can only be used on devices where -+Use this flag with extreme care. It can only be used on devices where - an lseek does not rewind the tape but does reset the kernels position - flags. It is used to allow more than 2 gigabytes to be written. - .PP diff --git a/misc/buffer/files/patch-sem.c b/misc/buffer/files/patch-sem.c deleted file mode 100644 index f6fe3c210bc4..000000000000 --- a/misc/buffer/files/patch-sem.c +++ /dev/null @@ -1,19 +0,0 @@ ---- sem.c.orig Tue Dec 13 00:33:03 2005 -+++ sem.c Tue Dec 13 00:35:22 2005 -@@ -27,6 +27,7 @@ - * semaphores */ - - #include -+#include - #include - #include - #include -@@ -95,7 +96,7 @@ - return sem; - } - --static -+static void - do_sem( sem_id, pbuf, err ) - int sem_id; - struct sembuf *pbuf; diff --git a/misc/buffer/pkg-descr b/misc/buffer/pkg-descr deleted file mode 100644 index 384bde054f83..000000000000 --- a/misc/buffer/pkg-descr +++ /dev/null @@ -1,10 +0,0 @@ -This is a program designed initially to speed up writing tapes on remote -tape drives, but may be used as a general pipe buffering utility. -Note: You must have SYSVSHM support in FreeBSD kernel. - -The program splits itself into two processes. The first process reads -(and reblocks) from stdin into a shared memory buffer. The second -writes from the shared memory buffer to stdout. Doing it this way -means that the writing side effectly sits in a tight write loop and -doesn't have to wait for input. Similarly for the input side. It is -this waiting that slows down other reblocking processes, like dd.