Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bacher09/darkplaces-rcon

Rcon client for darkplaces
https://github.com/bacher09/darkplaces-rcon

darkplaces haskell nexuiz rcon-client xonotic

Last synced: 2 months ago
JSON representation

Rcon client for darkplaces

Awesome Lists containing this project

README

        

This is meta repository for haskell packages that's related
to darkplaces or quakes rcon protocol.
Currently it contains these packages:

* darkplaces-rcon — library for darkplaces rcon protocol
* [darkplaces-rcon-util][drcon] — client rcon utility

## Building from sources

These instructions will assume that you want to build all
repos hosted in this meta-repo.
First you need to install these tools:

* [GHC] >= 7.4 (recommended GHC >= 7.8)
* cabal-install — haskell package manager
* [Alex] — haskell lexer generator (same thing as C's lex)
* C compliller — required for compiling some dependent packages

Also you can choose easy way and install [Haskell Platform]
that contains all these components (except C compiler).

Now you may create build folder, clone repo and some
depended repo's and build packages.

$ mkdir build && cd build
$ export BUILD_DIR=$(pwd)
$ git clone https://github.com/bacher09/darkplaces-rcon.git
$ git clone https://github.com/bacher09/darkplaces-text.git
$ cabal sandbox init
$ cabal sandbox add-source $BUILD_DIR/darkplaces-rcon/darkplaces-text/
$ cabal sandbox add-source $BUILD_DIR/darkplaces-rcon/darkplaces-rcon/
$ cabal sandbox add-source $BUILD_DIR/darkplaces-rcon/darkplaces-rcon-util/

After this commands you will see folder `.cabal-sandbox` and file `cabal.sandbox.config`.
Folder `.cabal-sandbox` is place where packages and binaries will be installed after build.
Now you can build and install these packages.

$ cabal install darkplaces-rcon
$ cabal install darkplaces-rcon-util

If you want to reinstall package you can add `--reinstall` flag to cabal.

$ cabal install --reinstall darkplaces-rcon-util

You can find binary in `.cabal-sanbox/bin/` folder.
If you'd like to call `drcon` util without providing full path
you can add it to yours PATH environment variable.

$ export PATH=$BUILD_DIR/.cabal-sandbox/bin/:$PATH

[Haskell platform]: https://www.haskell.org/platform/
[GHC]: https://www.haskell.org/ghc/
[Alex]: https://www.haskell.org/alex/
[drcon]: ./darkplaces-rcon-util/README.md