mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-18 10:26:29 +01:00
Added Microlinux mles repository
This commit is contained in:
parent
f04262107c
commit
61d301e376
9 changed files with 71 additions and 16 deletions
|
@ -211,6 +211,9 @@ Default available Repositories:
|
||||||
- `Connochaetos (Slack-n-Free) <https://connochaetos.org/slack-n-free/>`_
|
- `Connochaetos (Slack-n-Free) <https://connochaetos.org/slack-n-free/>`_
|
||||||
Arch: {x86, x86_64}
|
Arch: {x86, x86_64}
|
||||||
Versions: {14,1, 14.2}
|
Versions: {14,1, 14.2}
|
||||||
|
- `Microlinux mles <http://www.microlinux.fr/microlinux/>`_
|
||||||
|
Arch: {x86, x86_64}
|
||||||
|
Versions: {14,1, 14.2}
|
||||||
|
|
||||||
|
|
||||||
* Choose default repositories you need to work from file '/etc/slpkg/repositories.conf' default
|
* Choose default repositories you need to work from file '/etc/slpkg/repositories.conf' default
|
||||||
|
|
|
@ -27,7 +27,7 @@ dependencies.
|
||||||
Slonly repository do not support -current for x86 arch.
|
Slonly repository do not support -current for x86 arch.
|
||||||
|
|
||||||
Alien's ktown (ktown), Alien's multilib (multi), Slacke E17 and E18, slack-n-free, csb,
|
Alien's ktown (ktown), Alien's multilib (multi), Slacke E17 and E18, slack-n-free, csb,
|
||||||
and Alien's restricted repository has no reference dependencies.
|
mles and Alien's restricted repository has no reference dependencies.
|
||||||
|
|
||||||
IMPORTANT: For Alien's (Eric Hameleers) repositories (alien, multi and ktown) should run
|
IMPORTANT: For Alien's (Eric Hameleers) repositories (alien, multi and ktown) should run
|
||||||
'slpkg upgrade' instant 'slpkg update', if you want to spend from -stable in -current or not
|
'slpkg upgrade' instant 'slpkg update', if you want to spend from -stable in -current or not
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#
|
#
|
||||||
# Default repositories names:
|
# Default repositories names:
|
||||||
# sbo, slack, rlw, alien, slacky, slackr, slonly, ktown, multi, slacke, salix,
|
# sbo, slack, rlw, alien, slacky, slackr, slonly, ktown, multi, slacke, salix,
|
||||||
# slackl, rested, msb, csb, connor
|
# slackl, rested, msb, csb, connor, mles
|
||||||
# NOTE: Slackware repository (slack) served from file slackware-mirros
|
# NOTE: Slackware repository (slack) served from file slackware-mirros
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -49,3 +49,4 @@
|
||||||
msb http://slackware.org.uk/msb/
|
msb http://slackware.org.uk/msb/
|
||||||
csb http://slackware.uk/csb/
|
csb http://slackware.uk/csb/
|
||||||
connos https://connochaetos.org/slack-n-free/
|
connos https://connochaetos.org/slack-n-free/
|
||||||
|
mles http://www.microlinux.fr/microlinux/
|
||||||
|
|
|
@ -23,10 +23,13 @@
|
||||||
# END OF LEGAL NOTICE
|
# END OF LEGAL NOTICE
|
||||||
#
|
#
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
# slackr (slackers.it) repository must used from Slackware64 current.
|
#
|
||||||
# Ktown (Alien"s ktown 4.14.3 and latest) repository. Default ktown{latest}.
|
# slackr (Conraid's) repository must used from Slackware64 current.
|
||||||
# Slacke (Enlightenment E17 and E18) repository. Default slacke{18}.
|
# ktown (Alien"s ktown: 4.14.3 and latest) repository. Default ktown{latest}.
|
||||||
# MSB (mate 1.14 and 1.16) repository. Default msb{1.16}
|
# slacke (Enlightenment: E17 and E18) repository. Default slacke{18}.
|
||||||
|
# msb (Mate: 1.14, 1.16, latest) repository. Default msb{1.16}
|
||||||
|
# mles (Microlinux: desktop, extras, server) repository. Default mles{desktop}
|
||||||
|
#
|
||||||
# Slackware ARM users will must use only two repositories at the moment slack and sbo.
|
# Slackware ARM users will must use only two repositories at the moment slack and sbo.
|
||||||
#
|
#
|
||||||
# Slpkg uses by default slack (Slackware) and sbo (SlackBuilds.org) repositories.
|
# Slpkg uses by default slack (Slackware) and sbo (SlackBuilds.org) repositories.
|
||||||
|
@ -37,7 +40,7 @@
|
||||||
# Uncomment (remove the '#' character) to choose repositories:
|
# Uncomment (remove the '#' character) to choose repositories:
|
||||||
# Do NOT change the name of the repository.
|
# Do NOT change the name of the repository.
|
||||||
# ----------------------------------------------------------------------------
|
# ----------------------------------------------------------------------------
|
||||||
[REPOSITORIES]
|
# [REPOSITORIES]
|
||||||
slack
|
slack
|
||||||
sbo
|
sbo
|
||||||
# alien
|
# alien
|
||||||
|
@ -54,3 +57,4 @@ sbo
|
||||||
# msb{1.16}
|
# msb{1.16}
|
||||||
# csb
|
# csb
|
||||||
# connos
|
# connos
|
||||||
|
# mles{desktop}
|
||||||
|
|
|
@ -364,6 +364,7 @@ For example:
|
||||||
MATE Desktop Environment = "msb{1.16}"
|
MATE Desktop Environment = "msb{1.16}"
|
||||||
Cinnamon Desktop Environment = "csb"
|
Cinnamon Desktop Environment = "csb"
|
||||||
Connochaetos slack-n-free = "connos"
|
Connochaetos slack-n-free = "connos"
|
||||||
|
Microlinux mles = "mles"
|
||||||
|
|
||||||
Default enable repository is "slack" and "sbo".
|
Default enable repository is "slack" and "sbo".
|
||||||
Add or remove default repository in configuration file "/etc/slpkg/repositories.conf".
|
Add or remove default repository in configuration file "/etc/slpkg/repositories.conf".
|
||||||
|
|
|
@ -61,6 +61,7 @@ def grab_sub_repo(repositories, repos):
|
||||||
sub = repositories[i].replace(repos, "")
|
sub = repositories[i].replace(repos, "")
|
||||||
repositories[i] = repos
|
repositories[i] = repos
|
||||||
return sub
|
return sub
|
||||||
|
return ""
|
||||||
|
|
||||||
|
|
||||||
def select_slack_release(slack_rel):
|
def select_slack_release(slack_rel):
|
||||||
|
@ -100,7 +101,7 @@ class MetaData(object):
|
||||||
"slacky", "slackr", "slonly",
|
"slacky", "slackr", "slonly",
|
||||||
"ktown{latest}", "multi", "slacke{18}",
|
"ktown{latest}", "multi", "slacke{18}",
|
||||||
"salix", "slackl", "rested", "msb{1.16}",
|
"salix", "slackl", "rested", "msb{1.16}",
|
||||||
"csb", "connos"],
|
"csb", "connos", "mles{desktop}"],
|
||||||
"BUILD_PATH": "/tmp/slpkg/build/",
|
"BUILD_PATH": "/tmp/slpkg/build/",
|
||||||
"PACKAGES": "/tmp/slpkg/packages/",
|
"PACKAGES": "/tmp/slpkg/packages/",
|
||||||
"PATCHES": "/tmp/slpkg/patches/",
|
"PATCHES": "/tmp/slpkg/patches/",
|
||||||
|
@ -126,7 +127,7 @@ class MetaData(object):
|
||||||
|
|
||||||
default_repositories = ["slack", "sbo", "rlw", "alien", "slacky", "slackr",
|
default_repositories = ["slack", "sbo", "rlw", "alien", "slacky", "slackr",
|
||||||
"slonly", "ktown", "multi", "slacke", "salix",
|
"slonly", "ktown", "multi", "slacke", "salix",
|
||||||
"slackl", "rested", "msb", "csb", "connos"]
|
"slackl", "rested", "msb", "csb", "connos", "mles"]
|
||||||
|
|
||||||
# read value from configuration file
|
# read value from configuration file
|
||||||
repositories = []
|
repositories = []
|
||||||
|
@ -142,6 +143,7 @@ class MetaData(object):
|
||||||
_conf_slpkg[line.split("=")[0]] = line.split("=")[1]
|
_conf_slpkg[line.split("=")[0]] = line.split("=")[1]
|
||||||
elif files == "repositories.conf":
|
elif files == "repositories.conf":
|
||||||
repositories.append(line)
|
repositories.append(line)
|
||||||
|
|
||||||
# Set values from configuration file
|
# Set values from configuration file
|
||||||
slack_rel = _conf_slpkg["RELEASE"]
|
slack_rel = _conf_slpkg["RELEASE"]
|
||||||
build_path = _conf_slpkg["BUILD_PATH"]
|
build_path = _conf_slpkg["BUILD_PATH"]
|
||||||
|
@ -179,10 +181,10 @@ class MetaData(object):
|
||||||
ktown_kde_repo = grab_sub_repo(repositories, "ktown")
|
ktown_kde_repo = grab_sub_repo(repositories, "ktown")
|
||||||
slacke_sub_repo = grab_sub_repo(repositories, "slacke")
|
slacke_sub_repo = grab_sub_repo(repositories, "slacke")
|
||||||
msb_sub_repo = grab_sub_repo(repositories, "msb")
|
msb_sub_repo = grab_sub_repo(repositories, "msb")
|
||||||
|
mles_sub_repo = grab_sub_repo(repositories, "mles")
|
||||||
|
|
||||||
# remove no default repositories
|
# remove no default repositories
|
||||||
repositories = remove_repositories(repositories, default_repositories)
|
repositories = remove_repositories(repositories, default_repositories)
|
||||||
|
|
||||||
# add custom repositories
|
# add custom repositories
|
||||||
update_repositories(repositories, conf_path)
|
update_repositories(repositories, conf_path)
|
||||||
|
|
||||||
|
|
|
@ -145,3 +145,11 @@ class RepoInit(object):
|
||||||
arch = "64"
|
arch = "64"
|
||||||
self.mirror = "{0}slack-n-free{1}-{2}/".format(
|
self.mirror = "{0}slack-n-free{1}-{2}/".format(
|
||||||
self.def_repo_dict["connos"], arch, slack_ver())
|
self.def_repo_dict["connos"], arch, slack_ver())
|
||||||
|
|
||||||
|
def _init_mles(self):
|
||||||
|
arch = "32"
|
||||||
|
if self.meta.arch == "x86_64":
|
||||||
|
arch = "64"
|
||||||
|
self.mirror = "{0}{1}-{2}-{3}bit/".format(
|
||||||
|
self.def_repo_dict["mles"],
|
||||||
|
self.meta.mles_sub_repo[1:-1], slack_ver(), arch)
|
||||||
|
|
|
@ -56,7 +56,8 @@ class Updates(object):
|
||||||
"rested": self._init.rested,
|
"rested": self._init.rested,
|
||||||
"msb": self._init.msb,
|
"msb": self._init.msb,
|
||||||
"csb": self._init.csb,
|
"csb": self._init.csb,
|
||||||
"connos": self._init.msb
|
"connos": self._init.msb,
|
||||||
|
"mles": self._init.mles
|
||||||
}
|
}
|
||||||
|
|
||||||
def status_bar(self):
|
def status_bar(self):
|
||||||
|
|
|
@ -401,13 +401,14 @@ class Initialization(object):
|
||||||
os.mkdir(lib)
|
os.mkdir(lib)
|
||||||
if arch == "x86_64":
|
if arch == "x86_64":
|
||||||
ar = "64"
|
ar = "64"
|
||||||
|
version = self.meta.slacke_sub_repo[1:-1]
|
||||||
PACKAGES_TXT = "{0}slacke{1}/slackware{2}-{3}/{4}".format(
|
PACKAGES_TXT = "{0}slacke{1}/slackware{2}-{3}/{4}".format(
|
||||||
repo, self.meta.slacke_sub_repo[1:-1], ar, slack_ver(), lib_file)
|
repo, version, ar, slack_ver(), lib_file)
|
||||||
FILELIST_TXT = ""
|
FILELIST_TXT = ""
|
||||||
CHECKSUMS_MD5 = "{0}slacke{1}/slackware{2}-{3}/{4}".format(
|
CHECKSUMS_MD5 = "{0}slacke{1}/slackware{2}-{3}/{4}".format(
|
||||||
repo, self.meta.slacke_sub_repo[1:-1], ar, slack_ver(), md5_file)
|
repo, version, ar, slack_ver(), md5_file)
|
||||||
ChangeLog_txt = "{0}slacke{1}/slackware{2}-{3}/{4}".format(
|
ChangeLog_txt = "{0}slacke{1}/slackware{2}-{3}/{4}".format(
|
||||||
repo, self.meta.slacke_sub_repo[1:-1], ar, slack_ver(), log_file)
|
repo, version, ar, slack_ver(), log_file)
|
||||||
if self.check:
|
if self.check:
|
||||||
return self.checks_logs(log, ChangeLog_txt)
|
return self.checks_logs(log, ChangeLog_txt)
|
||||||
self.down(lib, PACKAGES_TXT, repo_name)
|
self.down(lib, PACKAGES_TXT, repo_name)
|
||||||
|
@ -525,8 +526,7 @@ class Initialization(object):
|
||||||
if arch == "x86_64":
|
if arch == "x86_64":
|
||||||
ar = "x86_64"
|
ar = "x86_64"
|
||||||
version = ""
|
version = ""
|
||||||
if "msb" in self.meta.repositories:
|
version = self.meta.msb_sub_repo[1:-1]
|
||||||
version = self.meta.msb_sub_repo[1:-1]
|
|
||||||
PACKAGES_TXT = "{0}{1}/{2}/{3}/{4}".format(
|
PACKAGES_TXT = "{0}{1}/{2}/{3}/{4}".format(
|
||||||
repo, slack_ver(), version, ar, lib_file)
|
repo, slack_ver(), version, ar, lib_file)
|
||||||
FILELIST_TXT = ""
|
FILELIST_TXT = ""
|
||||||
|
@ -610,6 +610,41 @@ class Initialization(object):
|
||||||
self.remote(log, ChangeLog_txt, lib, PACKAGES_TXT, CHECKSUMS_MD5,
|
self.remote(log, ChangeLog_txt, lib, PACKAGES_TXT, CHECKSUMS_MD5,
|
||||||
FILELIST_TXT, repo_name)
|
FILELIST_TXT, repo_name)
|
||||||
|
|
||||||
|
def mles(self):
|
||||||
|
"""Creating Microlinux local library
|
||||||
|
"""
|
||||||
|
ar = "32"
|
||||||
|
arch = self.meta.arch
|
||||||
|
repo = self.def_repos_dict["mles"]
|
||||||
|
log = self.log_path + "mles/"
|
||||||
|
lib = self.lib_path + "mles_repo/"
|
||||||
|
repo_name = log[:-1].split("/")[-1]
|
||||||
|
lib_file = "PACKAGES.TXT"
|
||||||
|
# lst_file = ""
|
||||||
|
md5_file = "CHECKSUMS.md5"
|
||||||
|
log_file = "ChangeLog.txt"
|
||||||
|
if not os.path.exists(log):
|
||||||
|
os.mkdir(log)
|
||||||
|
if not os.path.exists(lib):
|
||||||
|
os.mkdir(lib)
|
||||||
|
if arch == "x86_64":
|
||||||
|
ar = "64"
|
||||||
|
version = self.meta.mles_sub_repo[1:-1]
|
||||||
|
PACKAGES_TXT = "{0}{1}-{2}-{3}bit/{4}".format(
|
||||||
|
repo, version, slack_ver(), ar, lib_file)
|
||||||
|
FILELIST_TXT = ""
|
||||||
|
CHECKSUMS_MD5 = "{0}{1}-{2}-{3}bit/{4}".format(
|
||||||
|
repo, version, slack_ver(), ar, md5_file)
|
||||||
|
ChangeLog_txt = "{0}{1}-{2}-{3}bit/{4}".format(
|
||||||
|
repo, version, slack_ver(), ar, log_file)
|
||||||
|
if self.check:
|
||||||
|
return self.checks_logs(log, ChangeLog_txt)
|
||||||
|
self.down(lib, PACKAGES_TXT, repo_name)
|
||||||
|
self.down(lib, CHECKSUMS_MD5, repo_name)
|
||||||
|
self.down(log, ChangeLog_txt, repo_name)
|
||||||
|
self.remote(log, ChangeLog_txt, lib, PACKAGES_TXT, CHECKSUMS_MD5,
|
||||||
|
FILELIST_TXT, repo_name)
|
||||||
|
|
||||||
def down(self, path, link, repo):
|
def down(self, path, link, repo):
|
||||||
"""Download files
|
"""Download files
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue