2011-06-23 01:22:24 +00:00
|
|
|
# Template file for 'base-files'
|
|
|
|
pkgname=base-files
|
2013-03-27 08:36:42 +00:00
|
|
|
version=0.82
|
2012-06-09 07:08:05 +00:00
|
|
|
revision=1
|
2013-04-12 06:55:23 +00:00
|
|
|
bootstrap=yes
|
|
|
|
makedepends="base-directories xbps-triggers"
|
2012-07-08 12:17:03 +00:00
|
|
|
short_desc="Void Linux base system files"
|
2009-03-27 11:34:11 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-27 07:04:38 +00:00
|
|
|
homepage="http://www.voidlinux.eu"
|
2011-07-15 12:45:00 +00:00
|
|
|
license="Public domain"
|
2009-03-27 11:34:11 +00:00
|
|
|
|
2012-01-29 10:54:34 +00:00
|
|
|
do_install() {
|
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
|
2012-10-05 13:24:43 +00:00
|
|
|
for f in profile hosts host.conf issue lsb-release \
|
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
|
|
|
|
vmkdir etc/profile.d
|
2009-03-27 11:34:11 +00:00
|
|
|
install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d
|
2009-03-27 15:39:55 +00:00
|
|
|
install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc
|
2009-03-27 11:34:11 +00:00
|
|
|
|
2011-07-15 12:45:00 +00:00
|
|
|
vinstall ${FILESDIR}/usb-load-ehci-first 644 etc/modprobe.d \
|
|
|
|
usb-load-ehci-first.conf
|
|
|
|
vinstall ${FILESDIR}/blacklist.conf 644 etc/modprobe.d
|
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
|
2012-05-29 13:25:49 +00:00
|
|
|
vinstall ${FILESDIR}/vkpurge 755 usr/sbin 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 \
|
|
|
|
etc/dracut.conf.d voidlinux.conf
|
2012-11-17 10:43:46 +00:00
|
|
|
|
|
|
|
# Create /proc/self/mounts -> /etc/mtab symlink.
|
|
|
|
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
|
2009-03-27 11:34:11 +00:00
|
|
|
}
|
2013-04-12 06:55:23 +00:00
|
|
|
|
|
|
|
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 etc
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|