Commit Graph

27 Commits

Author SHA1 Message Date
Fabio Erculiani
bc63d82b97 [entropy.server] add support for server-side repositories.conf.d/ repository config files
Entropy Server now supports repositories defined inside
    /etc/entropy/repositories.conf.d/ files, written using the
    syntax detailed below. This improves the ability to enable, disable,
    add and remove repositories programmatically. Furthermore, it
    makes possible to extend the supported parameters without breaking
    backward compatibility.

    In order to differentiate Entropy Client repository definitions between
    Entropy Server ones, each repository section must start with "[server=".

    This is an example of the syntax (with a complete listing
    of the supported arguments):

    [server=sabayon-limbo]
    desc = Sabayon Linux Official Testing Repository
    repo = ssh://username@full.host:~username/sabayon-limbo
    enabled = <true/false>

    [server=sabayon-limbo]
    desc = This statement will be ignored.
    repo-only = ssh://username@repo.host:~username/sabayon-limbo
    pkg-only = ssh://username@pkg.host:~username/sabayon-limbo

    [server=sabayon-base]
    desc = This is the base repository.
    repo-only = ssh://username@repo.host:~username/sabayon-base
    pkg-only = ssh://username@pkg.host:~username/sabayon-base
    base = <true/false>

    As you can see, multiple statements for the same repository
    are allowed. However, only the first desc = statement will be
    considered, while there can be as many {pkg,repo}* = as you want.

    The repository order is important, but this is guaranteed by the
    fact that configuration files are parsed in lexical order.

    Statements description:
    - "desc": stands for description, the repository name description.
    - "repo": the push & pull URI, for both packages and repository database.
    - "repo-only": same as repo, but only for the repository database
                   push & pull.
    - "pkg-only": same as repo, but only for the packages push & pull.
             The supported protocols are those supported by entropy.fetchers.
    - "enabled": if set, its value can be either "true" or "false". The default
                 value is "true". It indicates if a repository is configured
                 but currently disabled or enabled. Please take into account
                 that config files in /etc/entropy/repositories.conf.d/ starting
                 with "_" are considered to contain disabled repositories. This
                 is just provided for convienence.
    - "base": if set, its value can be either "true" or "false". The default
              value is "false". If no repository has the flag set, the first
              listed repository will be the base one. Only the first repository
              with "base = true" will be considered. The base repository is the
              repository that is considered base for all the others
              (the main one).
