summaryrefslogtreecommitdiff
path: root/rules
AgeCommit message (Collapse)Author
2013-08-01fix build system error introduced in c8cbcb8899eudev/v1.2Ian Stakenvicius
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-08-01provide alternative 80-drivers.rules for --disable-kmodIan Stakenvicius
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-07-30rules: bring up to date with upstreamAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-07-24Switch from external keymaps to internal (hwdb) keymapsIan Stakenvicius
This commit imports the new internal keyboard handling from upstream. This is a combination of many upstream commits, including those that added code, removed old code, and updated the hwdb. Some commits (hwdb ones specifically) were unrelated but brought in anyways to keep the whole hwdb consistent. Each upstream commit included is as follows: 9d7d42bc406a2ac04639674281ce3ff6beeda790 - internal keymap support 0c959b39175b126fdb70ae00de37ca6d9c8ca3a1 - hwdb: keyboard -- add file e8193554925a22b63bef0e77b8397b56d63a91ff - hwdb: keyboard -- update comments c79d894d590fc9df4861738555cc43c477e33376 - hwdb: import data aedc2eddd16e48d468e6ad0aea2caf00c7d37365 - hwdb: keyboard update 97a9313cafccf772ce03f5ebd36fe4d9d8412583 - hwdb: drop non-existant Samsung 900XC3 from keymap ddc77f62244bb41d5c8261517e2e1ff1b763fc94 - switch from udev keymaps to hwdb 0c3815773331b263713f4f7b9d80bc1ca159338e - also remove keymaps-force-release directory 1b6bce89b3383904d0dab619dd38bff673f7286e - keymap: re-add Logitech USB corded/cordless models bf89b99c5a39115112c2eda4c2103e2db54988d2 - 60-keyboard.hwdb: Fix syntax error ce39bb6909578017aa10031638e724e038f0b859 - hwdb: data update, upstream 884c86812c51479496edd50b278383d7bb67baf0 - rules: keyboard - use builtin command All code from each of the above commits is attributed to the original authors. There were some adjustments made in order to support the code differences between upstream and eudev, which was done by myself. Also of note is that the code can still be disabled via the --disable-keymaps configure option, which was removed from upstream. Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-07-06rules: updates from upstreamAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-07-03create /etc/udev/rules.d target on installIan Stakenvicius
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-06-26keymap: Apply to all Latitude and Precision modelsMartin Pitt
https://launchpad.net/bugs/1193147 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-03rules/95-keymap.rules: move comment since udev-test.pl fails otherwiseAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-03rules: bring some rules up to date with upstreamAnthony G. Basile
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-03keymap: Add DIXONSPMartin Pitt
https://launchpad.net/bugs/1157334
2013-06-03keymap: Add BenQ JoyBookMartin Pitt
https://launchpad.net/bugs/727139
2013-06-03keymap: Add Samsung 900XC3Martin Pitt
https://launchpad.net/bugs/1012365
2013-06-03keymap: Add support for Eject button on MSI GE60/GE70Johan Heikkilä
2013-06-02rules/95-keymap.rules: fix typoMartin Pitt
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02keymap: Add Logitech USB (iTouch)Martin Pitt
https://launchpad.net/bugs/1152377 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-06-02keymap: Add HP EliteBook 8460pPali Rohar
Taken from https://code.launchpad.net/~pali/ubuntu/raring/udev/hp-elitebook-8460p/+merge/157420 Signed-off-by: Martin Pitt <martinpitt@gnome.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-09rules/Makefile.am: conditionally install 80-net-name-slot.rulesAnthony G. Basile
We do not want to install 80-net-name-slot.rules if we --enable-rule-generator. In fact doing so will switch to the predictable network interface names. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-07rules/40-mem-null.rules: coalesce with rules/50-udev-default.rulesAnthony G. Basile
There is no reason to keep this rule separate and it works fine when incuded in 50-udev-default.rules. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-04Remove 75-persistent-net-generator.rules reintroduced in commit ef0ac643Ian Stakenvicius
75-persistent-net-generator.rules is in the rule_generator subdir, do not try and install from here. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-04Restored the rule generator bits from udev-171Ian Stakenvicius
This restores the rule generator scripts for the persistent network and optical device rule generator scripts that were removed after udev-171, and re-introduces their installation to the build system. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-04-02Correct permissions on /dev/null and friends for 2.6.32Anthony G. Basile
This sets the permissions on null, zero, full, random and urandom to 666 which is needed for older kernels. This is part of Gentoo's 40-gentoo.rules which can now be dropped from Gentoo's ebuild. X-gentoo-Bug: 457868 X-gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=457868 Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02keymap: Remap microphone mute and touchpad toggle for Lenovo U300sOzan Çağlayan
Separate out Ideapad U300s to its own line and add Microphone mute key. Signed-off-by: Martin Pitt <martinpitt@gnome.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02keymap: Fix touchpad toggling on Lenovo IdeaPad U300sOzan Çağlayan
IdeaPad U300s needs mapping 0xf1 to f21 just like Lenovo V480. Signed-off-by: Martin Pitt <martinpitt@gnome.org> Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02udev: make firmware loading optional and disable by defaultTom Gundersen
Distros that whish to support old kernels should set --with-firmware-dirs="/usr/lib/firmware/updates:/usr/lib/firmware" to retain the old behaviour. Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-04-02rules: updates from upstreamAnthony G. Basile
Authors include: Tollef Fog Heen Kay Sievers Tom Gundersen Tony Camuso Lennart Poettering Martin Pitt Harald Hoyer Michal Schmidt Matthew Garrett See http://cgit.freedesktop.org/systemd/systemd/log/rules Signed-off-by: Anthony G. Basile <blueness@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-03-14keymaps: Add HP HDX 9494NRMartin Pitt
Add touchpad and www keys: https://bugzilla.redhat.com/show_bug.cgi?id=757928 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14keymap: Add support for the brower hotkey on the HP ProBookAyan George
https://bugs.launchpad.net/bugs/1105191 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14keymap: Add Samsung 700TMartin Pitt
https://bugzilla.redhat.com/show_bug.cgi?id=879691 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-03-14keymap: Update the list of Samsung Series 9 modelsAlessandro Crismani
Currently, keymaps are provided only for the NP90X3A laptop. Samsung introduced updated models, codenamed 900X3B, 900X3C, 900X4B, 900X4C, which are currently not matched by udev rules. This patch includes the newer modules in udev rules and move the samsung-n90x3a file defining keys to a more generic samsung-series-9 file. The patch was tested on a 900X4C laptop, and other people reported that the rules also work for 900X3B and 900X3C ones. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Make blkid optionalIan Stakenvicius
Embedded systems may not want to include util-linux when they do not intend to use blkid functionality Modified from original author's commit to not install 60-persistent-storage.rules if blkid is disabled systemd commit f553b3b1074151200187df916427a1468186435e Original author: Anders Olofsson <Anders.Olofsson@axis.com> Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-28Port new net_id capabilities from systemd-udev-197Ian Stakenvicius
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2013-01-14Correct /dev/null permissions on older kernelsRichard Yao
Older kernels rely on udev to set proper permissions on /dev/null. Commit 378f2e074e38490103f999173bf717a5394170f8 by Kay Sievers removed the rule that set these permissions, which caused a regression. We reintroduce that rule to restore compatibility. Reported-by: Stephen Klimaszewski <steev@gentoo.org> Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
2013-01-04Fixed some comments relating to udevlibexecdir pathsIan Stakenvicius
Keymaps rules had stated to add or modify /usr/lib/udev/* files instead of using generic paths, and there was no mention of /etc/udev/* being valid even though it is (and is the better way to do system-specific modifications)
2012-12-06Restored persistent-net-generator rules as per issue 13Ian Stakenvicius
2012-11-24Fix paths: test/udev-test.pl now works under sudo make distcheckAnthony G. Basile
We move the test-udev.c and test-libudev.c from src/test to test. This corrects the a problem with hard coded relative paths finding the test/test/sys directory created by test/udev-test.pl. This commit draws heavily from nvinson patch in https://github.com/gentoo/eudev/pull/20 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Consolidate configuration of all installation paths into configure.acAnthony G. Basile
The configuration of the installation paths for various components was scattered between the main configure.ac file and the various Makefile.am's. These components are: udev config file, hwdb, keymaps and force-release keymaps and the rules. This commit consolidates them all into one point in configure.ac and anticipates the inclusion of new AM_CPPFLAGS of the form -DHWDB_BIN=@udevhwdbdir@ as upstream has done, so it is easier to address issues like: https://github.com/gentoo/eudev/issues/17 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-23Permit users to disable module loading supportRichard Yao
Inspired by e30431623a7d871da123cc37055ac49abf2c20ea from systemd. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-23Reintroduce blkid-kmodRichard Yao
This opens the door to using disabling the use of kmod from autotools. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-22Make udevlibexecdir be substituted out of configure and assigned ↵Ian Stakenvicius
${rootlibdir}/udev instead of ${root}/lib/udev
2012-11-21Fixed a syntax errorIan Stakenvicius
2012-11-20Reintroduce keymaps build and testAnthony G. Basile
This commit reintroduces code to 1) build src/keymap 2) test keymap/Makefile.am that it has all the key maps listed 3) test that all the key names in keymap/* are in <linux/input.h> 4) do a syntax check on rules/*.rules which now includes 95-keymap.rules and 95-keyboard-force-release.rules For #4, the regex expressions in rule-syntax-check.py had to be updated. They do not allow trailing comments via # comment, and I did not include that. A rule in 95-keymap.rules had to have its comment moved from the end to another line. Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
2012-11-19Reintroduce blkid-builtinRichard Yao
The build failure that prompted its removal has been resolved. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17Eliminate blkid-builtinRichard Yao
Changes to rules were introduced by 7c2dee4a4d7f1b264031daaee786a8fe429884e1 while builtin-blkid support was introduced in other commits. The removal of systemd resulted in this code causing linker errors. This code adds complexity with no clear benefit, so we remove it. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-17Eliminate kmod dependencyRichard Yao
Changes to rules were introduced by 06316d9f1a91b4d3efdb7402e72498cb3deb1806 while kmod support was introduced in other commits. A ton of commits were made involving kmod and it is quite clear that it is broken, so we remove it. This changes our rules to depend on modprobe. As long as the modprobe binary is in /, and not /usr, udev module loading should function properly. Signed-off-by: Richard Yao <ryao@gentoo.org>
2012-11-15Final step of revamping the build systemAnthony G. Basile
The structure of the source tree is basically correct and this is about as far as we can go without hacking at the C code.
2012-11-15Second step of revamping the build systemAnthony G. Basile
The original Makefile.am was drawn to the top level. This commit breaks it out into the various directories with SUBDIRS connecting them. This makes each directory easier to maintain.
2012-11-15Isolation of udev code from remaining systemdAnthony G. Basile
This commit is a first attempt to isolate the udev code from the remaining code base. It intentionally does not modify any files but purely delete files which, on a first examination, appear to not be needed. This is a sweeping commit which may easily have missed needed code. Files can be retrieved by doing a checkout from the previous commit: git checkout 2944f347d0 -- <filename>
2012-11-09udev: net_id - add builtin to retrieve data for network devicesKay Sievers
2012-10-25rules: fix usb_id/hwdb mixup in tty-description.rulesKay Sievers
<grawity> btw, in 15ce372b75a "call 'hwdb' with --subsystem=" you actually added "usb_id --subsystem=usb" (75-tty-description.rules) <kay> ouch :)
2012-10-25rules: call hwdb for all devices with a 'modalias'Kay Sievers