68 lines
1.7 KiB
Text
68 lines
1.7 KiB
Text
# Template file for 'base-files'
|
|
pkgname=base-files
|
|
version=0.88
|
|
revision=1
|
|
bootstrap=yes
|
|
makedepends="base-directories xbps-triggers"
|
|
short_desc="Void Linux base system files"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.voidlinux.eu"
|
|
license="Public domain"
|
|
|
|
do_install() {
|
|
# Install misc config files.
|
|
for f in bash_logout bash_profile bashrc inputrc; do
|
|
vinstall ${FILESDIR}/dot_${f} 644 etc/skel .${f}
|
|
done
|
|
|
|
vinstall ${FILESDIR}/securetty 600 etc
|
|
for f in profile hosts host.conf issue lsb-release \
|
|
inputrc fstab passwd group crypttab nsswitch.conf; 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
|
|
|
|
vinstall ${FILESDIR}/usb-load-ehci-first 644 etc/modprobe.d \
|
|
usb-load-ehci-first.conf
|
|
vinstall ${FILESDIR}/blacklist.conf 644 etc/modprobe.d
|
|
|
|
# Install common licenses, from Debian.
|
|
vmkdir usr/share/licenses
|
|
install -m644 ${FILESDIR}/licenses/* ${DESTDIR}/usr/share/licenses
|
|
|
|
# vkpurge
|
|
vinstall ${FILESDIR}/vkpurge 755 usr/sbin vkpurge
|
|
|
|
# Install default dracut configuration.
|
|
vinstall ${FILESDIR}/dracut.conf.d.voidlinux.conf 644 \
|
|
etc/dracut.conf.d voidlinux.conf
|
|
|
|
# Create /proc/self/mounts -> /etc/mtab symlink.
|
|
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
|
|
}
|
|
|
|
base-files_package() {
|
|
conf_files="
|
|
/etc/inputrc
|
|
/etc/profile
|
|
/etc/hosts
|
|
/etc/host.conf
|
|
/etc/securetty
|
|
/etc/skel/.bash_profile
|
|
/etc/skel/.bash_logout
|
|
/etc/skel/.bashrc
|
|
/etc/skel/.inputrc
|
|
/etc/issue
|
|
/etc/passwd
|
|
/etc/group
|
|
/etc/fstab
|
|
/etc/crypttab
|
|
/etc/nsswitch.conf"
|
|
noarch="yes"
|
|
depends="base-directories xbps-triggers"
|
|
pkg_install() {
|
|
vmove all
|
|
}
|
|
}
|