mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 18:45:54 +02:00
paks: compress internal tar with xz.
This commit is contained in:
@@ -191,7 +191,7 @@ define PAK
|
||||
tar xf /install/packages/package/files.tmp -C /install/packages/package/tmp/ \
|
||||
-p --numeric-owner
|
||||
rm -f /install/packages/package/files.tmp
|
||||
cd /install/packages/package/tmp/ && tar -c -p --numeric-owner -f /install/packages/package/files *
|
||||
cd /install/packages/package/tmp/ && tar -c -p --numeric-owner -J -f /install/packages/package/files.tar.xz *
|
||||
rm -r /install/packages/package/tmp
|
||||
-cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES.tmp
|
||||
mv /install/packages/package/ROOTFILES.tmp /install/packages/package/ROOTFILES
|
||||
|
||||
@@ -77,7 +77,7 @@ core/%:
|
||||
mv -f /tmp/ROOTFILES /install/packages/package/ROOTFILES
|
||||
tar -p --numeric-owner -x -C /tmp -f /$(SNAME).tar
|
||||
rm -f /$(SNAME).tar
|
||||
cd /tmp && tar cf /install/packages/package/files * && rm -rf *
|
||||
cd /tmp && tar cJf /install/packages/package/files.tar.xz * && rm -rf *
|
||||
cat /install/packages/package/ROOTFILES | grep -v "#" > /install/packages/package/ROOTFILES.tmp
|
||||
rm /install/packages/package/ROOTFILES
|
||||
mv /install/packages/package/ROOTFILES.tmp /install/packages/package/ROOTFILES
|
||||
@@ -89,7 +89,7 @@ core/%:
|
||||
sed -e "s/xxxKVERxxx/$(KVER)/g" -i /install/packages/package/update.sh
|
||||
|
||||
cd /install/packages/package && tar cf ../core-upgrade-$(VERSION)-$$(basename $@).ipfire \
|
||||
update.sh files ROOTFILES
|
||||
update.sh files.tar.xz ROOTFILES
|
||||
rm -rf /install/packages/package
|
||||
sed -e "s/NAME/core-upgrade/g" \
|
||||
-e "s/VER/$(VERSION)/g" \
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
files
|
||||
files.tar.xz
|
||||
install.sh
|
||||
uninstall.sh
|
||||
update.sh
|
||||
|
||||
Reference in New Issue
Block a user