Open ericbsd opened 3 years ago
Is this a standalone application or part of software station?
It is standalone, because it can be used for both Software Station and Update Station.
issue moved from ghostbsd/ghostbsd-src to ghostbsd/issues
https://github.com/repent-or-perish/PkgRepoSelector
I created this package repository change tool. It works as both a gui and cli tool.
I have updated the description.
I would suggest removing the requirement to depend on default configurations found in /usr/local/etc/pkg/repos. Instead, we could have the application define what the correct configuration should be, then apply the correct setting to the appropriate file. The reason for this would be to prevent tampering or user misconfiguration.
Here is an example of how the application could define the correct configuration.
def load_repos(): repos = { "GhostBSD_Unstable": ("http://pkg.ghostbsd.org/unstable/${ABI}/latest", "http://pkg.ghostbsd.org/unstable/${ABI}/base"), "GhostBSD_CA": ("https://pkg.ca.ghostbsd.org/stable/${ABI}/latest", "https://pkg.ca.ghostbsd.org/stable/${ABI}/base"), "GhostBSD": ("https://pkg.ghostbsd.org/stable/${ABI}/latest", "https://pkg.ghostbsd.org/stable/${ABI}/base"), "GhostBSD_FR": ("https://pkg.fr.ghostbsd.org/stable/${ABI}/latest", "https://pkg.fr.ghostbsd.org/stable/${ABI}/base"), "GhostBSD_NO": ("http://pkg.no.ghostbsd.org/stable/${ABI}/latest", "http://pkg.no.ghostbsd.org/stable/${ABI}/base"), "GhostBSD_ZA": ("https://pkg.za.ghostbsd.org/stable/${ABI}/latest", "https://pkg.za.ghostbsd.org/stable/${ABI}/base") } return repos
I have made a working prototype named "software-properties-station" at https://github.com/vimanuelt/software-properties-station
We could bring that in.
Here is the repository https://github.com/ghostbsd/software-properties-station
Thanks. I submitted a PR for the initial commit of the working prototype.
Description:
This ticket focuses on starting the development of a tool called
software-properties-station
, which will provide functionality similar to Ubuntu'ssoftware-properties
. Initially, the tool will only manage the package repositories for the system.Scope:
/usr/local/etc/pkg/repos/
.Initial Functionality:
/usr/local/etc/pkg/repos/
.Acceptance Criteria:
Repository Listing
The tool can list all available package repositories (e.g., official, custom, or third-party) found in
/usr/local/etc/pkg/repos/
.Repository Enabling/Disabling
The tool can enable or disable specific repositories by copying the correct configuration files to
/usr/local/etc/pkg/repos/
.CLI Interface
A command-line interface (CLI) is available to interact with the tool, allowing the user to list, enable, or disable repositories easily.
Port Creation
A port is created for
software-properties-station
so that the tool can be installed and managed through the package system.