void-packages/srcpkgs/base-files/template

71 lines
1.9 KiB
Plaintext
Raw Normal View History

# Template file for 'base-files'
pkgname=base-files
version=0.95
revision=1
bootstrap=yes
build_style="meta"
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"
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"
depends="base-directories xbps-triggers"
do_install() {
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
vmkdir usr/lib
vmkdir usr/lib32
ln -s ../lib32/ld-linux.so.2 ${DESTDIR}/usr/lib/ld-linux.so.2
ln -s ../lib/locale ${DESTDIR}/usr/lib32/locale
vinstall ${FILESDIR}/ld.so.lib32.conf 644 etc/ld.so.conf.d lib32.conf
fi
# 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 \
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 usr/lib/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
}