Package Details: gnirehtet 2.5.1-0

Git Clone URL: https://aur.archlinux.org/gnirehtet.git (read-only, click to copy)
Package Base: gnirehtet
Description: Gnirehtet provides reverse tethering for Android
Upstream URL: https://github.com/Genymobile/gnirehtet
Keywords: android reverse tethering
Licenses: Apache-2.0
Submitter: shreyansh_k
Maintainer: bronko
Last Packager: bronko
Votes: 12
Popularity: 0.146033
First Submitted: 2017-11-19 05:19 (UTC)
Last Updated: 2023-07-09 20:35 (UTC)

Latest Comments

1 2 Next › Last »

bronko commented on 2024-08-16 11:58 (UTC)

Hi gnlrdrvo, thank you for your suggestions, i appreciate your input. I will take this into account once there is a new upstream release, as to not trigger rebuilds for all users right now. Best regards, bronko

gnlrdrvo commented on 2024-08-15 05:19 (UTC) (edited on 2024-08-15 05:19 (UTC) by gnlrdrvo)

Some issues in PKGBUILD:

  • pkgrel should start from 1
  • patch should not be included in makedepends array - it is a dependency of base-devel and is assumed to be already installed
  • patch.diff can probably be replaced by a sed command
  • package() section can be simplified by using install to create the directories and install the files

See also: https://wiki.archlinux.org/title/PKGBUILD

My version of PKGBUILD:

pkgname=gnirehtet
pkgver=2.5.1
pkgrel=1
pkgdesc="Gnirehtet provides reverse tethering for Android"
arch=('x86_64')
url="https://github.com/Genymobile/gnirehtet"
license=('Apache-2.0')
depends=('android-tools')
makedepends=('rust')
source=("https://github.com/Genymobile/${pkgname}/archive/v${pkgver}.tar.gz"
        "https://github.com/Genymobile/${pkgname}/releases/download/v${pkgver}/gnirehtet-rust-linux64-v${pkgver}.zip")
sha256sums=('0d41361b9ac8b3b7fa4f4a0aff933472a72886556bd3fc4659be299b546274e6'
            'dee55499ca4fef00ce2559c767d2d8130163736d43fdbce753e923e75309c275')

prepare() {
    cd "$srcdir/gnirehtet-${pkgver}/relay-rust"
    sed -i 's#gnirehtet.apk#/usr/share/gnirehtet/gnirehtet.apk#' src/main.rs
}

build() {
    cd "$srcdir/gnirehtet-${pkgver}/relay-rust"
    cargo build --release
}

package() {
    cd "$srcdir"
    install -Dm0755 "gnirehtet-${pkgver}/relay-rust/target/release/gnirehtet" -t "$pkgdir/usr/bin"
    install -Dm644 gnirehtet-rust-linux64/gnirehtet.apk -t "$pkgdir/usr/share/gnirehtet"
    install -Dm644 "gnirehtet-${pkgver}/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
}

bronko commented on 2023-07-09 20:41 (UTC)

There is now a v2.5.1 which should build with the latest Rust (thanks VolkerS and thanks to the gnirehtet folks for quickly making a new release)

VolkerS commented on 2023-07-07 06:38 (UTC) (edited on 2023-07-07 06:40 (UTC) by VolkerS)

Due to a breaking change in Rust 1.64 the release no longer works. It IOErrors when trying to start the relay server. This has been fixed sometime last year, but the project had no new release since 2020.

rabo99 commented on 2020-04-10 15:44 (UTC)

If you receive that "shell", "dumpsys", etc. error message, try:

  • After connecting the phone to the computer check the phone notifications for usb and set "File Transfer" instead of battery charging;
  • Wait, there should be a message asking for permission;
  • After giving OK, stop gnirehtet in the terminal (ctrl+c) and start it again.

It's been working fine for me.

bronko commented on 2019-11-26 21:25 (UTC) (edited on 2019-11-26 21:25 (UTC) by bronko)

I will give it a shot: bumped to version 2.4 / Feedback and/or (Co-)Maintainers welcome!

shreyansh_k commented on 2019-11-25 20:29 (UTC)

No longer using Arch Linux. Requesting community to adopt the package.

shreyansh_k commented on 2018-03-12 17:59 (UTC)

Bumped version to 2.2 Also tried to fix 'cannot stat: gnirehtet.apk'. Feedback is welcome.

TheChosenOne commented on 2017-12-28 20:11 (UTC)

I run into the next error: INFO Main: Checking gnirehtet client... ERROR Main: Execution error: Command adb ["shell", "dumpsys", "package", "com.genymobile.gnirehtet"] returned with value 1

shreyansh_k commented on 2017-11-27 10:03 (UTC)

It's an upstream issue. So, discussion about it is active on remote repo. Please do suggest if you have better solution.