x11-drivers/displaylink-driver: New package
This might have some issues. If so, let me know. Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Ryan Fox <flewkey@2a03.party>
This commit is contained in:
parent
b9b0eccd7e
commit
5b587dee5f
4
x11-drivers/displaylink-driver/Manifest
Normal file
4
x11-drivers/displaylink-driver/Manifest
Normal file
@ -0,0 +1,4 @@
|
||||
AUX dlm.init.d 454 BLAKE2B 0497e1f1b12943f2ef55f2de96159bb910c96d92977000ced45faacbb435fc06d53cd4f65dde23e770db63df2bc1ef8bfb150d9fa9ec7388b200e78c3e757ba8 SHA512 468360a1a2f516bcb729c1d6e7ce349294de8691a1920707b94048f873a950d18feecc8c5f1f611718c808532e7c0346f359916f30c17cf3514c205d7c196c08
|
||||
DIST displaylink-driver-5.4.1.55.174.zip 14500327 BLAKE2B 55a2e7dfc104cc785d49a2abe345d6a26639797bfe26e83a0e6910d5c1d7275e55b1e1794b91089adf728e61e535a81162c633230fabc54c1494969004fbd796 SHA512 075d69e96b2cc86c888206507d710c91073e944365759258b5b81086f126ee80386fd3dbddee8ee2b59e89b8474899cd26f191a307d41af8a76b08ca5bc2b18a
|
||||
EBUILD displaylink-driver-5.4.1.55.174.ebuild 1257 BLAKE2B 2b797e07af15ac907e24a04fc04982b9f56476c26b0bfe2ff9ffdd9e6dba47262ee23ea7233ec5ffe29316141355c858cd02604ba2161a666d886b83b0790874 SHA512 d4f1ddd6a94c8ba4fc3319d898de2c9cab31635be4ea059d7635971a2e234358653d28bd8db9ac951ffd873bff97b99b6286d32d343aac3eb5333882852a670e
|
||||
MISC metadata.xml 323 BLAKE2B 0fccf5a219e12db367cf9bae8f8df08a8af86edd49ce0e6948aa5250415f1123f4c4ba0a5dd44b8242425a4965e70a2c63e2e73fa61eed370c47543ccd0224ed SHA512 5f0ce854399dfd6e9ebcf6f9b8a5ed26ad0a13ddac9a185c63033332801706f126bb2b09977319e984687da529381123f5a31693d7d8a0a648212fba0e01d2e5
|
@ -0,0 +1,54 @@
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
AR_DATE="2021-09"
|
||||
AR_NAME="DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu5.4.1-EXE.zip"
|
||||
UBUNTU_VER="1604"
|
||||
|
||||
MY_PV=$(ver_rs 3 '-')
|
||||
MY_P="${PN}-${MY_PV}"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
SRC_URI="https://www.synaptics.com/sites/default/files/exe_files/${AR_DATE}/${AR_NAME} -> ${P}.zip"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
DESCRIPTION="Driver for modern DisplayLink devices"
|
||||
HOMEPAGE="http://www.displaylink.com/downloads/ubuntu"
|
||||
LICENSE="DisplayLink-EULA"
|
||||
SLOT="0"
|
||||
|
||||
DEPEND="app-arch/unzip"
|
||||
RDEPEND="
|
||||
virtual/libusb
|
||||
x11-libs/libevdi
|
||||
"
|
||||
|
||||
QA_PREBUILT="opt/${P}/DisplayLinkManager"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
sh "${WORKDIR}/${MY_P}.run" --noexec --keep
|
||||
cp "${FILESDIR}/dlm.init.d" "${WORKDIR}/dlm.init.d"
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
sed -i "s/@P@/${P}/" "${WORKDIR}/dlm.init.d"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto "/opt/${P}"
|
||||
insinto "/opt/${P}"
|
||||
case "${ARCH}" in
|
||||
amd64) MY_ARCH="x64" ;;
|
||||
*) MY_ARCH="${ARCH}" ;;
|
||||
esac
|
||||
ARCH_DIR="${S}/${MY_ARCH}-ubuntu-${UBUNTU_VER}"
|
||||
doexe "${ARCH_DIR}/DisplayLinkManager"
|
||||
doins "${S}/ella-dock-release.spkg"
|
||||
doins "${S}/firefly-monitor-release.spkg"
|
||||
doins "${S}/ridge-dock-release.spkg"
|
||||
newinitd "${WORKDIR}/dlm.init.d" "dlm"
|
||||
}
|
18
x11-drivers/displaylink-driver/files/dlm.init.d
Normal file
18
x11-drivers/displaylink-driver/files/dlm.init.d
Normal file
@ -0,0 +1,18 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2021 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
name="DisplayLink Manager"
|
||||
description="Driver for modern DisplayLink devices"
|
||||
dir="/opt/@P@"
|
||||
|
||||
start() {
|
||||
modprobe -q evdi
|
||||
start-stop-daemon --start --background --chdir ${dir} --make-pidfile --pidfile /run/dlm.pid --exec ${dir}/DisplayLinkManager
|
||||
eend $?
|
||||
}
|
||||
|
||||
stop() {
|
||||
start-stop-daemon --stop --pidfile /run/dlm.pid
|
||||
eend $?
|
||||
}
|
11
x11-drivers/displaylink-driver/metadata.xml
Normal file
11
x11-drivers/displaylink-driver/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>flewkey@2a03.party</email>
|
||||
<name>Ryan Fox</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">DisplayLink/evdi</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
Reference in New Issue
Block a user