--- /dev/null
+AUX userio.h 1412 SHA256 3fe41c01269c3b102459fddb2668ec1f6e70d9787bf06a94daf9d14d052bd431 SHA512 da06f37543225478a6aa3d2baf6be106eee99a484d0a02353e17ff5aded45547edecbe82e52ec33b5303e1b10c94a4cd244eb160316b77957434b672ccf14ff3 WHIRLPOOL 53e49a2cf2c10be4e583c68494df591f11fcce08436452553fdcff2f569a7213801c11cd2fca34b98dc516ec2f38f1bd916edb8b67608144710b9e40ebae3b37
+DIST v1.0.1.tar.gz 22702 SHA256 6e2a47b874126df149f05e3a3afee6d6662009050e3a72f9d29750a160abb0f1 SHA512 e1114d20998227b4c88edcc69412b8a7e98d5c0586d6ca874e3efb1ed4b59adc5a86b17431137fd3dfa3bd6b3f78dcc3b63a6bc2ae67bb2ef1e835966f010ad8 WHIRLPOOL 50e6638d276e617565980abfd9ad55de181bf94e756f94bf0e5c45711bd217ab1a512bf8b00baa083d75586c8ab33505a5746d2fde83e7437414145b0d35311e
+EBUILD ps2emu-1.0.1.ebuild 540 SHA256 0404599a75ce0ba9437b7d00d2e18f7aa5a36e9b74cddfef48aa578f4c4c61ea SHA512 f765c84017fe183af2bfb10b6a3909120e420a239ed3eeed55cf15bbef46cedc5976c194231fc9c9c495241ec825c959ea64497df46952990556d4504860d220 WHIRLPOOL e99ec5dee544123f8d90c01af530ed0387ce5fbada60a0855711d891d74ad6b90a489962232b6a3fe753ed16b07d8a28976e338eb6ae80f280344ed840d791dd
--- /dev/null
+/*
+ * userio.h
+ * Copyright (C) 2015 Red Hat
+ * Copyright (C) 2015 Lyude (Stephen Chandler Paul) <cpaul@redhat.com>
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * This is the public header used for user-space communication with the userio
+ * driver. __attribute__((__packed__)) is used for all structs to keep ABI
+ * compatibility between all architectures.
+ */
+
+#ifndef _USERIO_H
+#define _USERIO_H
+
+#include <linux/types.h>
+
+#define USERIO_CMD_REGISTER 0
+#define USERIO_CMD_SET_PORT_TYPE 1
+#define USERIO_CMD_SEND_INTERRUPT 2
+
+/*
+ * userio Commands
+ * All commands sent to /dev/userio are encoded using this structure. The type
+ * field should contain a USERIO_CMD* value that indicates what kind of command
+ * is being sent to userio. The data field should contain the accompanying
+ * argument for the command, if there is one.
+ */
+struct userio_cmd {
+ __u8 type;
+ __u8 data;
+} __attribute__((__packed__));
+
+#endif /* !_USERIO_H */
--- /dev/null
+# Copyright © 2015 Nick Bowler
+# License GPLv3+: GNU General Public License version 3 or later.
+# There is NO WARRANTY, to the extent permitted by law.
+
+EAPI=5
+
+inherit autotools
+
+DESCRIPTION="Tools for recording and playing back PS/2 devices on Linux"
+HOMEPAGE="https://github.com/Lyude/ps2emu"
+SRC_URI="https://github.com/Lyude/ps2emu/archive/v1.0.1.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="dev-libs/glib:2"
+DEPEND="virtual/pkgconfig
+ $RDEPEND"
+
+src_prepare() {
+ cp "$FILESDIR/userio.h" ps2emu-kmod/
+ eautoreconf
+}