Giter Site home page Giter Site logo

william3johnson / pmanager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaosx/pmanager

0.0 1.0 1.0 6.46 MB

Packages viewer & Mirrors status used by KaOS

Home Page: https://kaosx.us/packages/index.php

License: The Unlicense

PHP 24.97% Go 66.20% CSS 8.45% Hack 0.38%

pmanager's Introduction

pmanager

Packages viewer & Mirrors status used by KaOS

Installation

Required : Go ≥ 1.17, sqlite3

go build -o pmanager pmanager.go

Configuration

Configuration is set at first launch of pmanager. It is located at /etc/pmanager/pmanager.conf.

Configuration variables :

  • main section :
    • debug : (0|1) → Displays more output informations on debug and display not minified json
    • viewurl : URL of the frontend package viewer
    • repourl : Main repository
    • giturl : base URL of the github repository
    • logfile : file descriptor where to store the log (can be a file path, stdout (for standard output) or stderr (for standard error))
  • database section :
    • uri : file path of the sqlite file
  • repository section :
    • basedir : local folder where the packages repositories are stored
    • include : subfolders to include from analysis on update repositories databases action
    • exclude : subfolders to exclude from analysis on update repositories databases action
    • extension : suffix of the files where are stored packages informations of a repository
  • api section :
    • port : port where the webserver api is launched
    • pagination : default number of results to return at a request
  • smtp section :
    • host : smtp server
    • port : port of the smtp (usually 587 or 465)
    • use_encryption : (1|0) if 1, send email through STARTTLS
    • user : smtp user
    • password : smtp password
    • send_to : email address where the flag notifications are sent
    • send_from : email address used for the field “From:” of the notification emails
  • mirror section :
    • main_mirror : base URL of the main mirror
    • mirrorlist : file where the list of the mirrors are set (can be a remote url or a locale file path)
    • pacmanconf : pacman configuration file (used to get the repos list – can be a remote url or a locale file path)

Available subcommands

  • update-repos : update the packages repositories database
  • update-mirrors : update the mirrors status database
  • update-all : update repos & mirrors
  • serve : launch the webserver API (needed for the frontend)
  • flag : launch an interactive prompt to manage the flagged packages
  • test-mail : used to check the email configuration

All commands can be launched with the following options :

  • --debug : force the debug mode whatever the configuration
  • --no-debug : remove the debug mode whatever the configuration
  • --log  : override the log destination with the given file descriptor

pmanager's People

Contributors

bvaudour avatar demmm avatar

Watchers

 avatar

Forkers

inferno-inc

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.