void-packages/srcpkgs/xbps-base-files/template

52 lines
1.3 KiB
Text
Raw Normal View History

# Template file for 'xbps-base-files'
pkgname=xbps-base-files
version=0.37
build_style=custom-install
short_desc="XBPS Base System files"
maintainer="Juan RP <xtraeme@gmail.com>"
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."
noarch=yes
keep_empty_dirs=yes
base_chroot=yes
conf_files="
/etc/profile
/etc/hosts
/etc/host.conf
/etc/securetty
/etc/skel/.bash_profile
/etc/skel/.bash_logout
/etc/skel/.bashrc
/etc/issue"
Add_dependency full base-directories
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}
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 -d ${DESTDIR}/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
}