aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEnno Boland <gottox@voidlinux.org>2020-06-18 07:00:40 +0000
committerEnno Boland <gottox@voidlinux.org>2020-06-18 07:00:40 +0000
commit9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa (patch)
treec04199831ef0f01dcbd4d8315df4a423a5d1589f
parenta2d3016163326277ce05e663731ba134119ee6f2 (diff)
downloadvoid-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.tar
void-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.tar.gz
void-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.tar.bz2
void-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.tar.lz
void-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.tar.xz
void-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.tar.zst
void-packages-9b72ff8ea9b0bd5353e037b06bd4d421ea2e48fa.zip
sispmctl: add group and udev rules
-rw-r--r--srcpkgs/sispmctl/files/60-sispmctl.rules5
-rw-r--r--srcpkgs/sispmctl/template7
2 files changed, 11 insertions, 1 deletions
diff --git a/srcpkgs/sispmctl/files/60-sispmctl.rules b/srcpkgs/sispmctl/files/60-sispmctl.rules
new file mode 100644
index 00000000000..45968160e3b
--- /dev/null
+++ b/srcpkgs/sispmctl/files/60-sispmctl.rules
@@ -0,0 +1,5 @@
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd10", GROUP="sispmctl", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd11", GROUP="sispmctl", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd12", GROUP="sispmctl", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd13", GROUP="sispmctl", MODE="660"
+SUBSYSTEM=="usb", ATTR{idVendor}=="04b4", ATTR{idProduct}=="fd15", GROUP="sispmctl", MODE="660"
diff --git a/srcpkgs/sispmctl/template b/srcpkgs/sispmctl/template
index 12afa92a6f4..093dd87717a 100644
--- a/srcpkgs/sispmctl/template
+++ b/srcpkgs/sispmctl/template
@@ -1,7 +1,7 @@
# Template file for 'sispmctl'
pkgname=sispmctl
version=4.1
-revision=1
+revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="libusb-compat-devel"
@@ -11,3 +11,8 @@ license="GPL-2.0-or-later"
homepage="http://sispmctl.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=bf5177e085cb0168e18e4cfb69645c3095da149ed46f5659d6e757bde3548e40
+system_groups="sispmctl"
+
+post_install() {
+ vinstall ${FILESDIR}/60-sispmctl.rules 644 usr/lib/udev/rules.d/
+}