Mercurial > nsnake
diff INSTALL.md @ 1:0e0ee35dae66
Add post install script to chown binary and directory
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 25 Feb 2016 11:41:15 +0100 |
parents | 85dcf82636b2 |
children | 137ead4860a0 |
line wrap: on
line diff
--- a/INSTALL.md Thu Feb 25 10:03:06 2016 +0100 +++ b/INSTALL.md Thu Feb 25 11:41:15 2016 +0100 @@ -14,13 +14,11 @@ Go to the source directory and type the following commands -```` -mkdir _build_ -cd _build_ -cmake .. -DCMAKE_BUILD_TYPE=Release -make -make install -```` + mkdir _build_ + cd _build_ + cmake .. -DCMAKE_BUILD_TYPE=Release + make + make install See the CMake documentation for other generators. @@ -39,8 +37,26 @@ Example: -```` -cmake .. -DWITH_DOCS=Off -DWITH_MANDIR=man -```` + cmake .. -DWITH_DOCS=Off -DWITH_MANDIR=man + +Scores file +----------- + +NSnake uses a scores file in order to share all users scores on the same machine. In order to work, nsnake is +installed with setgid bit set and **games** as user and group. + +The directory for saving the scores is writable by this group to make sure the executable can write it from any user. + +You can adjust the user, group and scores directory with the following options: -[CMake]: http://cmake.org \ No newline at end of file + - **WITH_USER**: the uid passed in `chown` command, + - **WITH_GROUP**: the gid passed in `chown` command, + - **WITH_DBDIR**: the directory where to store the scores file. + +Note: these options have no effects on Windows. + +Example: + + cmake .. -DWITH_USER=nobody -DWITH_GROUP=nobody -DWITH_DBDIR=/var/cache/nsnake + +[CMake]: http://cmake.org