Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] Install a Configuration package type with paket install #9

Open
8 tasks
eminfedar opened this issue Oct 13, 2023 · 0 comments
Open
8 tasks

[Task] Install a Configuration package type with paket install #9

eminfedar opened this issue Oct 13, 2023 · 0 comments
Assignees
Labels
paket-cli This is related to paket-cli Task a Task in Project

Comments

@eminfedar
Copy link
Contributor

eminfedar commented Oct 13, 2023

Description:
a local .paket file builded with Configuration type should be installable with this usage:

paket install paket-name_1.0.0.paket

Configuration type means "just copy the files inside the paket to their regarding paths in the system":

  • {PaketRoot}/etc/X11/xorg.conf -> /etc/X11/xorg.conf
  • {PaketRoot}/$USER_HOME/.config/monitors.xml -> /home/my-user/.config/monitors.xml (accessing the home folder of the current user by creating a "$USER_HOME" folder)
  • {PaketRoot}/$ALL_USERS_HOMES/.config/monitors.xml -> [
    "/home/my-user/.config/monitors.xml",
    "/home/user2/.config/monitors.xml",
    "/home/another-user/.config/monitors.xml",
    ]
    (accessing the home folders of all users by creating a "$ALL_USERS_HOMES")

Details of how installation works: #10

Acceptance Criteria:

  • Local paket can be installed successfully.
  • Installed pakets are stored in /var folder.
  • Upgrading or Downgrading for same package.
  • SHA256SUM check before installation
  • Files in $USER_HOME must be owned by the installer user, not root.
  • Files in $ALL_USERS_HOMES must owned by each different user, not root or installer user.
  • Tests are passing.
  • Documentations on every struct, property and function is written with ///. There should be a description and a small example usage.

Implementation Details:

// Some example code about how it will work
@eminfedar eminfedar added the Task a Task in Project label Oct 13, 2023
@eminfedar eminfedar added this to the Installing a Paket milestone Oct 13, 2023
@eminfedar eminfedar added the paket-cli This is related to paket-cli label Oct 13, 2023
@eminfedar eminfedar changed the title [Task] [Task] Install a Configuration package type with paket install [Task] Install a Configuration package type with paket install Oct 13, 2023
@eminfedar eminfedar self-assigned this Oct 23, 2023
eminfedar added a commit that referenced this issue Oct 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paket-cli This is related to paket-cli Task a Task in Project
Projects
Status: In Progress
Development

No branches or pull requests

1 participant