update: fix README information

This commit is contained in:
ngn 2024-07-16 20:38:58 +03:00
parent aeb375e8d3
commit 91f513132b
9 changed files with 106 additions and 113 deletions

View File

@ -1,11 +1,9 @@
# matt | MatterLinux package manager
Simple MPTP server implementation for serving MatterLinux package pools.
Built on top of [`libmp`](https://git.matterlinux.xyz/Matter/libmp).
The new MatterLinux package manager (successor of mp), built on top of [`libmp`](https://git.matterlinux.xyz/Matter/libmp).
### Installation
If you are using MatterLinux, this package should be avaliable on the `desktop`
repo, and you can install it with the package manager. If you are not using
MatterLinux you can build it from the source and install it.
If you are using MatterLinux, since it's a core part of the system, this package should
already be installed If you are not using MatterLinux you can build it from the source and install it.
To this you will need the following tools and libraries:
- gcc
@ -29,15 +27,10 @@ To install the binary and the configuration files, you can use the `install` com
make install
```
You can also build the program using docker:
```bash
docker build --tag pooler .
```
### Usage
To start a serving pools, specify a configuration file, default configuration file is
installed in the `/etc/pooler` directory:
To get simple usage information, just run the program without any arguments or commands:
```bash
pooler /etc/pooler/config.ini
matt
```
To learn more about configuration options, see this MatterLinux [wiki page](https://matterlinux.xyz/wiki/pooler).
To learn more about usage of this program and the configuration options,
see this MatterLinux [wiki page](https://matterlinux.xyz/wiki/matt).

View File

@ -2,8 +2,8 @@
#include <libmp/all.h>
#include <stdbool.h>
#include "config.h"
#include "args.h"
#include "config.h"
typedef bool (*cmd_func_t)(lm_ctx_t *ctx, config_t *config, args_t *args);

View File

@ -1,10 +1,9 @@
#include <sys/ioctl.h>
#include <stdbool.h>
#include <stdarg.h>
#include <string.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <time.h>
#include <unistd.h>

View File

@ -26,13 +26,13 @@
#include <libmp/ctx.h>
#include <libmp/error.h>
#include <libmp/util.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "args.h"
#include "intl.h"
#include "cmd.h"
#include "config.h"
#include "intl.h"
#include "log.h"
int main(int argc, char *argv[]) {
@ -117,7 +117,8 @@ help:
info(_("To list different options, use commands with " FG_BOLD "--help" FG_RESET " option"));
info(_("Here is a list of available global options:"));
printf(_(" "FG_BOLD"--config"FG_RESET":\t specify the configuration file (default is /etc/matt/config.ini)\n"));
printf(
_(" " FG_BOLD "--config" FG_RESET ":\t specify the configuration file (default is /etc/matt/config.ini)\n"));
printf(_(" " FG_BOLD "--root" FG_RESET ":\t specify a custom root directory (default is /)\n\n"));
info(_("Licensed under GPLv3, see https://www.gnu.org/licenses/ for more information"));