[arch-commits] CVS update of core/base/filesystem (PKGBUILD profile)
Aaron Griffin
aaron at archlinux.org
Thu Dec 20 08:19:26 UTC 2007
Date: Thursday, December 20, 2007 @ 03:19:26
Author: aaron
Path: /home/cvs-core/core/base/filesystem
Added: profile (1.1)
Modified: PKGBUILD (1.91 -> 1.92)
upgpkg: filesystem 2007.11-4
Setup for FHS compliant man pages - FS#8839
Claim ownership of /etc/profile from bash - FS#4766
Remove LESSCHARSET env var from /etc/profile - FS#8877
----------+
PKGBUILD | 22 +++++++++++++---------
profile | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 65 insertions(+), 9 deletions(-)
Index: core/base/filesystem/PKGBUILD
diff -u core/base/filesystem/PKGBUILD:1.91 core/base/filesystem/PKGBUILD:1.92
--- core/base/filesystem/PKGBUILD:1.91 Wed Nov 28 21:11:20 2007
+++ core/base/filesystem/PKGBUILD Thu Dec 20 03:19:26 2007
@@ -1,9 +1,10 @@
-# $Id: PKGBUILD,v 1.91 2007/11/29 02:11:20 dan Exp $
-# Maintainer: judd <jvinet at zeroflux.org>
+# $Id: PKGBUILD,v 1.92 2007/12/20 08:19:26 aaron Exp $
+# Maintainer: Aaron Griffin <aaron at archlinux.org>
+# Contributor: judd <jvinet at zeroflux.org>
pkgname=filesystem
pkgver=2007.11
-pkgrel=3
+pkgrel=4
pkgdesc="Base filesystem"
arch=(i686 x86_64)
license=('GPL')
@@ -13,10 +14,10 @@
depends=('sh' 'coreutils')
backup=(etc/fstab etc/crypttab etc/group etc/hosts etc/ld.so.conf etc/passwd \
etc/shadow etc/gshadow etc/resolv.conf etc/motd etc/nsswitch.conf \
- etc/shells etc/host.conf etc/securetty)
+ etc/shells etc/host.conf etc/securetty etc/profile)
source=(group issue nsswitch.conf securetty host.conf ld.so.conf \
passwd shadow fstab crypttab hosts motd resolv.conf shells \
- gshadow services protocols)
+ gshadow services protocols profile)
md5sums=('dbef652b041b5b492da0724e606f268c'
'cda2226890afb19e6bba62ae60716636'
'775464ba7588b4976e0c2a02b83123f4'
@@ -33,16 +34,19 @@
'40dac0de4c6b99c8ca97effbd7527c84'
'ffdf350b692604518c3c37248e7009ff'
'4dbbde7544ea6799acec9fbb191c6b8e'
- 'b32c83ae6886e0525995f7028b2c2967')
+ 'b32c83ae6886e0525995f7028b2c2967'
+ '76078a6ba65f55815e4585586566ab1f')
build()
{
cd $startdir/pkg
mkdir -p bin boot dev etc home lib mnt proc root sbin tmp usr var opt srv sys
+ chmod 555 proc
mkdir -p mnt/{fl,cd,dvd}
mkdir -p usr/{bin,include,lib,sbin,share/misc,src,man}
- mkdir -p usr/man/man{1,2,3,4,5,6,7,8}
- ln -s man3 $startdir/pkg/usr/man/man3x
+
+ mkdir -p usr/share/man/man{1,2,3,4,5,6,7,8}
+ ln -s man3 $startdir/pkg/usr/share/man/man3x
# fhs compliance
mkdir -p usr/local/{bin,games,include,lib,man,sbin,share,src}
@@ -65,7 +69,7 @@
cd $startdir/src
cp fstab crypttab group host.conf hosts issue ld.so.conf motd nsswitch.conf \
- passwd protocols resolv.conf securetty services shadow shells \
+ passwd protocols resolv.conf securetty services shadow shells profile \
$startdir/pkg/etc/
install -m 600 $startdir/src/gshadow $startdir/pkg/etc/gshadow
chmod 600 $startdir/pkg/etc/shadow
Index: core/base/filesystem/profile
diff -u /dev/null core/base/filesystem/profile:1.1
--- /dev/null Thu Dec 20 03:19:26 2007
+++ core/base/filesystem/profile Thu Dec 20 03:19:26 2007
@@ -0,0 +1,52 @@
+#
+# /etc/profile
+# This file is intended to be used for ALL common Bourne-compatible shells
+#
+# Sections taken from SuSe's /etc/profile
+# Note the explicit use of 'test' to cover all bases
+
+#Determine our shell without using $SHELL, which may lie
+shell="sh"
+if test -f /proc/mounts; then
+ case $(/bin/ls -l /proc/$$/exe) in
+ *bash) shell=bash ;;
+ *dash) shell=dash ;;
+ *ash) shell=ash ;;
+ *ksh) shell=ksh ;;
+ *zsh) shell=zsh ;;
+ esac
+fi
+
+# Load shell specific profile settings
+test -f "/etc/profile.$shell" && . "/etc/profile.$shell"
+
+#Set our umask
+umask 022
+
+# Set our default path
+PATH="/bin:/usr/bin:/sbin:/usr/sbin"
+export PATH
+
+# Some readline stuff that is fairly common
+HISTSIZE=1000
+HISTCONTROL="erasedups"
+
+INPUTRC="/etc/inputrc"
+LESS="-R"
+LC_COLLATE="C"
+
+export HISTSIZE HISTCONTROL INPUTRC LESS LC_COLLATE
+
+# Load profiles from /etc/profile.d
+if test -d /etc/profile.d/; then
+ for profile in /etc/profile.d/*.sh; do
+ test -x $profile && . $profile
+ done
+ unset profile
+fi
+
+# Termcap is outdated, old, and crusty, kill it.
+unset TERMCAP
+
+# Man is much better than us at figuring this out
+unset MANPATH
More information about the arch-commits
mailing list