2013-03-10 22:12:27 +00:00
Fabio Erculiani
7bef53d99c [entropy.server] add "weak package files" support
Weak package files is a feature that makes possible to save a lot of
local space if enabled. Basically, all the package files no longer in
the repository are locally removed before their expiration. This reduces
local data redundancy with no real reliability impact.
2013-03-02 18:54:12 +00:00
Fabio Erculiani
144846906b [conf] server.conf: update repository example string 2012-04-15 18:17:30 +02:00
Fabio Erculiani
cd3a53c1e5 [conf] server.conf: update config file title 2011-10-31 19:09:14 +01:00
Fabio Erculiani
4cc4407eaa [entropy.server] drop etpConst['community']['mode'], move setting into server.conf 2011-10-17 11:26:46 +02:00
Fabio Erculiani
a7acb6d7c9 [entropy.server] make possible to disable the "broken reverse dependencies" QA check 2011-06-19 09:24:06 +02:00
Fabio Erculiani
81598b5fed [entropy.server] drop parsable-rss feature in favour of a plain ChangeLog file
ChangeLog file is now automatically generated basing on new packages
being added to repository. It can be disabled via server.conf's
"changelog = false" directive.
This file is supposed to grow to infinity and no size control is
going to be implemented.
2011-06-16 16:38:09 +02:00
Fabio Erculiani
d874c929e4 [entropy.server] make possible to change default RSS-light file name 2011-06-15 17:49:32 +02:00
Fabio Erculiani
2a0e7f7c94 [entropy.server] add support for generating parsable RSS feeds 2011-06-15 17:46:09 +02:00
Fabio Erculiani
209a177053 [conf] port configuration files to new syntax 2010-11-17 11:16:20 +01:00
Fabio Erculiani
0cfccd4267 [entropy.conf] uniform setting keys (keeping backward compat) 2010-10-08 18:20:24 +02:00
Fabio Erculiani
fc923dc850 [entropy.server] decouple list of repository mirrors from packages mirrors, keeping backward compatibility 2010-07-24 20:19:39 +02:00
Fabio Erculiani
9ea843d36d [entropy.server] disable -nonfree directory support by default, via server.conf 2010-01-28 09:51:33 +01:00
Fabio Erculiani
7309d1446d [entropy*] move sabayonlinux.org domain info to sabayon.org, move more distro specific info to entropy.const 2009-12-21 23:50:31 +01:00
Fabio Erculiani
da2955a032 [entropy.server] implement the "base server-side repository" concept and use it to improve deptest QA checks 2009-11-21 13:54:17 +01:00
Fabio Erculiani
94867af2fe [entropy.server] remove etpConst['officialserverrepositoryid'] and handlers support (there is ssh URI support now) 2009-11-21 13:41:38 +01:00
Fabio Erculiani
fb6dc2a447 [entropy.server] add support for server-side transceivers speed limit 2009-11-10 21:49:29 +01:00
Fabio Erculiani
ad3f7fd8ec [conf] update server.conf.example showing information about server-basic-languages 2009-10-19 23:24:58 +02:00
Fabio Erculiani
c9a8736ba1 [entropy.*] 'branches' metadatum is dead, eventually.
This commit removes the quirk used mainly server-side to make
tidy working on branches sharing package files.
Since tidy function now uses a more intelligent technique, this
is not needed anymore.
2009-06-28 00:19:34 +02:00
Fabio Erculiani
a7faac4d03 entropy.server: add support for expiration-based packages removal.
If enabled in server.conf, entropy server side interface can now
allow multiple packages in the same scope without forcefully being
'injected'.
Through packages.db.fatscope in database dir, you can choose what
packages are eligible to this status, you can use '*' wildcard to
enable the feature for all the packages.

Be warned, this feature is EXPERIMENTAL (read server.conf) and not
enabled by default.
2009-04-25 22:32:18 +02:00
Fabio Erculiani
fe4faeaf18 entropy.server: implement ability to disable certain EAPIs.
This improvement allows to disable certain EAPIs from being handled
on download/upload, thus on remote repository database sync. This
was warmly awaited from repository maintainers with limited internet
bandwidth.
2009-04-19 20:28:14 +02:00
lxnay
898bd4aeed Entropy/TODO:
- update TODO
Entropy/Server:
- merge server config files into one (server.conf), reduce complexity
Entropy/Transceivers:
- FtpInterface add ETA and current up/down speed information


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@3157 cd1c1023-2f26-0410-ae45-c471fc1f0318
2009-03-12 23:49:19 +00:00
lxnay
76c16149ad Entropy/Server Interface:
- export binary packages expiration days setting to server.conf


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2339 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-08-26 11:29:25 +00:00
lxnay
fc4a6a31e8 Entropy/server.conf:
- update server.conf.example accordingly to my previous commit


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2240 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-07-03 23:01:42 +00:00
lxnay
d799613d0b Entropy/ServerInterface:
- updating server.conf and fixing a typo in server_reagent.py

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1960 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-05-23 15:36:08 +00:00
lxnay
f9dfb3fbe6 Entropy/ServerInterface:
- change server.conf specs adding http handlers URL to it
- added multirepository support to all server-side functions (not yet done)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1681 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-10 23:14:50 +00:00
lxnay
029b475f32 move server.conf to server.conf.example to avoid having this packaged
git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1671 cd1c1023-2f26-0410-ae45-c471fc1f0318
2008-04-10 15:06:04 +00:00