diff --git a/x11-drivers/displaylink-driver/Manifest b/x11-drivers/displaylink-driver/Manifest index 1b0dcba..6cbb1ed 100644 --- a/x11-drivers/displaylink-driver/Manifest +++ b/x11-drivers/displaylink-driver/Manifest @@ -1,4 +1,5 @@ -AUX dlm.init.d 454 BLAKE2B 0497e1f1b12943f2ef55f2de96159bb910c96d92977000ced45faacbb435fc06d53cd4f65dde23e770db63df2bc1ef8bfb150d9fa9ec7388b200e78c3e757ba8 SHA512 468360a1a2f516bcb729c1d6e7ce349294de8691a1920707b94048f873a950d18feecc8c5f1f611718c808532e7c0346f359916f30c17cf3514c205d7c196c08 +AUX dlm.init.d 474 BLAKE2B 9205c2dd739cd1e6a3d4503390fbfa2ad493b329d224b4cc7572732fe63468c71b70d13eae5e4af67d492ceb2ed6816ffee169a6bbf585ca04d7fcb96f54635e SHA512 f0c8a6c5ca1173bc15574096d70fc6f2ce6bce682ae322d5b8ea6d90f8d23298c5838ba7a189d0a65e045bde8b961b618f365dad2859b5ea5968db3ff15a9b2e +AUX openrc_start_stop_functions 85 BLAKE2B d4182ffd673627f96603fae6a51427c9ac3c1cc76f20374d2c620a5c6e74986f27798d295fcacdca2160d0cb58acf0deb3409e650feee933e7c0de0d1e9b072f SHA512 72a30aa0a5ae2ceb72c28af5981f50dfdeb89568307a7bddb0946d4530fab0c34f7fdd72b28c4c9ce26f9267180160e4634e880ee9fb9ba6544587ba67139fc8 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 +EBUILD displaylink-driver-5.4.1.55.174.ebuild 1581 BLAKE2B 312346aa665fbeb1aa1279e71ba629f08d859f1e80e9e5b41c655c5cda727088384c1907880a1761afbee0d6558c1eb912e4f1ac9e90431c881cf2997dcb1b8f SHA512 d4dea8ee1bd91bc54db574dc4cd82845eb47c75af9820ce870d2b3eb19a8482a26b280ab36065394459df6006e9b5a2dad999df858ab0984890a2adb90227c5b MISC metadata.xml 242 BLAKE2B 5f42ea428d38cea721ea75e612d85330f2f95d32ac789410403705c434c5f314b3605fc635919f1ecdc9b6e1ef1141e88905bf556594057efa746e2744d8fd60 SHA512 f433fd15570f9f402b588b7a656f7ceba57b7b124b823aaf6fe59d67aaef9ecb2b7d01c7709cfa0a2babe6fbbca6031e29581c45906a9cd35f283e88aa231028 diff --git a/x11-drivers/displaylink-driver/displaylink-driver-5.4.1.55.174.ebuild b/x11-drivers/displaylink-driver/displaylink-driver-5.4.1.55.174.ebuild index 0e8d494..6b4dc54 100644 --- a/x11-drivers/displaylink-driver/displaylink-driver-5.4.1.55.174.ebuild +++ b/x11-drivers/displaylink-driver/displaylink-driver-5.4.1.55.174.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit udev + AR_DATE="2021-09" AR_NAME="DisplayLink%20USB%20Graphics%20Software%20for%20Ubuntu5.4.1-EXE.zip" UBUNTU_VER="1604" @@ -22,25 +24,28 @@ SLOT="0" DEPEND="app-arch/unzip" RDEPEND=" virtual/libusb + virtual/udev x11-libs/libevdi " -QA_PREBUILT="opt/${P}/DisplayLinkManager" +QA_PREBUILT="opt/displaylink/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" + source "${S}/udev-installer.sh" && create_udev_rules_file "${S}/99-dlm.rules" + source "${S}/udev-installer.sh" && displaylink_bootstrapper_code > "${S}/udev.sh" + cat "${FILESDIR}/openrc_start_stop_functions" >> "${S}/udev.sh" + source "${S}/udev-installer.sh" && create_main_function >> "${S}/udev.sh" } src_install() { - exeinto "/opt/${P}" - insinto "/opt/${P}" + exeinto "/opt/displaylink" + insinto "/opt/displaylink" case "${ARCH}" in amd64) MY_ARCH="x64" ;; *) MY_ARCH="${ARCH}" ;; @@ -50,5 +55,8 @@ src_install() { doins "${S}/ella-dock-release.spkg" doins "${S}/firefly-monitor-release.spkg" doins "${S}/ridge-dock-release.spkg" - newinitd "${WORKDIR}/dlm.init.d" "dlm" + newinitd "${FILESDIR}/dlm.init.d" "dlm" + udev_dorules "${S}/99-dlm.rules" + insopts -m744 + doins "${S}/udev.sh" } diff --git a/x11-drivers/displaylink-driver/files/dlm.init.d b/x11-drivers/displaylink-driver/files/dlm.init.d index e8439e8..ee7001c 100644 --- a/x11-drivers/displaylink-driver/files/dlm.init.d +++ b/x11-drivers/displaylink-driver/files/dlm.init.d @@ -8,7 +8,7 @@ dir="/opt/@P@" start() { modprobe -q evdi - start-stop-daemon --start --background --chdir ${dir} --make-pidfile --pidfile /run/dlm.pid --exec ${dir}/DisplayLinkManager + start-stop-daemon --start --background --chdir /opt/displaylink --make-pidfile --pidfile /run/dlm.pid --exec /opt/displaylink/DisplayLinkManager eend $? } diff --git a/x11-drivers/displaylink-driver/files/openrc_start_stop_functions b/x11-drivers/displaylink-driver/files/openrc_start_stop_functions new file mode 100644 index 0000000..405b16e --- /dev/null +++ b/x11-drivers/displaylink-driver/files/openrc_start_stop_functions @@ -0,0 +1,9 @@ +start_service() +{ + rc-service dlm start +} + +stop_service() +{ + rc-service dlm stop +}