Guest User

PKGBUILD patch for dgrp aur package

a guest
Aug 5th, 2026
117
0
262 days
3
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 7.16 KB | Fixit | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index d931086..1cd9861 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -106,7 +106,8 @@ pkgname='dgrp'
  6.  #_pkgver='1.9-38'; _dl='81000137_Y.tgz'
  7.  #_pkgver='1.9-39'; _dl='40002086_Z.tgz'
  8.  #_pkgver='1.9-40'; _dl='40002086_AA.tgz'
  9. -_pkgver='1.9-42'; _dl='40002086_AC.tgz'
  10. +#_pkgver='1.9-42'; _dl='40002086_AC.tgz'
  11. +_pkgver='1.9-45'; _dl='40002086_AE.tgz'
  12.  pkgver="${_pkgver//-/.}"
  13.  pkgrel='1'
  14.  pkgdesc="tty driver for Digi ${_opt_RealPort} ConnectPort EtherLite Flex One CM PortServer TS IBM RAN serial console terminal servers"
  15. @@ -218,7 +219,7 @@ unset _mibsrc
  16.  #source_i686=('http://ftp1.digi.com/support/utilities/40002890_A.tgz')
  17.  #source_x86_64=('http://ftp1.digi.com/support/utilities/40002889_A.tgz') # compiled i686 therefore worthless
  18.  # addp and sddp are incomplete. I replaced them with addp.pl
  19. -md5sums=('b78ad8db7920566a199d7ba191daff3d'
  20. +md5sums=('060bd87af7ab8e351724a9338ff50dd5'
  21.           'b4af5022ba96fcc2429263cfbbe85bae'
  22.           '9feebec170552c9186e713e7f5852e14'
  23.           'e9ae823e597f2b63d95e6d6a8e25cde3'
  24. @@ -274,7 +275,7 @@ md5sums=('b78ad8db7920566a199d7ba191daff3d'
  25.           'a7b0e6bfebc82bf30ab6ed846bd64bf2'
  26.           'df025331e29fe36ed7d97b2ee661c990'
  27.           '4726b79fbe2c94db647be809c34ddff1')
  28. -sha256sums=('f9fb258e85d70b7e89e8a4452401df01df3e23e8e423fb04f7bed3a0ea81e9b8'
  29. +sha256sums=('d0cf2990c0db20fe5c7f58b7639f43fbda18b6666de66ae6ae2cac7ab4d923ea'
  30.              '42898b9d24262de27e9b1f3067d51d01373810b7c9e4991403a7f0a5dd7a26cf'
  31.              '66f8b106a052b4807513ace92978e5e6347cef08eee39e4b4ae31c60284cc0a3'
  32.              '9d79df8617e2bb1042a4b7d34311e73dc4afcdfe4dfa66703455ff54512427f5'
  33. @@ -342,55 +343,34 @@ _modulename='dgrp'
  34.  # Check for updates and case errors to the 2 mib lists
  35.  _fn_mibcheck() {
  36.    echo 'Checking for newer and misnamed MIB'
  37. -  local line
  38. -  local linea
  39. -  local file='/tmp/PKGBUILD.mibs'
  40. -  # Get list of files
  41. -  while IFS='' read -r line || [[ -n "${line}" ]]; do
  42. -    read -r -a linea <<<"${line}"
  43. -    line="${linea[8]}" # filename
  44. -    case "${line}" in
  45. -    4000*.mib)
  46. -      echo "${line}" >> "${file}"
  47. -      ;;
  48. -    esac
  49. -  done < <(curl -s 'ftp://ftp1.digi.com/support/utilities/') # curl is sorted and case insensitive because Digi runs WSFTP. We can't assume this will be always so.
  50. -  # get list of latest files
  51. -  local lineu linep lineup
  52. -  lineup=''
  53. -  linep=''
  54. -  linea=()
  55. -  while IFS='' read -r line || [[ -n "${line}" ]]; do
  56. -    lineu="${line^^}"
  57. -    if [ "${lineup%%_*}" != "${lineu%%_*}" ] && [ ! -z "${linep}" ]; then
  58. -      linea+=("${linep}")
  59. -    fi
  60. -    lineup="${lineu}"
  61. -    linep="${line}"
  62. -  done < <(sort -f "${file}")
  63. -  rm -f "${file}"
  64. -      linea+=("${linep}")
  65. -  # Check against _mibs
  66. -  local found mib mibu
  67. -  for line in "${linea[@]}"; do
  68. -    lineu="${line^^}"
  69. -    found=0
  70. -    for mib in "${_mibs[@]}" "${_mibsdnw[@]}"; do
  71. -      mibu="${mib^^}"
  72. -      if [ "${lineu%%_*}" = "${mibu%%_*}" ]; then
  73. -        if [ "${lineu}" != "${mibu}" ]; then
  74. -          echo "${mib} has been updated to ${line}"
  75. -        elif [ "${line}" != "${mib}" ]; then
  76. -          echo "Case correction: ${mib} -> ${line}"
  77. +  
  78. +  # download *mib file list from ftp
  79. +  # remove doubles keeping newer versions
  80. +  # check for case errors
  81. +  curl -sl 'ftp://ftp1.digi.com/support/utilities/' | grep -E '4000.+\.mib' \
  82. +  | sort -fr | sort -u -t _ -k 1,1 | sort -f \
  83. +  | while read line
  84. +    do
  85. +      lineu="${line^^}"
  86. +      found=0
  87. +      # unclear what the original script wants to do here with _mibsdnw
  88. +      # list seems to be "Do Not Want" but is added to the loop anyway
  89. +      for mib in "${_mibs[@]}" "${_mibsdnw[@]}"; do
  90. +        mibu="${mib^^}"
  91. +        if [ "${lineu%%_*}" = "${mibu%%_*}" ]; then
  92. +          if [ "${lineu}" != "${mibu}" ]; then
  93. +            echo "${mib} has been updated to ${line}"
  94. +          elif [ "${line}" != "${mib}" ]; then
  95. +            echo "Case correction: ${mib} -> ${line}"
  96. +          fi
  97. +          found=1
  98. +          break
  99.          fi
  100. -        found=1
  101. -        break
  102. +      done
  103. +      if [ "${found}" -eq 0 ]; then
  104. +        echo "${line} is missing"
  105.        fi
  106.      done
  107. -    if [ "${found}" -eq 0 ]; then
  108. -      echo "${line} is missing"
  109. -    fi
  110. -  done
  111.    return 1
  112.  }
  113.  #_fn_mibcheck
  114. @@ -503,7 +483,8 @@ prepare() {
  115.      _patches+=("0019-kernel-6.8-tty_driver.h-send_xchar-to-u8.patch")
  116.    fi
  117.  
  118. -  if [ "$(vercmp "${pkgver}" '1.9.42')" -ge 0 ]; then
  119. +  # not sure about version upper bound for those 2 patches
  120. +  if [ "$(vercmp "${pkgver}" '1.9.42')" -ge 0 ] && [ "$(vercmp "${pkgver}" '1.9.44')" -le 0 ]; then
  121.      _patches+=("0019a-kernel-6.8-tty_driver.h-send_xchar-to-u8.patch")
  122.      _patches+=("0020-revert-POPULATED_KERNEL_HEADERS-for-DKMS.patch")
  123.    fi
  124. @@ -643,7 +624,8 @@ build() {
  125.  }
  126.  
  127.  # Copy this line into the .install file
  128. -_daemons=('daemon' 'ditty')
  129. +#_daemons=('daemon' 'ditty')
  130. +_daemons=()
  131.  
  132.  package() {
  133.    set -u
  134. @@ -685,10 +667,11 @@ package() {
  135.    install -dm755 "${pkgdir}/etc/udev/rules.d/"
  136.    touch "${pkgdir}/${backup[0]}" # postinstall handles the pacsave file automatically
  137.    chmod 644 "${pkgdir}/${backup[0]}"
  138. -  if [ ! -s "${pkgdir}/tmp/dgrp/10-dgrp.rules" ]; then
  139. -    mv "${pkgdir}/etc/udev/rules.d/10-dgrp.rules" "${pkgdir}/tmp/dgrp/10-dgrp.rules" # 1.9-41
  140. -  fi
  141. -  sed -e 's:^KERNEL=="cu_dgrp:#&:g' -i "${pkgdir}/tmp/dgrp/10-dgrp.rules" # Recommended by Digi
  142. +  
  143. +#  if [ ! -s "${pkgdir}/tmp/dgrp/10-dgrp.rules" ]; then
  144. +#    mv "${pkgdir}/etc/udev/rules.d/10-dgrp.rules" "${pkgdir}/tmp/dgrp/10-dgrp.rules" # 1.9-41
  145. +#  fi
  146. +  newrules=$(sed -e 's:^KERNEL=="cu_dgrp:#&:g' "${pkgdir}/etc/udev/rules.d/10-dgrp.rules") # Recommended by Digi
  147.    cat > "${pkgdir}/etc/udev/rules.d/10-dgrp.rules" << EOF
  148.  # Automatically generated by ${pkgname}-${pkgver} PKGBUILD from Arch Linux AUR
  149.  # https://aur.archlinux.org/
  150. @@ -707,10 +690,15 @@ package() {
  151.  
  152.  # Then copy this file into the folder with PKGBUILD.
  153.  
  154. -$(cat "${pkgdir}/tmp/dgrp/10-dgrp.rules")
  155. +$(echo "$newrules")
  156.  EOF
  157. -  rm -f "${pkgdir}/tmp/dgrp/10-dgrp.rules"
  158. -  rmdir "${pkgdir}/tmp/dgrp" "${pkgdir}/tmp" # crashes if other files ever show up in /tmp/dgrp
  159. +
  160. +  if [ -d "${pkgdir}/tmp/dgrp" ]
  161. +  then
  162. +    rm -f "${pkgdir}/tmp/dgrp/10-dgrp.rules"
  163. +    rmdir "${pkgdir}/tmp/dgrp" "${pkgdir}/tmp" # crashes if other files ever show up in /tmp/dgrp
  164. +  fi
  165. +  
  166.    if [ ! -z "${_opt_defaultmode:-}" ]; then
  167.      sed -e 's:^\(KERNEL=="tty_dgrp\)\(.*\)$:\1\2, MODE="'"${_opt_defaultmode}"'", GROUP="'"${_opt_defaultgroup}"'":g' -i "${pkgdir}/etc/udev/rules.d/10-dgrp.rules"
  168.    fi
  169. @@ -719,9 +707,10 @@ EOF
  170.    fi
  171.    chmod 644 "${pkgdir}/etc/udev/rules.d/10-dgrp.rules"
  172.  
  173. -  install -Dpm755 "${pkgdir}/etc/init.d"/{dgrp_daemon,dgrp_ditty} -t "${pkgdir}/usr/bin/dgrp/daemon/"
  174. -  rm -f "${pkgdir}/etc/init.d"/{dgrp_daemon,dgrp_ditty}
  175. -  rmdir "${pkgdir}/etc/init.d"
  176. +# TODO: test if dgrp_daemon / dgrp_ditty are present (binaries from older releases ?)
  177. +#  install -Dpm755 "${pkgdir}/etc/init.d"/{dgrp_daemon,dgrp_ditty} -t "${pkgdir}/usr/bin/dgrp/daemon/"
  178. +#  rm -f "${pkgdir}/etc/init.d"/{dgrp_daemon,dgrp_ditty}
  179. +#  rmdir "${pkgdir}/etc/init.d"
  180.  
  181.    # systemd integration.
  182.    #install -dm755 "${pkgdir}/usr/lib/systemd/system/"
  183.  
Advertisement
Comments
  • User was banned
  • Xarvaslo
    17 days
    # CSS 0.92 KB | 0 0
    1. ✅ Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1WhlQi8xpq819kqTE2nXcZTAeCgQ5m-ic2pm_7IZVt7w/edit?usp=sharing
    4.  
    5. This made me $12,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 50% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Changelly — instant swap).
    12.  
    13. Join our Telegram Channel for more exploits: https://t.me/byprotocol
  • User was banned
Add Comment
Please, Sign In to add comment