This app is my attempt at creating luci-based views for managing adblock-lean.
I've used OpenWrt for a few years, but this is my first experience doing anything more than simply installing and updating it, so definitely use this app at your own risk!
Source for luci-app-banip was used as a reference for this app. And by used as a reference, I mean I straight up copy/pasted entire files out of that tree and into mine, with only minor changes to package names/paths/etc!
Source for luci-app-adblock-fast was also used as a reference for the RPC-portion of this app.
In all cases, you'll want to log out of the web interface and back in to force a cache refresh after installing the new package.
The latest package can be downloaded from GitHub: https://github.com/rickparrish/luci-app-adblock-lean/releases/tag/latest.
Download the .ipk file, then go to System -> Software on your OpenWrt admin console, click Upload Package, Browse for the file you just downloaded, click Upload, and finally click Install.
Clone the repo, and issue these commands to scp the files to your OpenWrt router (assuming OpenWrt.lan is how you connect to it):
scp -r applications/luci-app-adblock-lean/root/* root@OpenWrt.lan:/
scp -r applications/luci-app-adblock-lean/htdocs/* root@OpenWrt.lan:/www/
cd ~/github/luci/applications
ln -s ~/github/luci-app-adblock-lean/applications/luci-app-adblock-lean/ luci-app-adblock-lean
cd ~/github/luci
mkdir -p applications/luci-app-adblock-lean/po/templates
./build/i18n-scan.pl applications/luci-app-adblock-lean/ > applications/luci-app-adblock-lean/po/templates/adblock-lean.pot
cd ~/github/luci/applications/luci-app-adblock-lean
~/github/luci/build/i18n-add-language.sh
NB: Need to update ./build/i18n-sync.sh first (because of the symlink):
- Add -L parameter to all the
find
commands - Change
./build/i18n-scan.pl "$dir" > "$1"
to./build/i18n-scan.pl "$dir/" > "$1"
(add the/
after$dir
)
cd ~/github/luci
./build/i18n-sync.sh applications/luci-app-adblock-lean