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

57 lines
1.5 KiB
Plaintext
Raw Normal View History

# Template file for 'xbps-base-files'
pkgname=xbps-base-files
version=0.38
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
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
#
# Install comman licenses, from Debian.
#
install -d ${DESTDIR}/usr/share/licenses
install -m644 ${FILESDIR}/licenses/* ${DESTDIR}/usr/share/licenses
}