git: eff7646541d5 - main - archivers/paq: Remove expired port

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Sun, 04 Aug 2024 12:39:59 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=eff7646541d5d4b0cec617e64ae9b106390d44a8

commit eff7646541d5d4b0cec617e64ae9b106390d44a8
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2024-08-04 12:39:50 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2024-08-04 12:39:50 +0000

    archivers/paq: Remove expired port
    
    2024-07-31 archivers/paq: Outdated, unmaintained and format that never gained any traction
---
 MOVED                                 |   1 +
 archivers/Makefile                    |   1 -
 archivers/paq/Makefile                | 131 ----------------------------------
 archivers/paq/distinfo                |  48 -------------
 archivers/paq/files/patch-libzpaq.cpp |  20 ------
 archivers/paq/files/patch-zpaq.cpp    |  28 --------
 archivers/paq/files/patch-zpsfx.cpp   |  77 --------------------
 archivers/paq/files/pkg-message.in    |  13 ----
 archivers/paq/pkg-descr               |  22 ------
 archivers/paq/pkg-plist               |  13 ----
 10 files changed, 1 insertion(+), 353 deletions(-)

diff --git a/MOVED b/MOVED
index 129a8510ea71..1f76d7406b21 100644
--- a/MOVED
+++ b/MOVED
@@ -3411,3 +3411,4 @@ sysutils/unieject||2024-08-04|Has expired: Abandonware, upstream repo deprecated
 www/tomcat85||2024-08-04|Has expired: Upstream EOL reaches on 2024-03-31, some time after 2024-06-30 distfiles will be archived. Migrate to www/tomcat9
 archivers/pxz||2024-08-04|Has expired: Superseded by xz (Utils), support for multithreading is available since 2014
 www/mediawiki140||2024-08-04|Has expired: Upstream EOL
+archivers/paq||2024-08-04|Has expired: Outdated, unmaintained and format that never gained any traction
diff --git a/archivers/Makefile b/archivers/Makefile
index 8a15221fb38a..058dac53721e 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -141,7 +141,6 @@
     SUBDIR += p5-PerlIO-gzip
     SUBDIR += p5-PerlIO-via-Bzip2
     SUBDIR += packddir
-    SUBDIR += paq
     SUBDIR += par
     SUBDIR += par2cmdline
     SUBDIR += par2cmdline-turbo
