summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-06 17:20:04 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-08-06 17:20:04 +0200
commitd5b6ff190411f98ec84b09f4d13c902458fa9627 (patch)
treeff5ad63b3c32a44adc3f506a75d44151db234b3c
parentebe4baf1aa96b4244c9c33756689329197ecfd77 (diff)
use a more portable way for tarpkg
-rwxr-xr-xscripts/tarpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/tarpkg b/scripts/tarpkg
index 40342d401..40ff94122 100755
--- a/scripts/tarpkg
+++ b/scripts/tarpkg
@@ -16,14 +16,14 @@ if [ "$1" = "build" ];then
chmod +x ${2}/usr/lib/pkg/${pkgname}.$file )
done
rm -rf $2/CONTROL
- (cd $2 && tar -cJf $3/${pkgname}_${version}_${arch}.tar.xz .)
+ (cd $2 && tar -cf - .|xz -c > $3/${pkgname}_${version}_${arch}.tar.xz)
elif [ "$1" = "install" ];then
pkg=$(echo $(basename $2)|sed -e "s#_.*##")
if [ -x ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.preinst ]; then
IPKG_INSTROOT="$PKG_INSTROOT" ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.preinst
rm ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.preinst
fi
- tar -xJpf $2 -C ${PKG_INSTROOT}
+ xz -d -c $2|tar -xpf - -C ${PKG_INSTROOT}
if [ -x ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.postinst ]; then
IPKG_INSTROOT="$PKG_INSTROOT" ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.postinst
rm ${PKG_INSTROOT}/usr/lib/pkg/${pkg}.postinst