pyrovski / wrtbwmon

Linux bandwidth monitor with per-device tracking
Other
178 stars 47 forks source link

Can't install on LEDE #22

Closed FilipBB closed 7 years ago

FilipBB commented 7 years ago

The ipk won't install on LEDE:

[root@lede:~] # cat /etc/openwrt_release DISTRIB_ID='LEDE' DISTRIB_RELEASE='SNAPSHOT' DISTRIB_REVISION='r2709-b7677f0' DISTRIB_CODENAME='reboot' DISTRIB_TARGET='brcm47xx/mips74k' DISTRIB_DESCRIPTION='LEDE Reboot SNAPSHOT r2709-b7677f0' DISTRIB_TAINTS='no-all'

[root@lede:~] # opkg install ./wrtbwmon_0.35_all.ipk Collected errors:

pyrovski commented 7 years ago

How about this version?

FilipBB commented 7 years ago

Nope, it didn't work, it's giving the same error, but I managed to figure out the problem: the control file must be compressed into control.tar.gz from it's own directory, and the final ipk file must be as well so that you have them compressed like so:

[root@lede:wrt] # bsdtar -tf ./wrtbwmon_0.35_all.ipk ./ ./control.tar.gz ./data.tar.gz ./debian-binary [root@lede:wrt] # bsdtar -tf tmp/control.tar.gz ./ ./control [root@lede:wrt] #

Notice the directory references "./"

FilipBB commented 7 years ago

Actually the control.tar.gz file was already zipped that way, only the final ipk wasn't.

pyrovski commented 7 years ago

Could you try the package at that link again? I switched to packaging with tar instead of ar, and now I get this output:

$ bsdtar -tf wrtbwmon_0.35_all.ipk

./debian-binary ./data.tar.gz ./control.tar.gz

FilipBB commented 7 years ago

Yes, it is working now, thanks.