void-packages/srcpkgs/fingerprint-gui/patches/fix-udev-rules-groups.patch
Đoàn Trần Công Danh be5369a0cb srcpkgs/f*: convert patches to -Np1
* fpc is kept at -Np0

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

21 lines
1.9 KiB
Diff

--- a/upek/91-fingerprint-gui-upek.rules 2017-01-12 19:48:38.325444912 +0300
+++ b/upek/91-fingerprint-gui-upek.rules 2017-01-12 19:50:35.799120728 +0300
@@ -7,6 +7,10 @@
ATTRS{idVendor}=="147e", ATTRS{idProduct}=="100[0123]", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="147e", ATTRS{idProduct}=="300[01]", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
ATTRS{idVendor}=="147e", ATTRS{idProduct}=="500[23]", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0018", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="003d", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0050", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0092", SYMLINK+="input/touchchip-%k", MODE="0664", GROUP="plugdev"
# enable power saving
ATTRS{idVendor}=="0483", ATTRS{idProduct}=="201[56]", ATTR{power/control}=="*", ATTR{power/control}="auto"
@@ -15,3 +16,7 @@
ATTRS{idVendor}=="147e", ATTRS{idProduct}=="100[0123]", ATTR{power/control}=="*", ATTR{power/control}="auto"
ATTRS{idVendor}=="147e", ATTRS{idProduct}=="300[01]", ATTR{power/control}=="*", ATTR{power/control}="auto"
ATTRS{idVendor}=="147e", ATTRS{idProduct}=="500[23]", ATTR{power/control}=="*", ATTR{power/control}="auto"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0018", ATTR{power/control}=="*", ATTR{power/control}="auto"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="003d", ATTR{power/control}=="*", ATTR{power/control}="auto"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0050", ATTR{power/control}=="*", ATTR{power/control}="auto"
+ATTRS{idVendor}=="138a", ATTRS{idProduct}=="0092", ATTR{power/control}=="*", ATTR{power/control}="auto"