Difference between pages "Package:PAM base" and "FLOP:Ports-2015"

(Difference between pages)
(list installed files)
 
 
Line 1: Line 1:
{{Ebuild
+
{{FLOP
|Summary=Base configuration files for different PAM implementations
+
|Created on=2015/02/23
|CatPkg=sys-auth/pambase
+
|Summary=Collection of ideas and changes for the ports-2015 tree. The goal is to perform many scheduled changes with a single user configuration change.
 +
|Author=Mgorny,
 +
|Reference Bug=FL-1877
 
}}
 
}}
== Current design ==
+
== Procedure ==
=== Installed files ===
+
Users of ports-2012 tree will be informed that the current repository is deprecated, and provided with complete migration instructions. The instructions will cover both necessary and optional changes that can be done conveniently along with the necessary switch.
Currently the following files are installed by pambase:
+
  
<pre>
+
== Changes ==
/etc/pam.d/login
+
=== History cut-off ===
/etc/pam.d/passwd
+
As an implication of starting a new tree, all history is cut-off. While users were cloning the repository with --depth=1, old clones have accumulated a large history of changes. This history will be discarded with the new clone. This will significatly decrease the size of portage tree and the size of portage tree compressed tarball, if someone prefer to use it. Eventually, portage tree will grow up again.
/etc/pam.d/su
+
/etc/pam.d/system-auth
+
/etc/pam.d/system-login
+
/etc/pam.d/system-local-login
+
/etc/pam.d/system-remote-login
+
/etc/pam.d/system-services
+
/etc/pam.d/other
+
</pre>
+
  
The files starting with 'system' prefix are intended to be used by other PAM files. In particular:
+
=== Portage upgrade / repos.conf switch ===
 +
Reference: {{Bug|FL-1761}}, [[Repository Configuration]]
  
# ''system-auth'' is used whenever user authentication is desired. It is included in PAM files for account manipulation tools (''passwd'', ''chsh'', ...), authenticated daemons (''imap'', ''pop3''), ''xscreensaver'' (for screen locking) and ''system-login''.
+
As a part of upstream Portage changes, the upgrade is accompanied with some configuration file changes. Aside them, repository configuration is moved to repos.conf and the repository name becomes significant. Merging this with ports-2015 switch allows users to update the configuration in new format already.
# ''system-login'' is used whenever login is done. It is currently included only in ''system-local-login'' and ''system-remote-login''.
+
 
# ''system-local-login'' is used whenever local system login is performed. It is used by ''login'' and display managers.
+
=== Repository rename ===
# ''system-remote-login'' is used whenever remote system login is performed. It is used by ''sshd''.
+
Reference: {{Bug|FL-1801}}
# ''system-services'' is used whenever system daemons are started. It is used by ''start-stop-daemon'' and systemd.
+
 
{{EbuildFooter}}
+
Right now, the main repository inherits the name 'gentoo'. This is a bit confusing, considering that it is a modified Funtoo variant of the package tree. Changing the name to 'funtoo' would improve consistency and carry some bit of 'branding' into packages. Merging this into ports-2015 switch allows users to consciously update all repository references if necessary, and combines the change with necessity of specifying repository name in repos.conf.
 +
 
 +
== Other possible changes ==
 +
=== Filesystem structure reorganization ===
 +
Since users will be required to clone the new repository, it may be desired to suggest some best practices for filesystem layout. This specifically includes separating ebuilds from distfiles & packages, and using a multi-repository layout. Historically, portage tree inspired by FreeBSD ports, located in <code>/usr/portage</code>. This FHS layout is different in BSD and in Linux and we will probably move it elsewhere, see below for a suggestion and possible pros and cons.
 +
 
 +
Example layout suggested by mgorny:
 +
# all repositories in ''/var/db/repos/${repo_name}'' (i.e. Funtoo repository in ''/var/db/repos/funtoo'', and possible overlays as other directories in ''/var/db/repos''),
 +
# distfiles in ''/var/cache/portage/distfiles'',
 +
# binary packages in ''/var/cache/portage/packages''.
 +
 
 +
Users can be recommended to use a separate filesystem that can handle small files efficiently for ''/var/db/repos'', e.g. btrfs, reiserfs or possibly squashfs.
 +
 
 +
{{FLOPFooter}}

Revision as of 13:53, February 23, 2015

Created on
2015/02/23
Original Author(s)
{{#set:Author={{ #show: User:Mgorny | ?Full name }}}}{{ #show: User:Mgorny | ?Full name }}
Status
Reference Bug
FL-1877

Funtoo Linux Optimization Proposal: Ports-2015

Collection of ideas and changes for the ports-2015 tree. The goal is to perform many scheduled changes with a single user configuration change.

Procedure

Users of ports-2012 tree will be informed that the current repository is deprecated, and provided with complete migration instructions. The instructions will cover both necessary and optional changes that can be done conveniently along with the necessary switch.

Changes

History cut-off

As an implication of starting a new tree, all history is cut-off. While users were cloning the repository with --depth=1, old clones have accumulated a large history of changes. This history will be discarded with the new clone. This will significatly decrease the size of portage tree and the size of portage tree compressed tarball, if someone prefer to use it. Eventually, portage tree will grow up again.

Portage upgrade / repos.conf switch

Reference: FL-1761, Repository Configuration

As a part of upstream Portage changes, the upgrade is accompanied with some configuration file changes. Aside them, repository configuration is moved to repos.conf and the repository name becomes significant. Merging this with ports-2015 switch allows users to update the configuration in new format already.

Repository rename

Reference: FL-1801

Right now, the main repository inherits the name 'gentoo'. This is a bit confusing, considering that it is a modified Funtoo variant of the package tree. Changing the name to 'funtoo' would improve consistency and carry some bit of 'branding' into packages. Merging this into ports-2015 switch allows users to consciously update all repository references if necessary, and combines the change with necessity of specifying repository name in repos.conf.

Other possible changes

Filesystem structure reorganization

Since users will be required to clone the new repository, it may be desired to suggest some best practices for filesystem layout. This specifically includes separating ebuilds from distfiles & packages, and using a multi-repository layout. Historically, portage tree inspired by FreeBSD ports, located in /usr/portage. This FHS layout is different in BSD and in Linux and we will probably move it elsewhere, see below for a suggestion and possible pros and cons.

Example layout suggested by mgorny:

  1. all repositories in /var/db/repos/${repo_name} (i.e. Funtoo repository in /var/db/repos/funtoo, and possible overlays as other directories in /var/db/repos),
  2. distfiles in /var/cache/portage/distfiles,
  3. binary packages in /var/cache/portage/packages.

Users can be recommended to use a separate filesystem that can handle small files efficiently for /var/db/repos, e.g. btrfs, reiserfs or possibly squashfs.


blog comments powered by Disqus