2011-06-23 01:22:24 +00:00
|
|
|
# Template file for 'base-files'
|
|
|
|
pkgname=base-files
|
2015-06-06 08:57:30 +00:00
|
|
|
version=0.128
|
2015-04-30 08:56:46 +00:00
|
|
|
revision=1
|
2013-04-12 06:55:23 +00:00
|
|
|
bootstrap=yes
|
2015-06-03 08:43:31 +00:00
|
|
|
depends="xbps-triggers"
|
2012-07-08 12:17:03 +00:00
|
|
|
short_desc="Void Linux base system files"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2013-01-27 07:04:38 +00:00
|
|
|
homepage="http://www.voidlinux.eu"
|
2011-07-15 12:45:00 +00:00
|
|
|
license="Public domain"
|
2014-01-01 15:10:11 +00:00
|
|
|
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
|
2014-08-25 18:54:01 +00:00
|
|
|
/etc/nsswitch.conf"
|
2009-03-27 11:34:11 +00:00
|
|
|
|
2015-06-03 08:43:31 +00:00
|
|
|
replaces="base-directories>=0"
|
2015-03-22 08:30:29 +00:00
|
|
|
# New system groups
|
|
|
|
system_groups="kvm:24"
|
|
|
|
|
2012-01-29 10:54:34 +00:00
|
|
|
do_install() {
|
2014-03-07 08:40:25 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
|
|
|
vmkdir usr/lib
|
2014-03-09 16:42:31 +00:00
|
|
|
vmkdir usr/lib32
|
|
|
|
ln -s ../lib/locale ${DESTDIR}/usr/lib32/locale
|
2014-03-07 08:40:25 +00:00
|
|
|
vinstall ${FILESDIR}/ld.so.lib32.conf 644 etc/ld.so.conf.d lib32.conf
|
|
|
|
fi
|
2014-03-06 21:03:09 +00:00
|
|
|
|
2009-03-27 11:34:11 +00:00
|
|
|
# Install misc config files.
|
2012-05-03 08:19:31 +00:00
|
|
|
for f in bash_logout bash_profile bashrc inputrc; do
|
2011-07-15 16:55:21 +00:00
|
|
|
vinstall ${FILESDIR}/dot_${f} 644 etc/skel .${f}
|
2009-03-27 11:34:11 +00:00
|
|
|
done
|
|
|
|
|
2011-07-15 12:45:00 +00:00
|
|
|
vinstall ${FILESDIR}/securetty 600 etc
|
2013-08-13 09:01:46 +00:00
|
|
|
for f in profile hosts host.conf issue \
|
2012-10-24 05:22:29 +00:00
|
|
|
inputrc fstab passwd group crypttab nsswitch.conf; do
|
2011-07-15 12:45:00 +00:00
|
|
|
vinstall ${FILESDIR}/${f} 644 etc
|
|
|
|
done
|
2015-03-22 08:30:29 +00:00
|
|
|
vmkdir etc/colors
|
2011-07-15 12:45:00 +00:00
|
|
|
vmkdir etc/profile.d
|
2009-03-27 11:34:11 +00:00
|
|
|
install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d
|
2015-03-22 08:30:29 +00:00
|
|
|
install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc/colors
|
2009-03-27 11:34:11 +00:00
|
|
|
|
2014-08-29 07:53:45 +00:00
|
|
|
# modprobe(8) files
|
2014-08-25 18:54:01 +00:00
|
|
|
vinstall ${FILESDIR}/usb-load-ehci-first 644 usr/lib/modprobe.d usb-load-ehci-first.conf
|
|
|
|
vinstall ${FILESDIR}/blacklist.conf 644 usr/lib/modprobe.d
|
2014-08-29 07:53:45 +00:00
|
|
|
# sysctl(8) files
|
|
|
|
vinstall ${FILESDIR}/sysctl.conf 644 usr/lib/sysctl.d void.conf
|
2010-05-18 06:33:57 +00:00
|
|
|
|
2012-06-09 07:08:05 +00:00
|
|
|
# Install common licenses, from Debian.
|
2011-07-15 12:45:00 +00:00
|
|
|
vmkdir usr/share/licenses
|
2010-05-18 06:33:57 +00:00
|
|
|
install -m644 ${FILESDIR}/licenses/* ${DESTDIR}/usr/share/licenses
|
2011-07-10 11:02:46 +00:00
|
|
|
|
|
|
|
# vkpurge
|
2015-03-22 08:30:29 +00:00
|
|
|
vbin ${FILESDIR}/vkpurge
|
2012-07-08 12:17:03 +00:00
|
|
|
|
|
|
|
# Install default dracut configuration.
|
2012-07-08 12:18:57 +00:00
|
|
|
vinstall ${FILESDIR}/dracut.conf.d.voidlinux.conf 644 \
|
2014-12-10 08:43:59 +00:00
|
|
|
usr/lib/dracut/dracut.conf.d 00-void.conf
|
2012-11-17 10:43:46 +00:00
|
|
|
|
|
|
|
# Create /proc/self/mounts -> /etc/mtab symlink.
|
|
|
|
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
|
2015-03-22 08:30:29 +00:00
|
|
|
|
|
|
|
# udev rules
|
|
|
|
vmkdir usr/lib/udev/rules.d
|
|
|
|
install -m644 ${FILESDIR}/*.rules ${DESTDIR}/usr/lib/udev/rules.d
|
2009-03-27 11:34:11 +00:00
|
|
|
}
|