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