paks: compress internal tar with xz.

This commit is contained in:
Arne Fitzenreiter
2012-10-26 17:43:29 +02:00
parent 1d12008db5
commit f83650a136
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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" \

View File

@@ -1,4 +1,4 @@
files
files.tar.xz
install.sh
uninstall.sh
update.sh