diff --git a/srcpkgs/bash/files/bashrc b/srcpkgs/bash/files/bashrc new file mode 100644 index 0000000000..dee437610a --- /dev/null +++ b/srcpkgs/bash/files/bashrc @@ -0,0 +1,11 @@ +# /etc/bash/bashrc + +# Do not edit this file. +# Place your readable configs in /etc/bash/bashrc.d/*.sh + +if [ -d /etc/bash/bashrc.d/ ]; then + for f in /etc/bash/bashrc.d/*.sh; do + [ -r "$f" ] && . "$f" + done + unset f +fi diff --git a/srcpkgs/bash/template b/srcpkgs/bash/template index d054951119..16a2013e4b 100644 --- a/srcpkgs/bash/template +++ b/srcpkgs/bash/template @@ -3,7 +3,7 @@ pkgname=bash _bash_distver=4.3 _bash_patchlevel=039 version=${_bash_distver}.${_bash_patchlevel} -revision=2 +revision=3 wrksrc=${pkgname}-${_bash_distver} build_pie=yes build_style=gnu-configure @@ -17,8 +17,9 @@ maintainer="Juan RP " homepage="http://www.gnu.org/software/bash/bash.html" license="GPL-3" distfiles="${GNU_SITE}/$pkgname/$pkgname-${_bash_distver}.tar.gz" -checksum=afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4 CFLAGS="-DSYS_BASHRC='\"/etc/bash/bashrc\"'" +make_dirs="/etc/bash/bashrc.d 755 root root" +checksum=afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4 pre_configure() { local url="${GNU_SITE}/$pkgname/$pkgname-${_bash_distver}-patches" @@ -42,4 +43,6 @@ pre_configure() { post_install() { rm -r ${DESTDIR}/usr/share/doc ln -s bash ${DESTDIR}/usr/bin/rbash + vmkdir /etc/bash + vcopy ${FILESDIR}/bashrc /etc/bash/bashrc }