summaryrefslogtreecommitdiff
path: root/etc
Commit message (Collapse)AuthorAgeFilesLines
* etc/protocols: add mobility-header (135)Matoro Mahri2024-02-291-0/+1
| | | | | | | | | | Missing this makes net-firewall/iptables tests fail. See: https://bugzilla.netfilter.org/show_bug.cgi?id=1738 Bug: https://bugs.gentoo.org/890628 Closes: https://github.com/gentoo/baselayout/pull/6 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* etc/profile: fix trailing whitespaceSam James2023-07-081-4/+4
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Revert "add environment variables needed for assistive technology"Mike Gilbert2023-01-271-2/+0
| | | | | | | | After discussion in IRC and some comments on the bug report, we decided this was not such a good idea. Reverts: 8aa828d0ce8ea8822cb0ba6e26affbc2005281e6. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* add environment variables needed for assistive technologyWilliam Hubbs2023-01-261-0/+2
| | | | | Bug: https://bugs.gentoo.org/853820 Signed-off-by: William Hubbs <williamh@gentoo.org>
* etc/issue: remove DNS domain nameMike Gilbert2023-01-251-1/+1
| | | | | | | | | | It is very common for client systems to not have a valid DNS domain name. This results in agetty printing "unknown_domain", which may confuse new users. Closes: https://github.com/gentoo/baselayout/pull/3 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: William Hubbs <williamh@gentoo.org>
* drop OS specific supportWilliam Hubbs2023-01-034-0/+111
| | | | | | This is no longer needed since we have dropped support for *BSD. Signed-off-by: William Hubbs <williamh@gentoo.org>
* typo fixWilliam Hubbs2022-09-041-1/+1
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* etc/shells: Add yash to login shellsorbea2022-05-251-0/+1
| | | | | | | | | | | Yash, yet another shell, is a POSIX-compliant command line shell written in C99 (ISO/IEC 9899:1999). Yash is intended to be the most POSIX-compliant shell in the world while supporting features for daily interactive and scripting use. Closes: https://github.com/gentoo/baselayout/pull/1 Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: William Hubbs <williamh@gentoo.org>
* etc/profile: remove umask settingWilliam Hubbs2020-12-131-3/+0
| | | | | | Umask should be set via shadow in /etc/login.defs or via pam. Signed-off-by: William Hubbs <williamh@gentoo.org>
* services: add domain-sMike Gilbert2020-02-081-0/+2
| | | | | Closes: https://bugs.gentoo.org/708130 Signed-off-by: William Hubbs <williamh@gentoo.org>
* profile: don't use ROOTPATHWilliam Hubbs2018-05-281-8/+0
| | | | | Since PATH is supposed to be the same for everyone, we can now drop the code that handles ROOTPATH.
* etc/profile: typo fixWilliam Hubbs2018-05-261-1/+1
|
* Add sbin directories to pathWilliam Hubbs2018-05-262-0/+11
| | | | | | This is a partial revert of 9cac4dd130637fa2c1f1a64bf3c9d2509284e6dd. We need to have path and rootpath be the same, to allow transitioning packages before we drop rootpath.
* Drop support for ROOTPATHWilliam Hubbs2017-10-042-12/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following is taken from /etc/profile: > Set up PATH depending on whether we're root or a normal user. > There's no real reason to exclude sbin paths from the normal user, > but it can make tab-completion easier when they aren't in the > user's PATH to pollute the executable namespace. This seems like a minor inconvenience, and excluding sbin paths for the normal user can cause bigger issues which will offset this inconvenience. commit ac52b58e7a8a7f8085de9f806645881740b22c5e Author: William Hubbs <williamh@gentoo.org> Date: Wed Oct 4 17:12:33 2017 -0500 Drop support for ROOTPATH The following is taken from /etc/profile: This seems like a minor inconvenience, and not having *sbin in the path can cause bigger compatibility issues which offset this inconvenience. diff --git a/etc/env.d/50baselayout b/etc/env.d/50baselayout index e8662e0e..b10a2c4d 100644 --- a/etc/env.d/50baselayout +++ b/etc/env.d/50baselayout @@ -1,8 +1,7 @@ # /etc/env.d/50baselayout # Do not edit this file -PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin" -ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" +PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin" MANPATH="/usr/local/share/man:/usr/share/man" INFOPATH="/usr/share/info" CONFIG_PROTECT_MASK="/etc/gentoo-release" diff --git a/etc/profile b/etc/profile index 8e92e824..4579bd17 100644 --- a/etc/profile +++ b/etc/profile @@ -18,16 +18,6 @@ export PAGER=${PAGER:-/usr/bin/less} # 077 would be more secure, but 022 is generally quite realistic umask 022 -# Set up PATH depending on whether we're root or a normal user. -# There's no real reason to exclude sbin paths from the normal user, -# but it can make tab-completion easier when they aren't in the -# user's PATH to pollute the executable namespace. -if [ "${EUID-}" = "0" ] || [ "${USER-}" = "root" ] ; then - PATH="${ROOTPATH}" -fi -export PATH -unset ROOTPATH - # process *.sh files in /etc/profiled.d for sh in /etc/profile.d/*.sh ; do [ -r "$sh" ] && . "$sh"
* process files in /etc/profile.d before /etc/bash/bashrc for consistencyWilliam Hubbs2017-10-031-5/+6
| | | | Bug: https://bugs.gentoo.org/show_bug.cgi?id=610898
* etc/profile: replace PATH with ROOTPATH if the user is rootbaselayout-2.4William Hubbs2017-06-081-3/+1
| | | | | | | This is part of the following bug. X-Gentoo-Bug: 255695 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=255695
* etc/services: add etcd servicesDavid Michael2017-06-081-0/+2
| | | | | X-Gentoo-Bug: 604704 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=604704
* etc/env.d: move default settings to 50bbaselayout instead of 00basicWilliam Hubbs2017-06-082-8/+8
| | | | | | | This allows other packages to append or pre-pend any of our defaults. X-Gentoo-Bug: 255695 X-Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=255695
* etc/shells: Add mksh to login shellsLars Wendler2016-12-101-0/+1
|
* etc/profile: Make set -u work for the profileMartin Vath2016-09-011-4/+4
| | | | X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=555762
* etc/services: add assignment for ircs-uWilliam Hubbs2016-08-291-0/+1
| | | | X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=592368
* etc/services: add gpsd and xmpp-bosh servicesWilliam Hubbs2016-08-291-0/+3
| | | | X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=538708
* etc/profile: remove comments about whoamiWilliam Hubbs2016-08-271-4/+0
| | | | X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=587612
* etc/hosts: document the alias orderWilliam Hubbs2016-08-261-0/+6
| | | | | | | Add documentation showing that the first host alias is the canonical host name. X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=536624
* add /bin/dash as a valid login shellMike Frysinger2014-04-111-0/+1
| | | | svn path=/trunk/; revision=3213
* services: change sieve from port 2000 to 4190 #485298 by Hanno BoeckMike Frysinger2013-12-311-2/+4
| | | | svn path=/trunk/; revision=3210
* add groupwise to /etc/services #432550 by Jon GerdesMike Frysinger2012-09-261-0/+2
| | | | svn path=/trunk/; revision=3204
* dynamic management of libdir paths is moving to ebuildsbaselayout-2.1Mike Frysinger2011-09-291-1/+0
| | | | svn path=/trunk/; revision=3199
* profile: drop unnecessary `type` checkingMike Frysinger2011-07-031-1/+1
| | | | svn path=/trunk/; revision=3196
* drop CVS_RSH now that it has been moved to dev-vcs/cvs #296823Mike Frysinger2011-06-181-1/+0
| | | | svn path=/trunk/; revision=3193
* import sqlexec ports for #267811Mike Frysinger2009-06-261-0/+4
| | | | svn path=/trunk/; revision=3141
* pull updates from iana (including sep->dccp fix #273733 by Alexander Dubov)Mike Frysinger2009-06-201-5/+14
| | | | svn path=/trunk/; revision=3140
* give hints at overriding default EDITOR/PAGERMike Frysinger2008-04-151-0/+3
| | | | svn path=/trunk/; revision=3126
* simply the build system greatlyMike Frysinger2008-03-233-16/+0
| | | | svn path=/trunk/; revision=3115
* merge updates from baselayout-1.12.xMike Frysinger2008-03-233-20/+18
| | | | svn path=/trunk/; revision=3111
* finish merging openrc changesMike Frysinger2008-03-231-1/+1
| | | | svn path=/trunk/; revision=3110
* punt things moved to openrcMike Frysinger2008-03-231-32/+0
| | | | svn path=/trunk/; revision=3109
* Add link-localRoy Marples2007-10-121-1/+2
| | | | svn path=/trunk/; revision=3037
* Add /etc/gentoo-release to CONFIG_PROTECT_MASK.Mike Frysinger2007-08-261-0/+2
| | | | svn path=/trunk/; revision=2851
* Punt PAGER and EDITOR. People need to set this themselves now.Mike Frysinger2007-08-255-14/+6
| | | | svn path=/trunk/; revision=2850
* Add bzr port 4155 to /etc/services, #188970 thanks to Andrew Cowie.Roy Marples2007-08-151-0/+2
| | | | svn path=/trunk/; revision=2830
* Rewrite the core parts in C. We now provide librc so other programs canRoy Marples2007-04-0510-0/+1500
query runlevels, services and state without using bash. We also provide libeinfo so other programs can easily use our informational functions. As such, we have dropped the requirement of using bash as the init script shell. We now use /bin/sh and have strived to make the scripts as portable as possible. Shells that work are bash and dash. busybox works provided you disable s-s-d. If you have WIPE_TMP set to yes in conf.d/bootmisc you should disable find too. zsh and ksh do not work at this time. Networking support is currently being re-vamped also as it was heavily bash array based. As such, a new config format is available like so config_eth0="1.2.3.4/24 5.6.7.8/16" or like so config_eth0="'1.2.3.4 netmask 255.255.255.0' '5.6.7.8 netmask 255.255.0.0'" We will still support the old bash array format provided that /bin/sh IS a link it bash. ChangeLog for baselayout-1 can be found in our SVN repo. svn path=/trunk/; revision=2547