forked from neil/lxc-templates
Merge pull request #38 from tenforward/plamo_pkgtools8
plamo: Support new pkgtools8
This commit is contained in:
commit
80ba0cbd87
@ -61,7 +61,7 @@ download_plamo() {
|
|||||||
for p in ${IGNOREPKGS#* } ; do rej="$rej,$p-*" ; done
|
for p in ${IGNOREPKGS#* } ; do rej="$rej,$p-*" ; done
|
||||||
fi
|
fi
|
||||||
for i in $CATEGORIES ; do
|
for i in $CATEGORIES ; do
|
||||||
wget -nv -e robots=off -r -l $depth -nd -A .tgz,.txz -R "$rej" \
|
wget -nv -e robots=off -r -l $depth -nd -A .tgz,.txz,.tzst -R "$rej" \
|
||||||
-I $MIRRORPATH/Plamo-$release/$arch/plamo/$i \
|
-I $MIRRORPATH/Plamo-$release/$arch/plamo/$i \
|
||||||
-X $MIRRORPATH/Plamo-$release/$arch/plamo/$i/old \
|
-X $MIRRORPATH/Plamo-$release/$arch/plamo/$i/old \
|
||||||
$DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/plamo/$i
|
$DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/plamo/$i
|
||||||
@ -71,7 +71,7 @@ download_plamo() {
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
for i in $EXTRACTGRS ; do
|
for i in $EXTRACTGRS ; do
|
||||||
wget -nv -e robots=off -r -l $depth -nd -A .tgz,.txz -R "$rej" \
|
wget -nv -e robots=off -r -l $depth -nd -A .tgz,.txz,.tzst -R "$rej" \
|
||||||
-I $MIRRORPATH/Plamo-$release/$arch/contrib/$i \
|
-I $MIRRORPATH/Plamo-$release/$arch/contrib/$i \
|
||||||
-X $MIRRORPATH/Plamo-$release/$arch/contrib/$i/old \
|
-X $MIRRORPATH/Plamo-$release/$arch/contrib/$i/old \
|
||||||
$DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/contrib/$i
|
$DLSCHEME://$MIRRORSRV$MIRRORPATH/Plamo-$release/$arch/contrib/$i
|
||||||
@ -126,14 +126,24 @@ install_plamo() {
|
|||||||
pkgtool="pkgtools"
|
pkgtool="pkgtools"
|
||||||
pkgtool=$( cd $dlcache ; ls "$pkgtool"* )
|
pkgtool=$( cd $dlcache ; ls "$pkgtool"* )
|
||||||
pkgtool=${pkgtool%%-*}
|
pkgtool=${pkgtool%%-*}
|
||||||
|
pkgtool=${pkgtool:0:-1}
|
||||||
else
|
else
|
||||||
pkgtool="hdsetup"
|
pkgtool="hdsetup"
|
||||||
LANG=C
|
LANG=C
|
||||||
fi
|
fi
|
||||||
|
|
||||||
( cd $dlcache ; tar xpJf "$pkgtool"-*.txz ; rm -rf tmp usr var )
|
( cd $dlcache ; tar xpf "$pkgtool"*-*.t*z* ; rm -rf tmp usr var )
|
||||||
if [ $pkgtool = "pkgtools${majorver}" ]; then
|
if [ $pkgtool = "pkgtools" ]; then
|
||||||
( cd $dlcache/sbin ; mv installer_new installer )
|
( cd $dlcache/sbin
|
||||||
|
mv installer_new installer
|
||||||
|
pkg_scripts="installpkg installpkg2 installpkg2.mes makepkg updatepkg removepkg"
|
||||||
|
for s in $pkg_scripts
|
||||||
|
do
|
||||||
|
mv new_"$s" $s
|
||||||
|
done
|
||||||
|
cd installer
|
||||||
|
ln -sf zstd-* zstd
|
||||||
|
)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sed -i "/ldconfig/!s@/sbin@$dlcache&@g" $dlcache/sbin/installpkg*
|
sed -i "/ldconfig/!s@/sbin@$dlcache&@g" $dlcache/sbin/installpkg*
|
||||||
@ -141,7 +151,7 @@ install_plamo() {
|
|||||||
echo "Installing packages to $rtcache..."
|
echo "Installing packages to $rtcache..."
|
||||||
if [ ! -d $rtcache ] ; then
|
if [ ! -d $rtcache ] ; then
|
||||||
mkdir -p $rtcache
|
mkdir -p $rtcache
|
||||||
for p in `ls -cr $dlcache/*.t?z` ; do
|
for p in `ls -cr $dlcache/*.t*z*` ; do
|
||||||
installpkg -root $rtcache -priority ADD $p
|
installpkg -root $rtcache -priority ADD $p
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user