diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-15 00:09:17 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-15 00:09:17 +0100 |
commit | 6a7029e0f7370d4d5dfe9e31cc2719a870482392 (patch) | |
tree | 28c6c747114eaedfd2db81f86ac2ff3d7d13111e /net-dialup | |
parent | 5e41a38157bb40e8513e8e34426e85faba672fe7 (diff) |
gentoo auto-resync : 15:06:2024 - 00:09:17
Diffstat (limited to 'net-dialup')
-rw-r--r-- | net-dialup/Manifest.gz | bin | 5225 -> 5223 bytes | |||
-rw-r--r-- | net-dialup/speedtouch-usb/Manifest | 2 | ||||
-rw-r--r-- | net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild | 92 | ||||
-rw-r--r-- | net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r4.ebuild | 75 |
4 files changed, 76 insertions, 93 deletions
diff --git a/net-dialup/Manifest.gz b/net-dialup/Manifest.gz Binary files differindex 595e2cbab9f5..890b43dfd8ea 100644 --- a/net-dialup/Manifest.gz +++ b/net-dialup/Manifest.gz diff --git a/net-dialup/speedtouch-usb/Manifest b/net-dialup/speedtouch-usb/Manifest index 1d301023da42..25da5a8373fe 100644 --- a/net-dialup/speedtouch-usb/Manifest +++ b/net-dialup/speedtouch-usb/Manifest @@ -1,4 +1,4 @@ AUX README 9246 BLAKE2B 177c2863d5149bacac3b058851f7719b0651adeebc445fc825ef33cd567f28904bc89f521573b03cd70ee84d7ee495d303beebccddfd1a4bbc7a3d584e9e6bac SHA512 5b08cc8323de5bf0c0e528266e18a85c28e13bfaa462b3abeda9a2abaa0063b9872153bc97b2be88e489c949ddabd65f7d19a39600f9c0d2375e40d511c0ee2a DIST SpeedTouch330_firmware_3012.zip 769125 BLAKE2B 4f7569ab3d123837f3854af02aaf53972dca6a031fcbb7c1bd965f6b389509ff588de78488ad19a5b7f58997aaa9f53462713a7df0b0d7a05d8e77a2562ee0af SHA512 d4ec1b609eb58b15b0c569fc2c96e453517f6a8141c706f342549093c2c7bbdc09bbc3f05ecf75f3018e54f03a974b84e625fb9401f02d4f4143b721eee0b3c3 -EBUILD speedtouch-usb-3.0.1.2-r3.ebuild 3084 BLAKE2B 7fb708e1e29272a5c3c5a5662dad1bb6f6e0d9654984879612db3f0751f938f4a373c7dae4e5bc83567b8a50c6a58ca212f605bc0686aaa63f4f8e917c20d076 SHA512 c5c4f4db85e6947463ba53feeadcb09e1a0d4593581a0ed138291acb85c4b7d4069bdbc666bcaaff3e1420c2aa3fb53d607250337b4bab8a470049151aca7d20 +EBUILD speedtouch-usb-3.0.1.2-r4.ebuild 2723 BLAKE2B fd9bc68b1bd992be0cba9ef06dad4ff5d61305b5df7c33e4cba9c5ed58a36b87539a6096cbdf75343c2018d01eb39a275387eb37b0e92f40bbba9d696af267b5 SHA512 3ac17e61c04c94eb4349e53c08ed0223bc9bcc488472c8e0b18712ff070875056c4c785fc21c8ee58ef60a1b86295aeaa1db6ca348b1a3c07981b36e5143258d MISC metadata.xml 167 BLAKE2B 868e3b584722eaacf68273db062bb773d8c7e5d7ab2b81ca7e8397643bf7cc106c3a1033594401c99c54f667bb45d6b73f9048fc335580bbd44b4589ad26a832 SHA512 30caadd1496c3b9969136038239a1d8e01f236726b4022c2d7e19ca7575f25f735e556835e581afbf44fbd3e4104c40f2b5ef5fa70118d75c881fdf871962d0a diff --git a/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild b/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild deleted file mode 100644 index c8dc23c17618..000000000000 --- a/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r3.ebuild +++ /dev/null @@ -1,92 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit linux-info - -DESCRIPTION="Firmware and configuration instructions for Alcatel SpeedTouch USB modems" -HOMEPAGE="http://www.speedtouch.com/" -SRC_URI="http://www.speedtouch.com/download/drivers/USB/SpeedTouch330_firmware_${PV//./}.zip" - -# Taken from http://www.speedtouch.com/driver_upgrade_lx_3.0.1.2.htm -LICENSE="SpeedTouch-USB-Firmware" -SLOT="0" -KEYWORDS="~amd64 x86" - -RDEPEND="net-dialup/ppp" -DEPEND="app-arch/unzip" - -S="${WORKDIR}" - -src_install() { - local FILE_VER="${PV#*.}" - FILE_VER="${PV%%.*}.${FILE_VER//./}" # {major_ver}.{minor_digits} - - # Extract the "stage 1" portion of the firmware - dd if=KQD6_${FILE_VER} of=speedtch-1.bin.2 \ - ibs=1 obs=991 count=991 skip=36 &> /dev/null \ - || die "Extraction of stage 1 firmware (step 1) failed" - - dd if=ZZZL_${FILE_VER} of=speedtch-1.bin.4 \ - ibs=1 obs=935 count=935 skip=32 &> /dev/null \ - || die "Extraction of stage 1 firmware (step 2) failed" - - # Extract the "stage 2" portion of the firmware - dd if=KQD6_${FILE_VER} of=speedtch-2.bin.2 \ - ibs=1 obs=762650 count=762650 skip=1027 &> /dev/null \ - || die "Extraction of stage 2 firmware (step 1) failed" - - dd if=ZZZL_${FILE_VER} of=speedtch-2.bin.4 \ - ibs=1 obs=775545 count=775545 skip=967 &> /dev/null \ - || die "Extraction of stage 2 firmware (step 2) failed" - - # Copy to the firmware directory - insinto /lib/firmware - insopts -m 600 - doins speedtch-{1,2}.bin.{2,4} - - # Symlinks for other revisions of the modem - pushd "${D}/lib/firmware" >/dev/null || die - for n in 1 2 ; do - for rev in 0 1 ; do - ln -sfn speedtch-${n}.bin.2 speedtch-${n}.bin.${rev} - done - # Seems like a reasonable guess, for revision 3 - ln -sfn speedtch-${stub}${n}.bin.4 speedtch-${n}.bin.3 - done - popd >/dev/null || die - - # Documentation necessary to complete the setup - dodoc "${FILESDIR}/README" -} - -pkg_postinst() { - [[ -e /etc/hotplug/usb.usermap ]] && grep -E -q " 0x06[bB]9 +0x4061 " /etc/hotplug/usb.usermap && \ - ewarn "Please remove the SpeedTouch line from /etc/hotplug/usb.usermap" - - # Check kernel configuration - local CONFIG_CHECK="~FW_LOADER ~NET ~PACKET ~ATM ~NETDEVICES ~USB_DEVICEFS ~USB_ATM ~USB_SPEEDTOUCH \ - ~PPP ~PPPOATM ~PPPOE ~ATM_BR2684" - local WARNING_PPPOATM="CONFIG_PPPOATM:\t is not set (required for PPPoA links)" - local WARNING_PPPOE="CONFIG_PPPOE:\t is not set (required for PPPoE links)" - local WARNING_ATM_BR2684="CONFIG_ATM_BR2684:\t is not set (required for PPPoE links)" - check_extra_config - echo - - # Check user-space for PPPoA support - if ! has_version net-dialup/ppp[atm] ; then - ewarn "Run the following command if connecting via PPPoA protocol:" - ewarn " euse -E atm && emerge net-dialup/ppp" - echo - fi - # Check user-space for PPPoE support - if ! has_version net-dialup/linux-atm ; then - ewarn "Run the following command if connecting via PPPoE protocol:" - ewarn " emerge net-dialup/linux-atm" - echo - fi - - ewarn "To complete the installation, you must read the documentation in" - ewarn " ${ROOT}usr/share/doc/${PF}" -} diff --git a/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r4.ebuild b/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r4.ebuild new file mode 100644 index 000000000000..1431187f2355 --- /dev/null +++ b/net-dialup/speedtouch-usb/speedtouch-usb-3.0.1.2-r4.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo linux-info optfeature + +DESCRIPTION="Firmware and configuration instructions for Alcatel SpeedTouch USB modems" +HOMEPAGE="http://www.speedtouch.com/" +SRC_URI="http://www.speedtouch.com/download/drivers/USB/SpeedTouch330_firmware_${PV//./}.zip" +S=${WORKDIR} + +# Taken from http://www.speedtouch.com/driver_upgrade_lx_3.0.1.2.htm +LICENSE="SpeedTouch-USB-Firmware" +SLOT="0" +KEYWORDS="~amd64 x86" + +RDEPEND="net-dialup/ppp" +BDEPEND="app-arch/unzip" + +pkg_pretend() { + if [[ ${MERGE_TYPE} != buildonly ]]; then + local CONFIG_CHECK="~FW_LOADER ~NET ~PACKET ~ATM ~NETDEVICES ~USB_DEVICEFS ~USB_ATM ~USB_SPEEDTOUCH \ + ~PPP ~PPPOATM ~PPPOE ~ATM_BR2684" + local WARNING_PPPOATM="CONFIG_PPPOATM:\t is not set (required for PPPoA links)" + local WARNING_PPPOE="CONFIG_PPPOE:\t is not set (required for PPPoE links)" + local WARNING_ATM_BR2684="CONFIG_ATM_BR2684:\t is not set (required for PPPoE links)" + check_extra_config + fi +} + +src_compile() { + local VER=$(ver_rs 2-4 '') # {major_ver}.{minor_digits} + + # Extract the "stage 1" portion of the firmware + edob -m "Extraction of stage 1 firmware (step 1)" \ + dd if=KQD6_${VER} of="${T}/speedtch-1.bin.2" ibs=1 obs=991 count=991 skip=36 + edob -m "Extraction of stage 1 firmware (step 2)" \ + dd if=ZZZL_${VER} of="${T}/speedtch-1.bin.4" ibs=1 obs=935 count=935 skip=32 + + # Extract the "stage 2" portion of the firmware + edob -m "Extraction of stage 2 firmware (step 1)" \ + dd if=KQD6_${VER} of="${T}/speedtch-2.bin.2" ibs=1 obs=762650 count=762650 skip=1027 + edob -m "Extraction of stage 2 firmware (step 2)" \ + dd if=ZZZL_${VER} of="${T}/speedtch-2.bin.4" ibs=1 obs=775545 count=775545 skip=967 +} + +src_install() { + # Copy to the firmware directory + insinto /lib/firmware + insopts -m 600 + doins "${T}"/speedtch-{1,2}.bin.{2,4} + + # Symlinks for other revisions of the modem + for n in 1 2 ; do + dosym speedtch-${n}.bin.2 /lib/firmware/speedtch-${n}.bin.0 + dosym speedtch-${n}.bin.2 /lib/firmware/speedtch-${n}.bin.1 + # Seems like a reasonable guess, for revision 3 + dosym speedtch-${n}.bin.4 /lib/firmware/speedtch-${n}.bin.3 + done + + # Documentation necessary to complete the setup + dodoc "${FILESDIR}/README" +} + +pkg_postinst() { + [[ -e /etc/hotplug/usb.usermap ]] && grep -E -q " 0x06[bB]9 +0x4061 " /etc/hotplug/usb.usermap && \ + ewarn "Please remove the SpeedTouch line from /etc/hotplug/usb.usermap" + + optfeature "connecting via PPPoA protocol" "net-dialup/ppp[atm]" + optfeature "connecting via PPPoE protocol" "net-dialup/linux-atm" + + ewarn "To complete the installation, you must read the documentation in" + ewarn " ${ROOT}/usr/share/doc/${PF}" +} |