From de6f15c46c3a4273bdacb3dc6eac76bdf7f47591 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Thu, 21 Feb 2013 09:18:08 -0800 Subject: [PATCH] add skel files --- packaging/bash.spec | 9 +++++---- packaging/dot.bashrc | 2 ++ packaging/dot.profile | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 packaging/dot.bashrc create mode 100644 packaging/dot.profile diff --git a/packaging/bash.spec b/packaging/bash.spec index 8a733a2..25761b3 100644 --- a/packaging/bash.spec +++ b/packaging/bash.spec @@ -6,6 +6,8 @@ Summary: The GNU Bourne Again shell Url: http://www.gnu.org/software/bash Group: System/Shells Source0: ftp://ftp.gnu.org/gnu/bash/%{name}-%{version}.tar.gz +Source1: dot.bashrc +Source2: dot.profile BuildRequires: autoconf BuildRequires: bison Provides: /bin/bash @@ -82,9 +84,8 @@ ln -sf bash ./usr/bin/sh rm -f .%{_infodir}/dir popd mkdir -p %{buildroot}%{_sysconfdir}/skel -#install -c -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/.bashrc -#install -c -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.bash_profile -#install -c -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/skel/.bash_logout +install -c -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/.bashrc +install -c -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.bash_profile LONG_BIT=$(getconf LONG_BIT) mv %{buildroot}%{_bindir}/bashbug \ %{buildroot}%{_bindir}/bashbug-"${LONG_BIT}" @@ -153,4 +154,4 @@ fi %files %{_bindir}/sh %{_bindir}/bash - +%{_sysconfdir}/skel diff --git a/packaging/dot.bashrc b/packaging/dot.bashrc new file mode 100644 index 0000000..45b8b6b --- /dev/null +++ b/packaging/dot.bashrc @@ -0,0 +1,2 @@ + +test -s ~/.alias && . ~/.alias || true diff --git a/packaging/dot.profile b/packaging/dot.profile new file mode 100644 index 0000000..942448e --- /dev/null +++ b/packaging/dot.profile @@ -0,0 +1 @@ +test -z "$PROFILEREAD" && . /etc/profile || true -- 2.7.4