Files
nanopi-openwrt-r1s-h3/merge_packages.sh
klever1988 890e10c9c0 add luci-app-linkease
change luci-app-ddnsto to active source
remove unpopolar packages from the fat-version release
2021-08-16 20:13:03 +08:00

31 lines
1.1 KiB
Bash

function merge_package(){
pn=`echo $1 | rev | cut -d'/' -f 1 | rev`
find package/ \( -type l -o -type d \) -name $pn | xargs -r rm -r
if [ ! -z "$2" ]; then
find package/ \( -type l -o -type d \) -name $2 | xargs -r rm -r
fi
if [[ $1 == *'/trunk/'* ]]; then
svn export $1
else
git clone $3 --depth=1 $1
rm -rf $pn/.git
fi
mv $pn package/
}
function merge_feed(){
if [ ! -d "feed/$1" ]; then
echo >> feeds.conf.default
echo "src-git $1 $2" >> feeds.conf.default
fi
./scripts/feeds update $1
./scripts/feeds install -a -p $1
}
merge_feed nas "https://github.com/linkease/nas-packages.git;master"
merge_package https://github.com/project-lede/luci-app-godproxy
merge_package https://github.com/coolsnowwolf/lede/trunk/package/lean/luci-app-cifsd luci-app-ksmbd
merge_package https://github.com/coolsnowwolf/packages/trunk/kernel/ksmbd
merge_package https://github.com/coolsnowwolf/packages/trunk/net/ksmbd-tools
merge_package https://github.com/Beginner-Go/luci-app-tencentddns
merge_package https://github.com/sundaqiang/openwrt-packages/trunk/luci-app-services-wolplus