diff --git a/app-misc/tpconfig/files/tpconfig-r1 b/app-misc/tpconfig/files/tpconfig-r1 new file mode 100644 index 0000000000000..10020958a03da --- /dev/null +++ b/app-misc/tpconfig/files/tpconfig-r1 @@ -0,0 +1,22 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +depend() { + before display-manager +} + +start() { + ebegin "Loading tpconfig options..." + /usr/bin/tpconfig ${TPOPTIONS} > /dev/null 2> /tmp/tpconfig.start + if [ -z "`cat /tmp/tpconfig.start 2> /dev/null`" ]; then + eend 0 + else + eend 1 + fi +} + +stop() { + ebegin "Stoping tpconfig (this does nothing)..." + eend 0 +} diff --git a/app-misc/tpconfig/tpconfig-3.1.3-r3.ebuild b/app-misc/tpconfig/tpconfig-3.1.3-r3.ebuild new file mode 100644 index 0000000000000..b80c3d28c2fda --- /dev/null +++ b/app-misc/tpconfig/tpconfig-3.1.3-r3.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit toolchain-funcs + +DESCRIPTION="Touchpad config for ALPS and Synaptics TPs. Controls tap/click behaviour" +HOMEPAGE="http://www.compass.com/synaptics/" +SRC_URI="http://www.compass.com/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +src_compile() { + emake CC="$(tc-getCC)" +} + +src_install() { + einstalldocs + dobin "${PN}" + newinitd "${FILESDIR}"/"${PN}-r1" "${PN}" + newconfd "${FILESDIR}"/"${PN}.conf" "${PN}" +}