Package Details: simple-rt 20211207_e9760dd-2

Git Clone URL: (read-only, click to copy)
Package Base: simple-rt
Description: SimpleRT - Reverse Tethering utility for Android
Upstream URL:
Keywords: android network tethering
Licenses: GPLv3
Submitter: AnatolyRugalev
Maintainer: AnatolyRugalev
Last Packager: AnatolyRugalev
Votes: 3
Popularity: 0.000000
First Submitted: 2017-03-29 16:27 (UTC)
Last Updated: 2022-11-23 23:45 (UTC)

Dependencies (4)

Required by (0)

Sources (2)

Latest Comments

Schmetzler commented on 2023-02-21 17:30 (UTC) (edited on 2023-02-21 17:32 (UTC) by Schmetzler)

For anyone having problem to get this running:

I used the tag 1.1.1 for the Server, so source line looks like this:

source=("simple-rt::git+" 'simple-rt@.service')

and used the apk mentioned in this issue

tuxayo commented on 2022-11-24 00:32 (UTC) (edited on 2022-11-24 00:41 (UTC) by tuxayo)

It works, thanks :)

note: I'm not using the official F-Droid app:

AnatolyRugalev commented on 2022-11-23 23:49 (UTC)

The package has been updated with a new Git URL, as well as changes proposed by rcf.

Also added a post_upgrade message

tuxayo commented on 2020-10-20 17:39 (UTC)

Does anyone know how fix pkgver() ?

Crandel commented on 2020-10-09 10:26 (UTC) (edited on 2020-10-09 10:28 (UTC) by Crandel)

I change PKGBUILD to support all running interfaces

build() {
    cd "$srcdir/simple-rt/simple-rt-cli"
    make iface_up_sh_path=/usr/libexec/simple-rt
    for int in $(ip link show | grep "state UP" | awk -F ': ' '{ print $2}'); do
        cat "$srcdir/simple-rt@.service" | sed -e "s/%i/$int/g" > "$srcdir/simple-rt@$int.service"
    rm $srcdir/simple-rt@.service

package() {
    mkdir -p "$pkgdir/usr/lib/simple-rt"
    mkdir -p "$pkgdir/usr/libexec/simple-rt"
    mkdir -p "$pkgdir/etc/systemd/system/"
    install -m755 "$srcdir/simple-rt/simple-rt-cli/simple-rt" "$pkgdir/usr/lib/simple-rt/simple-rt"
    install -m755 "$srcdir/simple-rt/simple-rt-cli/" "$pkgdir/usr/libexec/simple-rt/"
    for service_int in $srcdir/simple-rt@*.service; do
        install -DT -m0755 "$service_int" "$pkgdir/usr/lib/systemd/system/$(basename -- "$service_int")"

rcf commented on 2018-05-26 01:27 (UTC)

As for an actual fix I would go with something along the lines of

diff --git a/PKGBUILD b/PKGBUILD
index e6cac9f..c3223aa 100644
@@ -24,7 +24,9 @@ build() {
        cd "$srcdir/simple-rt/simple-rt-cli"
        export SIMPLERT_INTERFACE=$(ip link show | grep "state UP" | awk -F ': ' '{ print $2}')
-       cat "$srcdir/simple-rt@.service" | sed -e "s/%i/$SIMPLERT_INTERFACE/g" > "$srcdir/simple-rt.service"
+       if [ `echo "$SIMPLERT_INTERFACE" | wc -l` -eq 1 ]; then 
+               cat "$srcdir/simple-rt@.service" | sed -e "s/%i/$SIMPLERT_INTERFACE/g" > "$srcdir/simple-rt.service"
+       fi

 package() {
@@ -34,5 +36,7 @@ package() {
        install -m755 "$srcdir/simple-rt/simple-rt-cli/simple-rt" "$pkgdir/usr/lib/simple-rt/simple-rt"
        install -m755 "$srcdir/simple-rt/simple-rt-cli/" "$pkgdir/usr/lib/simple-rt/"
        install -DT -m0755 "$srcdir/simple-rt@.service" "$pkgdir/usr/lib/systemd/system/simple-rt@.service"
-       install -DT -m0755 "$srcdir/simple-rt.service" "$pkgdir/usr/lib/systemd/system/simple-rt.service"
+       if [ -e "$srcdir/simple-rt.service" ]; then 
+               install -DT -m0755 "$srcdir/simple-rt.service" "$pkgdir/usr/lib/systemd/system/simple-rt.service"
+       fi

because simple-rt.service might confuse people who don't realize it's tied to one interface. Or maybe it could select the interface used by the default route, which would at least guarantee that you're getting Internet access.

rcf commented on 2018-05-25 11:43 (UTC) (edited on 2018-05-25 11:45 (UTC) by rcf)

With more than one active interface,

cat "$srcdir/simple-rt@.service" | sed -e "s/%i/$SIMPLERT_INTERFACE/g" > "$srcdir/simple-rt.service"

fails with

sed: -e expression #1, char 10: unterminateds' command`

as $SIMPLERT_INTERFACE ends up being multiple lines.

AnatolyRugalev commented on 2018-01-23 22:01 (UTC) (edited on 2018-01-23 22:05 (UTC) by AnatolyRugalev)

Alright, I implemented Unit template and its available now.

You can specify any desired interface via systemd instantiation:

sudo systemctl start simple-rt@enp5s0

simple-rt unit still available for BC. PKGBUILD scans active network interfaces and chooses first one for simple-rt unit

Please, let me know if something is wrong. Thank you

Also, net-tools was added to dependencies because original code requires ifconfig to be installed

raingloom commented on 2018-01-09 09:44 (UTC) (edited on 2018-01-09 09:46 (UTC) by raingloom)

The service file should be parameterized over the network interface:

$ diff simple-rt@.service simple-rt.service

< ExecStart=/usr/lib/simple-rt/simple-rt -i %i
> ExecStart=/usr/lib/simple-rt/simple-rt -i enp5s0