diff --git a/package/luci-compat/control/control b/package/luci-compat/control/control index 2cd9e99..e0feefc 100644 --- a/package/luci-compat/control/control +++ b/package/luci-compat/control/control @@ -4,5 +4,4 @@ Depends: libc, smartdns Source: feeds/luci/applications/luci-app-smartdns Section: luci Architecture: all -Installed-Size: 1040 -Description: A smartdns server module +Description: A smartdns server diff --git a/package/luci-compat/make.sh b/package/luci-compat/make.sh index e5b404a..1cbce90 100644 --- a/package/luci-compat/make.sh +++ b/package/luci-compat/make.sh @@ -75,7 +75,7 @@ build() cd $ROOT tar zcf $ROOT/data.tar.gz -C root . - tar zcf $OUTPUTDIR/luci-app-smartdns.$VER.$FILEARCH.ipk control.tar.gz data.tar.gz debian-binary + tar zcf $OUTPUTDIR/luci-app-smartdns.$VER.$FILEARCH.ipk ./control.tar.gz ./data.tar.gz ./debian-binary rm -fr $ROOT/ } diff --git a/package/luci/control/control b/package/luci/control/control index 2cd9e99..e0feefc 100644 --- a/package/luci/control/control +++ b/package/luci/control/control @@ -4,5 +4,4 @@ Depends: libc, smartdns Source: feeds/luci/applications/luci-app-smartdns Section: luci Architecture: all -Installed-Size: 1040 -Description: A smartdns server module +Description: A smartdns server diff --git a/package/luci/files/etc/uci-defaults/50_luci-smartdns b/package/luci/files/etc/uci-defaults/50_luci-smartdns deleted file mode 100644 index c05b86b..0000000 --- a/package/luci/files/etc/uci-defaults/50_luci-smartdns +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh -# -# Copyright (C) 2018-2020 Ruilin Peng (Nick) . -# -# smartdns is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# smartdns is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - -uci -q batch <<-EOF >/dev/null - delete ucitrack.@smartdns[-1] - add ucitrack smartdns - set ucitrack.@smartdns[-1].init=smartdns - commit ucitrack -EOF - -rm -f /tmp/luci-indexcache -exit 0 diff --git a/package/luci/make.sh b/package/luci/make.sh index 8450be3..77df4fa 100644 --- a/package/luci/make.sh +++ b/package/luci/make.sh @@ -67,7 +67,6 @@ build() $PO2LMO $ROOT/files/luci/i18n/smartdns.zh-cn.po $ROOT/root/usr/lib/lua/luci/i18n/smartdns.zh-cn.lmo rm $ROOT/root/usr/lib/lua/luci/i18n/smartdns.zh-cn.po - cp $ROOT/files/etc $ROOT/root/ -avf cp $ROOT/files/usr $ROOT/root/ -avf INST_SIZE="`du -sb $ROOT/root/ | awk '{print $1}'`" @@ -84,7 +83,7 @@ build() cd $ROOT tar zcf $ROOT/data.tar.gz -C root . - tar zcf $OUTPUTDIR/luci-app-smartdns.$VER.$FILEARCH.ipk control.tar.gz data.tar.gz debian-binary + tar zcf $OUTPUTDIR/luci-app-smartdns.$VER.$FILEARCH.ipk ./control.tar.gz ./data.tar.gz ./debian-binary rm -fr $ROOT/ }