Taken from libinput, checks for signed-off-by and other things. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>