aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2024-04-01 10:59:54 +0000
committerRene Ladan <rene@FreeBSD.org>2024-04-01 10:59:54 +0000
commite0e8e541f1d2553a4a05262fe4c08adb4ac4d82d (patch)
treeb888ceae3aa192137fd7f0daa08797c5e53335cc
parent65bdec761661025c75adf0ac879457f05e86d003 (diff)
downloadports-e0e8e541f1d2553a4a05262fe4c08adb4ac4d82d.tar.gz
ports-e0e8e541f1d2553a4a05262fe4c08adb4ac4d82d.zip
net-p2p/liberator: Remove expired port
2024-03-31 net-p2p/liberator: Abandoned project with last release in 2003
-rw-r--r--MOVED1
-rw-r--r--net-p2p/Makefile1
-rw-r--r--net-p2p/liberator/Makefile59
-rw-r--r--net-p2p/liberator/distinfo2
-rw-r--r--net-p2p/liberator/files/patch-immutable-strings141
-rw-r--r--net-p2p/liberator/files/wrapper.sh14
-rw-r--r--net-p2p/liberator/pkg-descr2
-rw-r--r--net-p2p/liberator/pkg-plist24
8 files changed, 1 insertions, 243 deletions
diff --git a/MOVED b/MOVED
index f6d7556d844a..03345b10108b 100644
--- a/MOVED
+++ b/MOVED
@@ -3102,3 +3102,4 @@ irc/sirc||2024-04-01|Has expired: Abandonware, upstream is gone and current vers
net-p2p/btpd||2024-04-01|Has expired: Abandoned upstream, lacks support for common functionality such as Magnet links, DHT, PEX and HTTPS. Consider net-p2p/qbittorrent or net-p2p/transmission
net-im/cawbird||2024-04-01|Has expired: No longer developed due to Twitter changes
irc/ninja||2024-04-01|Has expired: Abandonware, last release around 2002 and upstream is gone. Consider irc/ircII or irc/irssi
+net-p2p/liberator||2024-04-01|Has expired: Abandoned project with last release in 2003
diff --git a/net-p2p/Makefile b/net-p2p/Makefile
index 8db9019ac545..dfe9630cfa75 100644
--- a/net-p2p/Makefile
+++ b/net-p2p/Makefile
@@ -41,7 +41,6 @@
SUBDIR += jigdo
SUBDIR += ktorrent
SUBDIR += libbt
- SUBDIR += liberator
SUBDIR += libktorrent
SUBDIR += libswift
SUBDIR += libtorrent
diff --git a/net-p2p/liberator/Makefile b/net-p2p/liberator/Makefile
deleted file mode 100644
index 67cfacbdcab2..000000000000
--- a/net-p2p/liberator/Makefile
+++ /dev/null
@@ -1,59 +0,0 @@
-PORTNAME= liberator
-PORTVERSION= 2.0.2
-PORTREVISION= 2
-CATEGORIES= net-p2p
-MASTER_SITES= SF/${PORTNAME}/ofcp/ofcp-${PORTVERSION}
-DISTNAME= ofcp-${PORTVERSION}
-
-MAINTAINER= ports@FreeBSD.org
-COMMENT= Command line client to FreeNet Network
-WWW= https://sourceforge.net/projects/liberator/
-
-LICENSE= LGPL21+
-LICENSE_FILE= ${WRKSRC}/COPYING
-
-DEPRECATED= Abandoned project with last release in 2003
-EXPIRATION_DATE=2024-03-31
-
-USES= tar:bzip2
-USE_OCAML= yes
-USE_OCAML_CAMLP4=yes
-ALL_TARGET= all opt
-MAKE_JOBS_UNSAFE=yes
-
-DATA_FILES= liber_mimetypes
-DOC_FILES= COPYING FREESITE-HOWTO README TODO
-LIB_FILES= fcp.cma hlfi.cma asfi.cma fcp.cmxa hlfi.cmxa asfi.cmxa \
- fcp.mli hlfreenet.mli asfreenet.mli fieldset.mli \
- fstream.mli \
- fcp.cmi hlfreenet.cmi asfreenet.cmi fieldset.cmi \
- fstream.cmi
-
-OPTIONS_DEFINE= DOCS
-
-post-patch:
- @${SED} -e 's|%%PREFIX%%|${PREFIX}|; \
- s|%%DATADIR%%|${DATADIR:S,^${PREFIX}/,,}|' \
- ${FILESDIR}/wrapper.sh > ${WRKDIR}/wrapper.sh
-
-do-configure:
- @${REINPLACE_CMD} -E \
- -e 's|^(PREFIX).*$$|\1=${PREFIX}|; \
- s|^(OCAML_PREFIX).*$$|\1=${PREFIX}/lib/ocaml|' \
- ${WRKSRC}/Makefile
-
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/liber ${STAGEDIR}${PREFIX}/bin/liber-real
- ${INSTALL_SCRIPT} ${WRKDIR}/wrapper.sh ${STAGEDIR}${PREFIX}/bin/liber
- @${MKDIR} ${STAGEDIR}${DATADIR}
- ${INSTALL_DATA} ${DATA_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DATADIR}
- @${MKDIR} ${STAGEDIR}${PREFIX}/lib/ocaml
- ${INSTALL_DATA} ${LIB_FILES:S|^|${WRKSRC}/|} \
- ${STAGEDIR}${PREFIX}/lib/ocaml
-
-do-install-DOCS-on:
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR}
-
-.include <bsd.port.mk>
diff --git a/net-p2p/liberator/distinfo b/net-p2p/liberator/distinfo
deleted file mode 100644
index f27bc53e7f52..000000000000
--- a/net-p2p/liberator/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (ofcp-2.0.2.tar.bz2) = 50789e0373b2e33a5d6e82c801d67071ba11ace91f8ff0f8f4459ef981f6534b
-SIZE (ofcp-2.0.2.tar.bz2) = 62878
diff --git a/net-p2p/liberator/files/patch-immutable-strings b/net-p2p/liberator/files/patch-immutable-strings
deleted file mode 100644
index 9f9262637989..000000000000
--- a/net-p2p/liberator/files/patch-immutable-strings
+++ /dev/null
@@ -1,141 +0,0 @@
---- config.ml.orig 2003-04-09 23:32:54 UTC
-+++ config.ml
-@@ -381,7 +381,7 @@ class configure ~defaults ~files ~required =
- let len = in_channel_length file in
- let data = String.create len in
- really_input file data 0 len;
-- let tokens = tokenize data in
-+ let tokens = tokenize (Bytes.to_string data) in
- if not default then
- self#parse_tokens tokens
- else self#parse_tokens_default tokens
---- fcp.ml.orig 2003-04-09 23:32:54 UTC
-+++ fcp.ml
-@@ -82,7 +82,7 @@ class transact connect = object (self)
- begin try really_input in_chan data 0 len
- with Sys_error _ -> raise Io_error
- end;
-- data
-+ Bytes.to_string data
- end
- method private recv_soft len =
- if not opened then raise Closed
-@@ -91,7 +91,7 @@ class transact connect = object (self)
- let rlen =
- try input in_chan data 0 len
- with Sys_error _ -> raise Io_error
-- in String.sub data 0 rlen
-+ in Bytes.sub_string data 0 rlen
- method private recv_line =
- if not opened then raise Closed
- else try input_line in_chan
---- fstream.ml.orig 2003-04-09 23:32:54 UTC
-+++ fstream.ml
-@@ -18,8 +18,8 @@ class virtual fstream_in =
- method virtual input_line : string
- method virtual input : int -> string
- method virtual really_input : int -> string
-- method virtual input_buf : string -> int -> int -> int
-- method virtual really_input_buf : string -> int -> int -> unit
-+ method virtual input_buf : bytes -> int -> int -> int
-+ method virtual really_input_buf : bytes -> int -> int -> unit
- method virtual seek : int -> unit
- method virtual pos : int
- end
-@@ -34,7 +34,7 @@ class fstream_in_channel chan =
- let buf = String.create len in
- let len_read = input chan buf 0 len in
- if len_read > 0 then
-- String.sub buf 0 len_read
-+ Bytes.sub_string buf 0 len_read
- else
- if self#pos = self#length then
- raise End_of_file
-@@ -42,7 +42,7 @@ class fstream_in_channel chan =
- method really_input len =
- let buf = String.create len in
- really_input chan buf 0 len;
-- buf
-+ Bytes.to_string buf
- method input_buf buf off len =
- try input chan buf off len
- with Invalid_argument _ ->
-@@ -165,7 +165,7 @@ class fstream_out_channel chan =
- inherit fstream_out
- method output_char ch = output_char chan ch
- method output_string data = output_string chan data
-- method output_buf buf off len = output chan buf off len
-+ method output_buf buf off len = output chan (Bytes.of_string buf) off len
- method output_byte byte = output_byte chan byte
- method clear = seek_out chan 0
- end
---- fstream.mli.orig 2003-04-09 23:32:54 UTC
-+++ fstream.mli
-@@ -17,8 +17,8 @@ class virtual fstream_in : object
- method virtual input_line : string
- method virtual input : int -> string
- method virtual really_input : int -> string
-- method virtual input_buf : string -> int -> int -> int
-- method virtual really_input_buf : string -> int -> int -> unit
-+ method virtual input_buf : bytes -> int -> int -> int
-+ method virtual really_input_buf : bytes -> int -> int -> unit
- method virtual seek : int -> unit
- method virtual pos : int
- end
-@@ -29,8 +29,8 @@ class fstream_in_channel : in_channel -> object
- method input_line : string
- method input : int -> string
- method really_input : int -> string
-- method input_buf : string -> int -> int -> int
-- method really_input_buf : string -> int -> int -> unit
-+ method input_buf : bytes -> int -> int -> int
-+ method really_input_buf : bytes -> int -> int -> unit
- method seek : int -> unit
- method pos : int
- end
-@@ -42,8 +42,8 @@ class fstream_in_string : string -> object
- method input_line : string
- method input : int -> string
- method really_input : int -> string
-- method input_buf : string -> int -> int -> int
-- method really_input_buf : string -> int -> int -> unit
-+ method input_buf : bytes -> int -> int -> int
-+ method really_input_buf : bytes -> int -> int -> unit
- method seek : int -> unit
- method pos : int
- end
---- hlfreenet.ml.orig 2003-04-09 23:32:54 UTC
-+++ hlfreenet.ml
-@@ -653,8 +653,8 @@ let rec insert node_info uri htl map stream =
- let len = stream#input_buf buf 0 node_info.nin_block_len in
- if len > 0 then begin
- if len = node_info.nin_block_len then
-- transact#block buf
-- else transact#block (String.sub buf 0 len);
-+ transact#block (Bytes.to_string buf)
-+ else transact#block (Bytes.sub_string buf 0 len);
- step ()
- end else ()
- with
-@@ -820,8 +820,8 @@ let generate_chk node_info map (stream : fstream_in) =
- let len = stream#input_buf buf 0 node_info.nin_block_len in
- if len > 0 then begin
- if len = node_info.nin_block_len then
-- transact#block buf
-- else transact#block (String.sub buf 0 len);
-+ transact#block (Bytes.to_string buf)
-+ else transact#block (Bytes.sub_string buf 0 len);
- step ()
- end else ()
- with
---- liber.ml.orig 2003-04-09 23:32:54 UTC
-+++ liber.ml
-@@ -463,7 +463,7 @@ let basic_metadata conf (log : Log.log_type) =
- let buf = String.create len in
- really_input channel buf 0 len;
- close_in channel;
-- fields_parse buf
-+ fields_parse (Bytes.to_string buf)
- with Sys_error _ ->
- raise (Die_msg ("cannot open or read metadata file " ^ file))
- end
diff --git a/net-p2p/liberator/files/wrapper.sh b/net-p2p/liberator/files/wrapper.sh
deleted file mode 100644
index 025b61532613..000000000000
--- a/net-p2p/liberator/files/wrapper.sh
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-
-PREFIX="%%PREFIX%%"
-PROGRAM="${0}"
-DATADIR="%%DATADIR%%"
-MIME_FILE=liber_mimetypes
-
-if [ ! -f ${MIME_FILE} ]
-then
- cp -f ${PREFIX}/${DATADIR}/${MIME_FILE} \
- ${HOME}/.${MIME_FILE}
-fi
-
-exec ${PREFIX}/bin/${PROGRAM##*/}-real "${@}"
diff --git a/net-p2p/liberator/pkg-descr b/net-p2p/liberator/pkg-descr
deleted file mode 100644
index 43bc9b5bea43..000000000000
--- a/net-p2p/liberator/pkg-descr
+++ /dev/null
@@ -1,2 +0,0 @@
-Liberator is the Unix guru's command line interface to the FreeNet
-network, inserting and requesting easily and efficiently.
diff --git a/net-p2p/liberator/pkg-plist b/net-p2p/liberator/pkg-plist
deleted file mode 100644
index 4082e5b7d4d1..000000000000
--- a/net-p2p/liberator/pkg-plist
+++ /dev/null
@@ -1,24 +0,0 @@
-bin/liber
-bin/liber-real
-lib/ocaml/asfi.cma
-lib/ocaml/asfi.cmxa
-lib/ocaml/asfreenet.cmi
-lib/ocaml/asfreenet.mli
-lib/ocaml/fcp.cma
-lib/ocaml/fcp.cmi
-lib/ocaml/fcp.cmxa
-lib/ocaml/fcp.mli
-lib/ocaml/fieldset.cmi
-lib/ocaml/fieldset.mli
-lib/ocaml/fstream.cmi
-lib/ocaml/fstream.mli
-lib/ocaml/hlfi.cma
-lib/ocaml/hlfi.cmxa
-lib/ocaml/hlfreenet.cmi
-lib/ocaml/hlfreenet.mli
-%%PORTDOCS%%%%DOCSDIR%%/index.html
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/FREESITE-HOWTO
-%%PORTDOCS%%%%DOCSDIR%%/README
-%%PORTDOCS%%%%DOCSDIR%%/TODO
-%%DATADIR%%/liber_mimetypes