From f1cbe4adc0ea607d92e29086a8c3af7c89f85bee Mon Sep 17 00:00:00 2001 From: James Crayne Date: Wed, 16 Oct 2019 04:09:02 +0000 Subject: Fix build and update the cabal file * Remove some old references to bittorrent package * Update package description * Reboot the ChangeLog --- dht/ChangeLog | 116 ++------------------------------------------------- dht/dht-client.cabal | 35 +++++++--------- 2 files changed, 19 insertions(+), 132 deletions(-) (limited to 'dht') diff --git a/dht/ChangeLog b/dht/ChangeLog index 60a1006c..59cdd824 100644 --- a/dht/ChangeLog +++ b/dht/ChangeLog @@ -1,115 +1,5 @@ -2014-02-19 Sam Truzjan +# Revision history for dht-client - krpc 0.6.0.0 +## 0.0.0.4 -- YYYY-mm-dd - API changes: - - * Added isActive: this predicate can be used to implement - MonadActive instance and useful for resource - initialization/finalization sanity check. - -2014-01-08 Sam Truzjan - - krpc 0.6.0.0: Logging + exceptions. - - API changes: - - * MonadLogger is superclass of MonadKRPC; - * KError hidden from Network.KRPC; - * HandlerFailure added; - * QueryFailure and getQueryCount added. - -2013-12-25 Sam Truzjan - - krpc 0.5.0.0: Major API changes. - - * Added transaction handling; - * Use the same socket for server and client; - * New query function will infer query method from request/response - datatypes. - * Added MonadKRPC and KRPC classes. - -2013-11-26 Sam Truzjan - - krpc - - * 0.4.1.1: Fixed build failure on GHC == 7.4.* - -2013-11-25 Sam Truzjan - - bittorrent - - * Version 0.0.0.3 - * use Pretty class from pretty-class package; - * Data.Torrent.Client.hs: - * /tests/: fixed; - -2013-11-21 Sam Truzjan - - bittorrent - - Version 0.0.0.2 - - * InfoHash.hs: added rendering to Text. - * Torrent.hs: added pretty printing and content type. - * Magnet.hs: added constructors from Torrent datatype. - * New: added Data.Torrent.Client, Data.Torrent.Progress, - Network.Bittorrent.Core.PeerId, Network.BitTorrent.PeerAddr - modules. - -2013-11-01 Sam Truzjan - - bittorrent - - Initial version: 0.0.0.1 - -2013-10-17 Sam Truzjan - - krpc - - * 0.4.1.0: Use bencoding-0.4.* - -2013-10-03 Sam Truzjan - - krpc - - * 0.4.0.1: Minor documentation fixes. - -2013-10-03 Sam Truzjan - - krpc - - * 0.4.0.0: IPv6 support. - -2013-09-28 Sam Truzjan - - krpc - - * 0.3.0.0: Use bencoding-0.3.* - * Rename Remote.* to Network.* modules. - -2013-09-28 Sam Truzjan - - krpc - - * 0.2.2.0: Use bencoding-0.2.2.* - -2013-08-27 Sam Truzjan - - krpc - - * 0.2.0.0: Async API have been removed, use /async/ package - instead. - * Expose caller address in handlers. - -2013-07-09 Sam Truzjan - - krpc - - * 0.1.1.0: Allow passing raw argument\/result dictionaries. - -2013-07-09 Sam Truzjan - - krpc - - * 0.1.0.0: Initial version. +* First version. Released on an unsuspecting world. diff --git a/dht/dht-client.cabal b/dht/dht-client.cabal index 65900d65..3a513280 100644 --- a/dht/dht-client.cabal +++ b/dht/dht-client.cabal @@ -8,30 +8,25 @@ copyright: (c) 2017 Joe Crayne, (c) 2017 James Crayne, (c) 2013 Sam category: Network build-type: Custom cabal-version: >= 1.10 -tested-with: GHC == 8.0.2, GHC == 7.10.3 -homepage: https://github.com/cobit/bittorrent -bug-reports: https://github.com/cobit/bittorrent/issues -synopsis: BitTorrent DHT protocol implementation. +synopsis: BitTorrent and Tox DHT. description: - A library for making Haskell bittorrent applications easy. - . - For more information see: - + This package provides, in the form of a unix daemon, both the tox and bittorrent + Distributed Hash Tables. Both of these DHT's are implementations of the Kademlia + algorithm. Although, there is also a library in this package, it is really just a + shared interface between the two executables this package provides: dhtd and dht. -extra-source-files: ChangeLog - cbits/*.h + If you want to make a peer to peer application that uses this code, the proper way + to do it is to start the dhtd server, and use the dht program as a means to communicate + with it over a unix domain socket. + Users who do wish to use the modules exported by the library should be aware that the + API of these modules may change without notice and may vary depending on the selection + of cabal flags. -source-repository head - type: git - location: git://github.com/cobit/bittorrent.git +extra-source-files: ChangeLog + cbits/*.h -source-repository this - type: git - location: git://github.com/cobit/bittorrent.git - branch: master - tag: v0.0.0.4 flag network-uri description: Use network-uri package. @@ -159,7 +154,8 @@ library build-depends: base , containers - , dependent-sum + -- TODO: Use GShow,Has 'Show, when dependent-sum>0.6 + , dependent-sum < 0.6 , array , hashable , iproute @@ -168,6 +164,7 @@ library , stm-chans , concurrent-supply , base16-bytestring + -- TODO: FIXME: Using non-hackage base32-bytestring from eth-r's github , base32-bytestring , base64-bytestring , psqueues -- cgit v1.2.3