diff --git a/main.sh b/main.sh index e354ce6..ac9a9e7 100755 --- a/main.sh +++ b/main.sh @@ -65,8 +65,18 @@ if [ "$1" == "update" ];then sparse_checkout $lede_packages_dir "https://github.com/coolsnowwolf/packages" "$lede_packages_pkg" cp -rv $lede_packages_dir/net/* package/ + ## + immortalwrt_packages_dir=feeds/immortalwrt/packages + immortalwrt_packages_pkg="net/adguardhome" + sparse_checkout $immortalwrt_packages_dir "https://github.com/immortalwrt/packages" "$immortalwrt_packages_pkg" $([ "$branch" == "main" ] && echo master || echo $branch) + + for t in `find $immortalwrt_packages_dir -name 'Makefile'`;do + cp_pkg_var $t + done + + ## official_packages_dir=feeds/openwrt/packages - official_packages_pkg="net/adguardhome net/dnsproxy" + official_packages_pkg="net/dnsproxy" sparse_checkout $official_packages_dir "https://github.com/openwrt/packages" "$official_packages_pkg" $([ "$branch" == "main" ] && echo master || echo $branch) for t in `find $official_packages_dir -name 'Makefile'`;do diff --git a/package/adguardhome/Makefile b/package/adguardhome/Makefile index acca8dd..63d1abc 100644 --- a/package/adguardhome/Makefile +++ b/package/adguardhome/Makefile @@ -12,7 +12,7 @@ PKG_RELEASE:=1 PKG_SOURCE_PROTO:=git PKG_SOURCE_VERSION:=v$(PKG_VERSION) PKG_SOURCE_URL:=https://github.com/AdguardTeam/AdGuardHome -PKG_MIRROR_HASH:=41eec797b0a721730d8564e079379aafe045c5491f27a35de679c524ba43c678 +PKG_MIRROR_HASH:= PKG_LICENSE:=GPL-3.0-only PKG_LICENSE_FILES:=LICENSE.txt