luci-build: fix luci build script
This commit is contained in:
@@ -4,5 +4,4 @@ Depends: libc, smartdns
|
|||||||
Source: feeds/luci/applications/luci-app-smartdns
|
Source: feeds/luci/applications/luci-app-smartdns
|
||||||
Section: luci
|
Section: luci
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Installed-Size: 1040
|
Description: A smartdns server
|
||||||
Description: A smartdns server module
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ build()
|
|||||||
cd $ROOT
|
cd $ROOT
|
||||||
|
|
||||||
tar zcf $ROOT/data.tar.gz -C 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/
|
rm -fr $ROOT/
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,5 +4,4 @@ Depends: libc, smartdns
|
|||||||
Source: feeds/luci/applications/luci-app-smartdns
|
Source: feeds/luci/applications/luci-app-smartdns
|
||||||
Section: luci
|
Section: luci
|
||||||
Architecture: all
|
Architecture: all
|
||||||
Installed-Size: 1040
|
Description: A smartdns server
|
||||||
Description: A smartdns server module
|
|
||||||
|
|||||||
@@ -1,26 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Copyright (C) 2018-2020 Ruilin Peng (Nick) <pymumu@gmail.com>.
|
|
||||||
#
|
|
||||||
# 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 <http://www.gnu.org/licenses/>.
|
|
||||||
|
|
||||||
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
|
|
||||||
@@ -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
|
$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
|
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
|
cp $ROOT/files/usr $ROOT/root/ -avf
|
||||||
INST_SIZE="`du -sb $ROOT/root/ | awk '{print $1}'`"
|
INST_SIZE="`du -sb $ROOT/root/ | awk '{print $1}'`"
|
||||||
|
|
||||||
@@ -84,7 +83,7 @@ build()
|
|||||||
cd $ROOT
|
cd $ROOT
|
||||||
|
|
||||||
tar zcf $ROOT/data.tar.gz -C 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/
|
rm -fr $ROOT/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user