Browse Source

Merge pull request #4088 from dibdot/adblock

adblock: release 2.4.0 (release 2)
lilik-openwrt-22.03
Hannu Nyman 8 years ago
committed by GitHub
parent
commit
ae3b537e60
2 changed files with 5 additions and 3 deletions
  1. +1
    -1
      net/adblock/Makefile
  2. +4
    -2
      net/adblock/files/adblock.sh

+ 1
- 1
net/adblock/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=adblock PKG_NAME:=adblock
PKG_VERSION:=2.4.0 PKG_VERSION:=2.4.0
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_LICENSE:=GPL-3.0+ PKG_LICENSE:=GPL-3.0+
PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org> PKG_MAINTAINER:=Dirk Brenken <dev@brenken.org>


+ 4
- 2
net/adblock/files/adblock.sh View File

@ -10,7 +10,7 @@
# #
LC_ALL=C LC_ALL=C
PATH="/usr/sbin:/usr/bin:/sbin:/bin" PATH="/usr/sbin:/usr/bin:/sbin:/bin"
adb_ver="2.4.0"
adb_ver="2.4.0-2"
adb_enabled=1 adb_enabled=1
adb_debug=0 adb_debug=0
adb_backup=0 adb_backup=0
@ -406,8 +406,10 @@ f_main()
awk -F "." '{for(f=NF;f > 1;f--) printf "%s.", $f;print $1}' "${adb_tmpfile}" | sort -u > "${adb_tmpload}" awk -F "." '{for(f=NF;f > 1;f--) printf "%s.", $f;print $1}' "${adb_tmpfile}" | sort -u > "${adb_tmpload}"
awk '{if(NR==1){tld=$NF};while(getline){if($NF !~ tld"\\."){print tld;tld=$NF}}print tld}' "${adb_tmpload}" > "${adb_tmpfile}" awk '{if(NR==1){tld=$NF};while(getline){if($NF !~ tld"\\."){print tld;tld=$NF}}print tld}' "${adb_tmpload}" > "${adb_tmpfile}"
awk -F "." '{for(f=NF;f > 1;f--) printf "%s.", $f;print $1}' "${adb_tmpfile}" > "${adb_tmpload}" awk -F "." '{for(f=NF;f > 1;f--) printf "%s.", $f;print $1}' "${adb_tmpfile}" > "${adb_tmpload}"
mv -f "${adb_tmpload}" "${adb_tmpfile}"
else
sort -u "${adb_tmpfile}" > "${adb_tmpload}"
fi fi
mv -f "${adb_tmpload}" "${adb_tmpfile}"
f_list backup f_list backup
else else
f_list restore f_list restore


Loading…
Cancel
Save