base-files: added some common dirs to /etc/profile.

This commit is contained in:
Juan RP 2011-07-15 14:45:00 +02:00
parent fa0a094962
commit a59f5dd92a
2 changed files with 15 additions and 20 deletions

View file

@ -25,9 +25,12 @@ if [ "$EUID" = "0" ]; then
pathmunge /usr/sbin
pathmunge /usr/local/sbin
else
pathmunge /usr/local/bin after
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
pathmunge /opt/bin after
pathmunge /opt/sbin after
fi
# No core files by default

View file

@ -1,11 +1,11 @@
# Template file for 'base-files'
pkgname=base-files
version=0.46
version=0.47
build_style=custom-install
short_desc="Vanilla GNU/Linux base system files"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="https://vanilla.github.com/"
license="public domain"
license="Public domain"
long_desc="
This package installs the base system files that aren't installed by any
other package and are required on any GNU/Linux system."
@ -29,33 +29,25 @@ Add_dependency full xbps-triggers
do_install()
{
#
# Install misc config files.
#
for f in bash_logout bash_profile bashrc; do
install -D -m644 ${FILESDIR}/dot_${f} ${DESTDIR}/etc/skel/.${f}
vinstall ${FILESDIR}/dot_${f} 644 etc/skel/.${f}
done
install -m644 ${FILESDIR}/profile ${DESTDIR}/etc
install -m600 ${FILESDIR}/securetty ${DESTDIR}/etc
install -m644 ${FILESDIR}/hosts ${DESTDIR}/etc
install -m644 ${FILESDIR}/host.conf ${DESTDIR}/etc
install -m644 ${FILESDIR}/issue ${DESTDIR}/etc
install -m644 ${FILESDIR}/lsb-release ${DESTDIR}/etc
install -d ${DESTDIR}/etc/profile.d
vinstall ${FILESDIR}/securetty 600 etc
for f in profile hosts host.conf issue lsb-release; do
vinstall ${FILESDIR}/${f} 644 etc
done
vmkdir etc/profile.d
install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d
install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc
install -d ${DESTDIR}/etc/modprobe.d
install -m644 ${FILESDIR}/usb-load-ehci-first \
${DESTDIR}/etc/modprobe.d/usb-load-ehci-first.conf
install -m644 ${FILESDIR}/blacklist.conf ${DESTDIR}/etc/modprobe.d
vinstall ${FILESDIR}/usb-load-ehci-first 644 etc/modprobe.d \
usb-load-ehci-first.conf
vinstall ${FILESDIR}/blacklist.conf 644 etc/modprobe.d
#
# Install comman licenses, from Debian.
#
install -d ${DESTDIR}/usr/share/licenses
vmkdir usr/share/licenses
install -m644 ${FILESDIR}/licenses/* ${DESTDIR}/usr/share/licenses
# vkpurge