Skip to content

A package manager for architecture, aimed to build distribution

Notifications You must be signed in to change notification settings

Pixailz/dot_mngr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot_mngr

Features

Build a package

Thanks to the command.py file, you can build a package by defining the following functions:

  • configure to configure the package
  • compile to compile the package
  • check to check the package
  • install to install the package

Here's a simple example of a command.py file:

#!/usr/bin/env python3

from dot_mngr import *

def configure(self):
	self.chroot()
	self.cmd_run(
		 "./configure"
		f" --prefix={PREFIX}"
		 " --disable-static"
	)

def compile(self):
	self.cmd_run("make")

def check(self):
	self.cmd_run("make check")

def install(self):
	self.cmd_run("make install")

Update repo

Getting newer link to a tarball providing a link or a value to scrap, wich fit the best with one of the following scrap techniques:

  • apache
  • apache_dir
  • apache_no_sort
  • github
  • github_tag
  • gitlab
  • website
  • fossies
  • fossies_search
  • pypi
  • sourceforge
  • no_scrap

Associated with a prefix and a suffix, dot_mngr will return the link and the version of the newer package.

here is some exemple of meta.json from the main repos:

  • main@acl for a files section:

    • value with a / will be considered as a path to a file
    • others are considered as a cmd found in the PATH environment variable
  • main@coreutils for a patchs section:

    • with a patch name, for later reference
    • and a link to the patch

Note

Try resolve dependencies for this package ;)

  • blfs@1_cryptsetup for a dependencies section:

    • with a section required that, for the moment, regroup required, run and build time, as well as recommended packages
  • lfs@1_linux for a reference section:

    • package with reference merge the meta.json of the current package on top of the reference package

TODO

P1

P2

  1. the doc
  2. differences occure when package configure in /etc/passwd and /etc/group more generally, allow modification on /etc/passwd and /etc/group

P3

  1. workflows to update repo:
  2. split repo folder into githubs, referencing package as needed, provide with template, actions can update repo
  3. Some test are not correctly checked and therefore considered as good
    1. Register check/test that don't pass
  4. Review systemd unit install

P4

  1. meta.json: reference of reference not working
 'blfs@1_dbus']

About

A package manager for architecture, aimed to build distribution

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages