commit 4bf90d0737473ffc17924f6e7eb176037ec4a625 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:16:22 2019 -0400 Package init diff --git a/dot-bash_logout b/dot-bash_logout new file mode 100644 index 0000000..af7c6fd --- /dev/null +++ b/dot-bash_logout @@ -0,0 +1,2 @@ +# ~/.bash_logout + diff --git a/dot-bash_profile b/dot-bash_profile new file mode 100644 index 0000000..3dc099a --- /dev/null +++ b/dot-bash_profile @@ -0,0 +1,12 @@ +# .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 diff --git a/dot-bashrc b/dot-bashrc new file mode 100644 index 0000000..6e6d1e1 --- /dev/null +++ b/dot-bashrc @@ -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 diff --git a/dot-cshrc b/dot-cshrc new file mode 100644 index 0000000..d087a90 --- /dev/null +++ b/dot-cshrc @@ -0,0 +1,7 @@ +# .cshrc + +# User specific aliases and functions + +alias rm 'rm -i' +alias cp 'cp -i' +alias mv 'mv -i' diff --git a/dot-tcshrc b/dot-tcshrc new file mode 100644 index 0000000..e68e89e --- /dev/null +++ b/dot-tcshrc @@ -0,0 +1,10 @@ +# .tcshrc + +# User specific aliases and functions + +alias rm 'rm -i' +alias cp 'cp -i' +alias mv 'mv -i' + +set prompt='[%n@%m %c]# ' + diff --git a/rootfiles.spec b/rootfiles.spec new file mode 100644 index 0000000..273f7e9 --- /dev/null +++ b/rootfiles.spec @@ -0,0 +1,49 @@ +Name: rootfiles +Version: 8.1 +Release: 24 +Summary: Basic required files for the root user's account +License: Public Domain + +# This is a Red Hat maintained package which is specific to +# our distribution. Thus the source is only available from +# within this srpm. +Source0: dot-bashrc +Source1: dot-bash_profile +Source2: dot-bash_logout +Source3: dot-tcshrc +Source4: dot-cshrc + +BuildArch: noarch + +%description +The rootfiles package contains basic required files that are placed +in the root user's account. These files are basically the same as +those in /etc/skel, which are placed in regular users' home directories. + +%prep + +%install +mkdir -p %{buildroot}/root + +install -p -m 644 %{SOURCE0} %{buildroot}/root/.bashrc +install -p -m 644 %{SOURCE1} %{buildroot}/root/.bash_profile +install -p -m 644 %{SOURCE2} %{buildroot}/root/.bash_logout +install -p -m 644 %{SOURCE3} %{buildroot}/root/.tcshrc +install -p -m 644 %{SOURCE4} %{buildroot}/root/.cshrc + + +%posttrans +if [ $1 -eq 0 ] ; then + cp -ndr --preserve=ownership,timestamps /etc/skel/. /root/ || : +fi + +%files +%config(noreplace) /root/.bashrc +%config(noreplace) /root/.bash_profile +%config(noreplace) /root/.bash_logout +%config(noreplace) /root/.tcshrc +%config(noreplace) /root/.cshrc + +%changelog +* Fri Aug 30 2019 luhuaxin - 8.1-24 +- Package init