Dynamically attach and detach USB devices to a libvirt guest
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
931 B

# Maintainer: David Thurstenson (thurstylark@gmail.com)
pkgname=libvirt-usb-hotplug
pkgver=0.1
pkgrel=1
pkgdesc="Attach and detach USB devices from libvirt guests based on udev rules"
arch=(any)
url="https://git.thurstylark.com/libvirt-usb-hotplug.git"
license=('GPL')
depends=('systemd'
'udev'
'libvirt')
backup=()
source=("libvirt-usb-hotplug.bash"
"libvirt-usb-hotplug.conf"
"libvirt-usb-hotplug.rules"
"libvirt-usb-hotplug@.service"
)
sha256sums=()
package() {
install -Dm755 \
"${srcdir}"/libvirt-usb-hotplug.bash \
"${pkgdir}"/usr/bin/libvirt-usb-hotplug
install -Dm644 \
"${srcdir}"/libvirt-usb-hotplug.conf \
"${pkgdir}"/etc/libvirt-usb-hotplug.conf
install -Dm644 \
"${srcdir}"/libvirt-usb-hotplug.rules \
"${pkgdir}"/usr/lib/udev/rules.d/99-libvirt-usb-hotplug.rules
install -Dm644 \
"${srcdir}"/libvirt-usb-hotplug@.service \
"${pkgdir}"/usr/lib/systemd/system/libvirt-usb-hotplug@.service
}