base-files: update to 0.120.
- Create kvm system group (gid 24) and add udev rule to assign perms. - Move vkpurge to bin. - Move DIR_COLORS to /etc/colors.
This commit is contained in:
parent
bc6aec17e2
commit
33d781ff19
|
@ -0,0 +1 @@
|
|||
KERNEL=="kvm", GROUP="kvm", MODE="0660"
|
|
@ -17,12 +17,12 @@ if [ -z "$USER_LS_COLORS" ]; then
|
|||
[ -e "$colors" ] && COLORS="$colors" && break
|
||||
done
|
||||
|
||||
[ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.256color" ] && \
|
||||
[ -z "$COLORS" ] && [ -e "/etc/colors/DIR_COLORS.256color" ] && \
|
||||
[ "x`tput colors 2>/dev/null`" = "x256" ] && \
|
||||
COLORS="/etc/DIR_COLORS.256color"
|
||||
COLORS="/etc/colors/DIR_COLORS.256color"
|
||||
|
||||
if [ -z "$COLORS" ]; then
|
||||
for colors in "/etc/DIR_COLORS.$TERM" "/etc/DIR_COLORS" ; do
|
||||
for colors in "/etc/colors/DIR_COLORS.$TERM" "/etc/colors/DIR_COLORS" ; do
|
||||
[ -e "$colors" ] && COLORS="$colors" && break
|
||||
done
|
||||
fi
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Template file for 'base-files'
|
||||
pkgname=base-files
|
||||
version=0.119
|
||||
version=0.120
|
||||
revision=1
|
||||
bootstrap=yes
|
||||
depends="base-directories xbps-triggers"
|
||||
|
@ -25,6 +25,9 @@ conf_files="
|
|||
/etc/crypttab
|
||||
/etc/nsswitch.conf"
|
||||
|
||||
# New system groups
|
||||
system_groups="kvm:24"
|
||||
|
||||
do_install() {
|
||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||
vmkdir usr/lib
|
||||
|
@ -43,9 +46,10 @@ do_install() {
|
|||
inputrc fstab passwd group crypttab nsswitch.conf; do
|
||||
vinstall ${FILESDIR}/${f} 644 etc
|
||||
done
|
||||
vmkdir etc/colors
|
||||
vmkdir etc/profile.d
|
||||
install -m644 ${FILESDIR}/*.sh ${DESTDIR}/etc/profile.d
|
||||
install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc
|
||||
install -m644 ${FILESDIR}/DIR_COLORS* ${DESTDIR}/etc/colors
|
||||
|
||||
# modprobe(8) files
|
||||
vinstall ${FILESDIR}/usb-load-ehci-first 644 usr/lib/modprobe.d usb-load-ehci-first.conf
|
||||
|
@ -58,7 +62,7 @@ do_install() {
|
|||
install -m644 ${FILESDIR}/licenses/* ${DESTDIR}/usr/share/licenses
|
||||
|
||||
# vkpurge
|
||||
vinstall ${FILESDIR}/vkpurge 755 usr/sbin vkpurge
|
||||
vbin ${FILESDIR}/vkpurge
|
||||
|
||||
# Install default dracut configuration.
|
||||
vinstall ${FILESDIR}/dracut.conf.d.voidlinux.conf 644 \
|
||||
|
@ -66,4 +70,8 @@ do_install() {
|
|||
|
||||
# Create /proc/self/mounts -> /etc/mtab symlink.
|
||||
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
|
||||
|
||||
# udev rules
|
||||
vmkdir usr/lib/udev/rules.d
|
||||
install -m644 ${FILESDIR}/*.rules ${DESTDIR}/usr/lib/udev/rules.d
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue