explode out the tarball for my sanity sync with /etc/skel versions fix all

reported bugs ;)
This commit is contained in:
Bill Nottingham 2004-09-23 03:59:52 +00:00
parent bf13bc6b34
commit a9aaffb31e
8 changed files with 60 additions and 21 deletions

View File

@ -1 +0,0 @@
rootfiles.tar.gz

3
dot-bash_logout Normal file
View File

@ -0,0 +1,3 @@
# ~/.bash_logout
clear

13
dot-bash_profile Normal file
View File

@ -0,0 +1,13 @@
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME

12
dot-bashrc Normal file
View File

@ -0,0 +1,12 @@
# .bashrc
# User specific aliases and functions
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi

7
dot-cshrc Normal file
View File

@ -0,0 +1,7 @@
# .cshrc
# User specific aliases and functions
alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'

8
dot-tcshrc Normal file
View File

@ -0,0 +1,8 @@
# .tcshrc
# User specific aliases and functions
alias rm 'rm -i'
alias cp 'cp -i'
alias mv 'mv -i'

View File

@ -1,10 +1,15 @@
Summary: The basic required files for the root user's directory.
Name: rootfiles
Version: 7.2
Release: 7
Version: 8
Release: 1
License: Public Domain
Group: System Environment/Base
Source: rootfiles.tar.gz
Source0: dot-bashrc
Source1: dot-bash_profile
Source2: dot-bash_logout
Source3: dot-tcshrc
Source4: dot-cshrc
BuildRoot: %{_tmppath}/%{name}%{name}-root
BuildArchitectures: noarch
@ -15,35 +20,28 @@ as those in /etc/skel, which are placed in regular
users' home directories.
%prep
%setup -q -n rootfiles
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/root
tar -cvSpf- . | (cd $RPM_BUILD_ROOT/root ; tar -xSpf-)
cd $RPM_BUILD_ROOT/root
mv .Xdefaults .Xresources
for file in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} ; do
f=`basename $file`
install -m 644 $file $RPM_BUILD_ROOT/root/${f/dot-/.}
done
%clean
rm -rf $RPM_BUILD_ROOT
%pre
# we used to put .Xclients in this package -- back it up if it's been
# customized
cd /root
if [ -f .Xclients -a -x /bin/awk ]; then
m=`md5sum .Xclients | awk '{ print $1 }'`
if [ $m != "506b9496f2853fc9fee6c6b1c5f3ee48" ]; then
mv .Xclients .Xclients.rpmsave
fi
fi
%files
%defattr(-,root,root)
%config /root/.[A-Za-z]*
%config(noreplace) /root/.[A-Za-z]*
%changelog
* Wed Sep 22 2004 Bill Nottingham <notting@redhat.com> 8-1
- sync files with current /etc/skel stuff
- remove Xresources (#75666)
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
- rebuilt

View File

@ -1 +0,0 @@
5480ce957e9784091bf2983c64ee7683 rootfiles.tar.gz