mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
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
3 changed files with 15 additions and 6 deletions
1
srcpkgs/base-files/files/66-kvm.rules
Normal file
1
srcpkgs/base-files/files/66-kvm.rules
Normal file
|
@ -0,0 +1 @@
|
||||||
|
KERNEL=="kvm", GROUP="kvm", MODE="0660"
|
|
@ -17,12 +17,12 @@ if [ -z "$USER_LS_COLORS" ]; then
|
||||||
[ -e "$colors" ] && COLORS="$colors" && break
|
[ -e "$colors" ] && COLORS="$colors" && break
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -z "$COLORS" ] && [ -e "/etc/DIR_COLORS.256color" ] && \
|
[ -z "$COLORS" ] && [ -e "/etc/colors/DIR_COLORS.256color" ] && \
|
||||||
[ "x`tput colors 2>/dev/null`" = "x256" ] && \
|
[ "x`tput colors 2>/dev/null`" = "x256" ] && \
|
||||||
COLORS="/etc/DIR_COLORS.256color"
|
COLORS="/etc/colors/DIR_COLORS.256color"
|
||||||
|
|
||||||
if [ -z "$COLORS" ]; then
|
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
|
[ -e "$colors" ] && COLORS="$colors" && break
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'base-files'
|
# Template file for 'base-files'
|
||||||
pkgname=base-files
|
pkgname=base-files
|
||||||
version=0.119
|
version=0.120
|
||||||
revision=1
|
revision=1
|
||||||
bootstrap=yes
|
bootstrap=yes
|
||||||
depends="base-directories xbps-triggers"
|
depends="base-directories xbps-triggers"
|
||||||
|
@ -25,6 +25,9 @@ conf_files="
|
||||||
/etc/crypttab
|
/etc/crypttab
|
||||||
/etc/nsswitch.conf"
|
/etc/nsswitch.conf"
|
||||||
|
|
||||||
|
# New system groups
|
||||||
|
system_groups="kvm:24"
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
||||||
vmkdir usr/lib
|
vmkdir usr/lib
|
||||||
|
@ -43,9 +46,10 @@ do_install() {
|
||||||
inputrc fstab passwd group crypttab nsswitch.conf; do
|
inputrc fstab passwd group crypttab nsswitch.conf; do
|
||||||
vinstall ${FILESDIR}/${f} 644 etc
|
vinstall ${FILESDIR}/${f} 644 etc
|
||||||
done
|
done
|
||||||
|
vmkdir etc/colors
|
||||||
vmkdir etc/profile.d
|
vmkdir etc/profile.d
|
||||||
install -m644 ${FILESDIR}/*.sh ${DESTDIR}/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
|
# modprobe(8) files
|
||||||
vinstall ${FILESDIR}/usb-load-ehci-first 644 usr/lib/modprobe.d usb-load-ehci-first.conf
|
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
|
install -m644 ${FILESDIR}/licenses/* ${DESTDIR}/usr/share/licenses
|
||||||
|
|
||||||
# vkpurge
|
# vkpurge
|
||||||
vinstall ${FILESDIR}/vkpurge 755 usr/sbin vkpurge
|
vbin ${FILESDIR}/vkpurge
|
||||||
|
|
||||||
# Install default dracut configuration.
|
# Install default dracut configuration.
|
||||||
vinstall ${FILESDIR}/dracut.conf.d.voidlinux.conf 644 \
|
vinstall ${FILESDIR}/dracut.conf.d.voidlinux.conf 644 \
|
||||||
|
@ -66,4 +70,8 @@ do_install() {
|
||||||
|
|
||||||
# Create /proc/self/mounts -> /etc/mtab symlink.
|
# Create /proc/self/mounts -> /etc/mtab symlink.
|
||||||
ln -sf /proc/self/mounts ${DESTDIR}/etc/mtab
|
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…
Add table
Reference in a new issue