bash: add systemwide bashrc

This commit is contained in:
lemmi 2015-06-23 17:17:09 +02:00
parent 6d2a2b4dc1
commit 1fbd9ae9de
2 changed files with 16 additions and 2 deletions

11
srcpkgs/bash/files/bashrc Normal file
View file

@ -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

View file

@ -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 <xtraeme@voidlinux.eu>"
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
}