Skip to content

rickparrish/luci-app-adblock-lean

Repository files navigation

luci-app-adblock-lean

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.

Installation

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.

From 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.

From git

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/

Screenshot

image

Helpful commands

Create a symlink for luci-app-adblock-lean in the luci repo

cd ~/github/luci/applications
ln -s ~/github/luci-app-adblock-lean/applications/luci-app-adblock-lean/ luci-app-adblock-lean

Create an adblock-lean.pot i18n template

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

Create initial .po files

cd ~/github/luci/applications/luci-app-adblock-lean
~/github/luci/build/i18n-add-language.sh

Rebuild .po files

NB: Need to update ./build/i18n-sync.sh first (because of the symlink):

  1. Add -L parameter to all the find commands
  2. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •