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 # matt | MatterLinux package manager
Simple MPTP server implementation for serving MatterLinux package pools. The new MatterLinux package manager (successor of mp), built on top of [`libmp`](https://git.matterlinux.xyz/Matter/libmp).
Built on top of [`libmp`](https://git.matterlinux.xyz/Matter/libmp).
### Installation ### Installation
If you are using MatterLinux, this package should be avaliable on the `desktop` If you are using MatterLinux, since it's a core part of the system, this package should
repo, and you can install it with the package manager. If you are not using already be installed If you are not using MatterLinux you can build it from the source and install it.
MatterLinux you can build it from the source and install it.
To this you will need the following tools and libraries: To this you will need the following tools and libraries:
- gcc - gcc
@ -29,15 +27,10 @@ To install the binary and the configuration files, you can use the `install` com
make install make install
``` ```
You can also build the program using docker:
```bash
docker build --tag pooler .
```
### Usage ### Usage
To start a serving pools, specify a configuration file, default configuration file is To get simple usage information, just run the program without any arguments or commands:
installed in the `/etc/pooler` directory:
```bash ```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 <libmp/all.h>
#include <stdbool.h> #include <stdbool.h>
#include "config.h"
#include "args.h" #include "args.h"
#include "config.h"
typedef bool (*cmd_func_t)(lm_ctx_t *ctx, config_t *config, args_t *args); 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 <stdarg.h>
#include <string.h> #include <stdbool.h>
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <stdio.h> #include <sys/ioctl.h>
#include <time.h> #include <time.h>
#include <unistd.h> #include <unistd.h>

View File

@ -26,13 +26,13 @@
#include <libmp/ctx.h> #include <libmp/ctx.h>
#include <libmp/error.h> #include <libmp/error.h>
#include <libmp/util.h> #include <libmp/util.h>
#include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
#include "config.h"
#include "args.h" #include "args.h"
#include "intl.h"
#include "cmd.h" #include "cmd.h"
#include "config.h"
#include "intl.h"
#include "log.h" #include "log.h"
int main(int argc, char *argv[]) { 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(_("To list different options, use commands with " FG_BOLD "--help" FG_RESET " option"));
info(_("Here is a list of available global options:")); 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")); 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")); info(_("Licensed under GPLv3, see https://www.gnu.org/licenses/ for more information"));