diff --git a/archivers/paq/Makefile b/archivers/paq/Makefile
deleted file mode 100644
index 16e60853f0de..000000000000
--- a/archivers/paq/Makefile
+++ /dev/null
@@ -1,131 +0,0 @@
-PORTNAME=	paq
-PORTVERSION=	20140131
-PORTREVISION=	6
-CATEGORIES=	archivers
-MASTER_SITES=	http://mattmahoney.net/dc/ LOCAL/bf/paq/
-DISTFILES=	wbpe110.zip zpaqd633.zip zpaq657.zip zpipe.201.zip
-DIST_SUBDIR=	${PORTNAME}
-EXTRACT_ONLY=	${DISTFILES:M*.zip}
-
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Family of archivers with extremely high compression ratios
-WWW=		http://mattmahoney.net/dc/zpaq.html
-
-LICENSE=	GPLv3 MIT
-LICENSE_COMB=	multi
-
-DEPRECATED=	Outdated, unmaintained and format that never gained any traction 
-EXPIRATION_DATE=2024-07-31
-
-USES=		dos2unix zip
-USE_CXXSTD=	c++14
-
-EXTRACT_AFTER_ARGS=	-x *.bat *.exe readme.txt -d ${WRKSRC}
-NO_WRKSUBDIR=	yes
-OPTIONS_DEFINE=	OPENMP DOCS
-SUB_FILES=	pkg-message
-
-.include <bsd.port.options.mk>
-
-.if ${ARCH} == "amd64" || ( ${ARCH} == "i386" && !empty(MACHINE_CPU:Msse2) )
-ZPAQFLAGS=	-Dunix -msse2
-.else
-ZPAQFLAGS=	-Dunix -DNOJIT
-.endif
-
-.if defined(WITH_DEBUG)
-CXXFLAGS+=	-DDEBUG
-.else
-CXXFLAGS+=	-DNDEBUG
-.endif
-
-DISTFILES+=	bmp_j4c.zip bwt.1.zip bwt_j3.zip bwt_slowmode1.zip \
-		calgarytest.zpaq calgarytest2.zpaq exe_j1.zip fast.cfg \
-		jpg_test2.zip lazy210.zip lz1.zip max.cfg mid.cfg min.zip \
-		zpsfx.100.zip zpsfx101.cpp
-
-.if ${PORT_OPTIONS:MDOCS} || make(makesum)
-DISTFILES+=	zpaq1.pdf zpaq202.pdf zpaq203.pdf zpaq204.pdf
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-PORTDOCS=	libzpaq.cpp wbpe.cpp zpaq.cpp zpaq.pod zpaq1.pdf \
-		zpaq202.pdf zpaq203.pdf zpaq204.pdf zpipe.cpp
-.endif
-
-.if ${PORT_OPTIONS:MDOCS}
-PORTDOCS+=	bwt_.cpp bwtpre.cpp bwtrle.cpp divsufsort.c divsufsort.h \
-		exe_jo.cpp jpeg_jo.cpp lzpre.cpp lzppre.cpp readme_bwt.txt \
-		readme_bwt_j3.txt readme_exe_j1.txt readme_lazy210.txt zpsfx.cpp
-READMES+=	bwt_j3 exe_j1 lazy210
-.endif
-WDATA=	bmp_j4.cfg bwt_j3.cfg bwt_slowmode1_1GB_block.cfg \
-	bwt_slowmode1_256MB_block.cfg bwt_slowmode1_4MB_block.cfg \
-	bwt1.cfg bwt2.cfg bwtrle1.cfg bwtrle2.cfg colorpre.cfg \
-	exe_j1.cfg jpg_test2.cfg lazy2.cfg lz1.cfg min.cfg zpsfx.tag
-DDATA=	fast.cfg max.cfg mid.cfg
-PORTDATA=	${WDATA} ${DDATA} zpsfx
-
-.if ${PORT_OPTIONS:MOPENMP}
-OPENMP_CFLAGS+=	-fopenmp
-USE_GCC=	yes
-BROKEN=		does not build
-.endif
-
-post-extract:
-	@${CP} ${DISTDIR}/${DIST_SUBDIR}/zpsfx101.cpp ${WRKSRC}/zpsfx.cpp
-.if ${PORT_OPTIONS:MDOCS}
-.for r in ${READMES}
-	@${UNZIP_NATIVE_CMD} -pq  ${DISTDIR}/${DIST_SUBDIR}/${r}.zip readme.txt > ${WRKSRC}/readme_${r:R}.txt
-.endfor
-
-.endif
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|c:\\res\\zpaq\\||' ${WRKSRC}/bwt[12].cfg \
-		${WRKSRC}/bwtrle[12].cfg
-
-do-build:
-	@cd ${WRKSRC}; for prog in bwt_ bwtpre exe_jo jpeg_jo lazy2 lzpre \
-	lzppre; do \
-	${CXX} ${CXXFLAGS} -o $${prog} $${prog}.cpp; done; \
-	${CXX} ${CXXFLAGS} -o bwtrle bwtrle.cpp divsufsort.c; \
-	${CXX} ${CXXFLAGS} ${ZPAQFLAGS} -o zpsfx zpsfx.cpp libzpaq.cpp
-	@cd ${WRKSRC}; \
-	${CXX} ${CXXFLAGS} -o wbpe wbpe.cpp; \
-	${CXX} ${CXXFLAGS} ${OPENMP_CFLAGS} ${ZPAQFLAGS} \
-	-o zpaq zpaq.cpp libzpaq.cpp ${LDFLAGS} -pthread; \
-	${CXX} ${CXXFLAGS:N-DNDEBUG} ${ZPAQFLAGS} \
-	-o zpaqd zpaqd.cpp libzpaq.cpp ${LDFLAGS}; \
-	${CXX} ${CXXFLAGS} ${ZPAQFLAGS} -o zpipe zpipe.cpp libzpaq.cpp
-
-do-install:
-.for prog in wbpe zpaq zpaqd zpipe
-	${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${STAGEDIR}${PREFIX}/bin
-.endfor
-	${INSTALL_DATA} ${WRKSRC}/libzpaq.h ${STAGEDIR}${PREFIX}/include
-.for prog in bwt_ bwtpre bwtrle exe_jo jpeg_jo lazy2 lzpre lzppre
-	${INSTALL_PROGRAM} ${WRKSRC}/${prog} ${STAGEDIR}${PREFIX}/bin
-.endfor
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-	cd ${WRKSRC}; ${INSTALL_DATA} ${WDATA} ${STAGEDIR}${DATADIR}; \
-	${INSTALL_LIB} zpsfx ${STAGEDIR}${DATADIR}
-	cd ${_DISTDIR}; ${INSTALL_DATA} ${DDATA} ${STAGEDIR}${DATADIR}
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${STAGEDIR}${DOCSDIR}
-	cd ${WRKSRC}; ${INSTALL_DATA} ${PORTDOCS:N*.pdf} ${STAGEDIR}${DOCSDIR}
-	cd ${DISTDIR}/${DIST_SUBDIR}; ${INSTALL_DATA} ${PORTDOCS:M*.pdf} ${STAGEDIR}${DOCSDIR}
-.endif
-
-do-test:
-.for _f in calgarytest.zpaq calgarytest2.zpaq
-.for _c in -list -test
-	${WRKSRC}/zpaq ${_c} ${DISTDIR}/${DIST_SUBDIR}/${_f}
-.endfor
-	cd ${WRKSRC}; ./zpaq -extract ${DISTDIR}/${DIST_SUBDIR}/${_f}; \
-	./zpaq -add encrypted_${_f} calgary -key password; \
-	./zpaq -test encrypted_${_f} -key password; \
-	${RM} -r calgary
-.endfor
-
-.include <bsd.port.mk>
diff --git a/archivers/paq/distinfo b/archivers/paq/distinfo
deleted file mode 100644
index cdf65b060b6f..000000000000
--- a/archivers/paq/distinfo
+++ /dev/null
@@ -1,48 +0,0 @@
-SHA256 (paq/wbpe110.zip) = 1675083b253e04ba7dd7cd28b2f7be179b3f5c1bb4d5289be4cfa217c6bc9b27
-SIZE (paq/wbpe110.zip) = 13667
-SHA256 (paq/zpaqd633.zip) = bd913f3f843fb9a14a2b015d35d37ac87b56bdb9b9fee71469a3e9ca2a61ef03
-SIZE (paq/zpaqd633.zip) = 297885
-SHA256 (paq/zpaq657.zip) = ceef7496eacaddeccd4293ac8a560c50a99836777b536f5cc05f8c93e270adf9
-SIZE (paq/zpaq657.zip) = 679480
-SHA256 (paq/zpipe.201.zip) = e95dfe6f701dd463f969fe16c933ed97fca194bd7aacec37d6c35409766133a8
-SIZE (paq/zpipe.201.zip) = 67555
-SHA256 (paq/bmp_j4c.zip) = 98fe722a89ac107f637d54bf609673402fa9ede87d19ed68ee28633e64e879a7
-SIZE (paq/bmp_j4c.zip) = 2511
-SHA256 (paq/bwt.1.zip) = 689dbafe057afb5d46be34906f4c7565d5f9d8eed7943c78b70ac10753943c68
-SIZE (paq/bwt.1.zip) = 40417
-SHA256 (paq/bwt_j3.zip) = c5e75abdd8d8a3fb6effa3c467e98aeb3175068bd454a635baae79de024b9120
-SIZE (paq/bwt_j3.zip) = 16535
-SHA256 (paq/bwt_slowmode1.zip) = 3b7fb3c4a2491b4f8b2c243f7f67a4f2c7d2b793558207001b2565f06e145a92
-SIZE (paq/bwt_slowmode1.zip) = 138176
-SHA256 (paq/calgarytest.zpaq) = 53d3cc3c6c6f97d701ea316313fb447fa84ef55a353e5325c6754568e20c93bf
-SIZE (paq/calgarytest.zpaq) = 1003792
-SHA256 (paq/calgarytest2.zpaq) = b110688939477bbe62263faff1ce488872c68c0352aa8e55779346f1bd1ed07e
-SIZE (paq/calgarytest2.zpaq) = 1002255
-SHA256 (paq/exe_j1.zip) = 8e13ca38ed6fb7fd9ae5244c44b045f179b068c3d3281f1f2690c352e45ca239
-SIZE (paq/exe_j1.zip) = 9828
-SHA256 (paq/fast.cfg) = 2cf9605ba5eb73a58146509844d4b360c07ae55ebc2ab92d485d0c907166cfda
-SIZE (paq/fast.cfg) = 359
-SHA256 (paq/jpg_test2.zip) = b09eedf0760826fa6822d266c1e262e67ad4ac119e11235e192e208e558e4855
-SIZE (paq/jpg_test2.zip) = 12189
-SHA256 (paq/lazy210.zip) = 7c6d55c316b366328d711ada5fd8302e4db89916dfd66449d696416d7f60d735
-SIZE (paq/lazy210.zip) = 15867
-SHA256 (paq/lz1.zip) = 2817e3d300edee5c1d65d702feb58b51bd459817dc32a2a29d82d0f92a0ea7d9
-SIZE (paq/lz1.zip) = 10012
-SHA256 (paq/max.cfg) = 7965863923d5558409f5792167c74914a9c0d07f813ef385587450e7b5a156b7
-SIZE (paq/max.cfg) = 1754
-SHA256 (paq/mid.cfg) = 51dd9dc78513e36217033c501f4a3331d30820df875e466052b6b6175bc9bafa
-SIZE (paq/mid.cfg) = 786
-SHA256 (paq/min.zip) = 7209ffaf0d48f5e10e3134826d766e2dc52ed914ed5dbad415023db10b4e1113
-SIZE (paq/min.zip) = 9560
-SHA256 (paq/zpsfx.100.zip) = 4ccf6b7967a2545d7741021f6c87362d72077d7f51c74840ab0ae34e5f12bffa
-SIZE (paq/zpsfx.100.zip) = 43423
-SHA256 (paq/zpsfx101.cpp) = d035fa2cc2f63f61e8e3476ccd09598b9f5012628de8c911dfaae07e64ae73ff
-SIZE (paq/zpsfx101.cpp) = 5491
-SHA256 (paq/zpaq1.pdf) = dce14a22ddd51117a29743db77a79ce31f97b2dbb1b2aaec7d0be0946ed85bf0
-SIZE (paq/zpaq1.pdf) = 105049
-SHA256 (paq/zpaq202.pdf) = 1a4b6f045f3a445d7f64b78c7d8d510bf04ccc658c5cf6ab15a7203856a139f8
-SIZE (paq/zpaq202.pdf) = 203352
-SHA256 (paq/zpaq203.pdf) = 63586238f2fbad55e710422d0daed2597d66c5916f2353282517f1e53de04199
-SIZE (paq/zpaq203.pdf) = 207565
-SHA256 (paq/zpaq204.pdf) = 720be1d48417064c940c5da57bca4b6c5cbe82643d5e6e8d8eabef2737f17b98
-SIZE (paq/zpaq204.pdf) = 208997
diff --git a/archivers/paq/files/patch-libzpaq.cpp b/archivers/paq/files/patch-libzpaq.cpp
deleted file mode 100644
index a3201867de33..000000000000
--- a/archivers/paq/files/patch-libzpaq.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
---- libzpaq.cpp.orig	2022-04-18 09:32:11 UTC
-+++ libzpaq.cpp
-@@ -2745,7 +2745,7 @@ void Compressor::writeTag() {
- void Compressor::startBlock(int level) {
- 
-   // Model 1 - min.cfg
--  static const char models[]={
-+  static const signed char models[]={
-   26,0,1,2,0,0,2,3,16,8,19,0,0,96,4,28,
-   59,10,59,112,25,10,59,10,59,112,56,0,
- 
-@@ -2774,7 +2774,7 @@ void Compressor::startBlock(int level) {
-   0,0}; // 0,0 = end of list
- 
-   if (level<1) error("compression level must be at least 1");
--  const char* p=models;
-+  const char* p=(const char*)models;
-   int i;
-   for (i=1; i<level && toU16(p); ++i)
-     p+=toU16(p)+2;
diff --git a/archivers/paq/files/patch-zpaq.cpp b/archivers/paq/files/patch-zpaq.cpp
deleted file mode 100644
index 56b513320dc4..000000000000
--- a/archivers/paq/files/patch-zpaq.cpp
+++ /dev/null
@@ -1,28 +0,0 @@
---- zpaq.cpp.orig	2016-07-26 12:11:37 UTC
-+++ zpaq.cpp
-@@ -1236,24 +1236,7 @@ int numberOfProcessors() {
-   int rc=0;  // result
- #ifdef unix
- 
--  // Count lines of the form "processor\t: %d\n" in /proc/cpuinfo
--  // where %d is 0, 1, 2,..., rc-1
--  FILE *in=fopen("/proc/cpuinfo", "r");
--  if (!in) return 1;
--  std::string s;
--  int c;
--  while ((c=getc(in))!=EOF) {
--    if (c>='A' && c<='Z') c+='a'-'A';  // convert to lowercase
--    if (c>' ') s+=c;  // remove white space
--    if (c=='\n') {  // end of line?
--      if (size(s)>10 && s.substr(0, 10)=="processor:") {
--        c=atoi(s.c_str()+10);
--        if (c==rc) ++rc;
--      }
--      s="";
--    }
--  }
--  fclose(in);
-+  rc=(int)sysconf(_SC_NPROCESSORS_ONLN);
- #else
- 
-   // In Windows return %NUMBER_OF_PROCESSORS%
diff --git a/archivers/paq/files/patch-zpsfx.cpp b/archivers/paq/files/patch-zpsfx.cpp
deleted file mode 100644
index 5f6031b53128..000000000000
--- a/archivers/paq/files/patch-zpsfx.cpp
+++ /dev/null
@@ -1,77 +0,0 @@
---- zpsfx.cpp.orig	2016-07-26 12:10:41 UTC
-+++ zpsfx.cpp
-@@ -16,19 +16,38 @@ Or use appropriate optimization options.
- the executable smaller. -DNDEBUG turns off run time checks.
- To convert a ZPAQ archive to a self extracting archive:
- 
-+On Windows:
-+
-   copy/b zpsfx.exe+zpsfx.tag+archive.zpaq archive.exe
- 
-+On FreeBSD(the choice of archive name is discretionary): 
-+
-+  cat zpsfx zpsfx.tag archive.zpaq > archive.sfx
-+
- zpsfx.tag is a 13 byte file used to mark the start of the compressed data
- that is appended. Alternatively, zpaq with the "t" modifier will append
- the same tag ("a" appends).
- 
-+On Windows:
-+
-   copy zpsfx.exe archive.exe
-   zpaq ta archive.exe files...
- 
-+On FreeBSD:
-+
-+  cp zpsfx archive.sfx
-+  zpaq ta archive.sfx files...
-+
- To extract:
- 
-+On Windows:
-+
-   archive.exe
- 
-+On FreeBSD:
-+
-+  archive.sfx
-+
- The program reads itself and decompresses the appended archive.
- You must enter the .exe extension as shown. If the file is not in
- the current folder then you need to specify the path. The PATH environment
-@@ -44,7 +63,11 @@ stored filename. SHA-1 checksums are not
- #include <stdio.h>
- #include <stdlib.h>
- #include <string>
-+#ifdef unix
-+#include <sys/stat.h>
-+#else
- #include <windows.h>
-+#endif
- 
- // An error handler is required as shown in this example. libzpaq will
- // call it with an English language message in case of a fatal error.
-@@ -96,7 +119,11 @@ struct Buf: public libzpaq::Writer {
- 
- // Return '/' in Linux or '\' in Windows
- char slash() {
-+#ifdef unix
-+  return '/';
-+#else
-   return '\\';
-+#endif
- }
- 
- // Create directories as needed. For example if path="/tmp/foo/bar"
-@@ -106,7 +133,11 @@ void makepath(std::string& path) {
-   for (int i=0; i<path.size(); ++i) {
-     if (path[i]=='\\' || path[i]=='/') {
-       path[i]=0;
-+#ifdef unix
-+      int ok=!mkdir(path.c_str(), 0777);
-+#else
-       int ok=CreateDirectory(path.c_str(), 0);
-+#endif
-       path[i]=slash();
-     }
-   }
diff --git a/archivers/paq/files/pkg-message.in b/archivers/paq/files/pkg-message.in
deleted file mode 100644
index 5b56b158ff48..000000000000
--- a/archivers/paq/files/pkg-message.in
+++ /dev/null
@@ -1,13 +0,0 @@
-[
-{ type: install
-  message: <<EOM
-In addition to the manpages, see %%DOCSDIR%%/readme_*.txt
-and the comments at the head of %%DOCSDIR%%/*.cpp
-for instructions and details on usage and the algorithms employed.  For
-simplicity, the ".exe" suffix has been dropped from the zpsfx
-self-expanding archive stub executable, to avoid confusion with win32
-executable stubs.  zpsfx can be further compressed with archivers/upx,
-to yield smaller self-expanding archives.
-EOM
-}
-]
diff --git a/archivers/paq/pkg-descr b/archivers/paq/pkg-descr
deleted file mode 100644
index 133dfd7267d6..000000000000
--- a/archivers/paq/pkg-descr
+++ /dev/null
@@ -1,22 +0,0 @@
-paq is a family of archivers with the best lossless compression ratios now
-available across a wide variety of test data, according to several benchmarks.
-A comparison of paq to other compression methods, on a 2GHz T3200, when
-compressing a large text file:
-
-Format		Size		Time (sec)	Memory
-				comp	decomp
------------	---------	--------------  -------
-Uncompressed	3,152,896
-compress	1,319,521	1.6	0.2	 .1 MB
-gzip -9         1,022,810	0.7	0.1	 .1 MB
-bzip2 -9	860,097		0.6	0.4	  5 MB
-p7zip (7z)	824,573		1.5	0.1	195 MB
-xz -6		822,016		?	?	  ?
-zpaq c1 (fast)	806,959		2	2	 38 MB
-zpaq c2 (mid)	699,191		8	8	112 MB
-zpaq c3 (max)	644,190		20	20	246 MB
-
-The port uses the open ZPAQ specification, and contains: a public-domain C++
-API for reading and writing ZPAQ compressed data to or from files or objects
-in memory; serial and multi-threaded archivers;  extra preprocessors for
-compression; and stubs for creating self-extracting archives.
diff --git a/archivers/paq/pkg-plist b/archivers/paq/pkg-plist
deleted file mode 100644
index 03a1bcb8c362..000000000000
--- a/archivers/paq/pkg-plist
+++ /dev/null
@@ -1,13 +0,0 @@
-bin/bwt_
-bin/bwtpre
-bin/bwtrle
-bin/exe_jo
-bin/jpeg_jo
-bin/lazy2
-bin/lzpre
-bin/lzppre
-bin/wbpe
-bin/zpaq
-bin/zpaqd
-bin/zpipe
-include/libzpaq.h