diff options
author | 2025-01-07 21:22:22 +0100 | |
---|---|---|
committer | 2025-01-07 21:22:22 +0100 | |
commit | 25998cb07d913ea786ede3c6fa4929033a608340 (patch) | |
tree | f4b157788a36162c4712c278b422213dc37cee87 /sys-kernel/vtty/vtty-0_p20250105.ebuild | |
parent | sys-kernel/vtty: patches for 6.12 kernel (diff) | |
download | ebuilds-25998cb07d913ea786ede3c6fa4929033a608340.tar.xz |
sys-kernel/vtty: add 0_p20250105, drop 0_p20230917-r1
Diffstat (limited to 'sys-kernel/vtty/vtty-0_p20250105.ebuild')
-rw-r--r-- | sys-kernel/vtty/vtty-0_p20250105.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/sys-kernel/vtty/vtty-0_p20250105.ebuild b/sys-kernel/vtty/vtty-0_p20250105.ebuild new file mode 100644 index 0000000..00180ca --- /dev/null +++ b/sys-kernel/vtty/vtty-0_p20250105.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit linux-mod-r1 udev + +DESCRIPTION="Virtual serial port kernel module" +HOMEPAGE="https://github.com/anszom/vtty" +COMMIT="7ab72cec2dbb59f0963d55f27cbc57025fc6f579" +SRC_URI="https://github.com/anszom/vtty/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND="virtual/udev" +DEPEND="${RDEPEND}" + +src_compile() { + local modlist=( vtty ) + local modargs=( KDIR="${KV_OUT_DIR}" ) + + linux-mod-r1_src_compile +} + +src_install() { + linux-mod-r1_src_install + + udev_newrules - 69-vtty.rules <<-EOF + # do not edit this file, it will be overwritten on update + # + KERNEL=="vtmx", SUBSYSTEM=="misc", TAG+="uaccess" + KERNEL=="ttyV[0-9]*", SUBSYSTEM=="tty", TAG+="uaccess" + EOF +} + +pkg_postinst() { + linux-mod-r1_pkg_postinst + udev_reload +} + +pkg_postrm() { + udev_reload +} |