morpheus

suckless linux distro
git clone git://git.2f30.org/morpheus.git
Log | Files | Refs | Submodules | README | LICENSE

commit d559c502baff337bc53e3f5a6554bd245905bf91
parent bcb7da2e282230b0ed2da68e93d37ff6d675b59d
Author: sin <sin@2f30.org>
Date:   Tue Jun 10 16:39:23 +0100

Only fetch the needed packages

Diffstat:
misc/install-morpheus | 54+++++++++++++++++++++++++++++++-----------------------
1 file changed, 31 insertions(+), 23 deletions(-)
diff --git a/misc/install-morpheus b/misc/install-morpheus @@ -5,32 +5,40 @@ root="root" pkgdir="pkgs" -# prepare root. +# list of important packages +pkgs=" +curl#7.36.0.pkg.tgz +e2fsprogs#1.42.9.pkg.tgz +extlinux#6.02.pkg.tgz +file#5.17.pkg.tgz +fs.pkg.tgz +hbase.pkg.tgz +ii.pkg.tgz +libarchive#3.1.2.pkg.tgz +linux#3.10.32.pkg.tgz +iproute2#3.14.0.pkg.tgz +mksh#R47.pkg.tgz +pkgtools.pkg.tgz +sbase.pkg.tgz +sdhcp.pkg.tgz +sinit.pkg.tgz +smdev.pkg.tgz +tmux#1.9a.pkg.tgz +ubase.pkg.tgz +vim#7.4.pkg.tgz" + +# prepare root mkdir -p "$root/var/pkg" mkdir -p "$pkgdir" -# fetch packages. +# fetch packages cd "$pkgdir" -searchpkg '\.tgz$' | fetchpkg +for i in $pkgs; do + searchpkg "$i" | fetchpkg +done cd - 1>/dev/null -# install -installpkg -p "$root" "$pkgdir/curl#7.36.0.pkg.tgz" -installpkg -p "$root" "$pkgdir/e2fsprogs#1.42.9.pkg.tgz" -installpkg -p "$root" "$pkgdir/extlinux#6.02.pkg.tgz" -installpkg -p "$root" "$pkgdir/file#5.17.pkg.tgz" -installpkg -p "$root" "$pkgdir/fs.pkg.tgz" -installpkg -p "$root" "$pkgdir/hbase.pkg.tgz" -installpkg -p "$root" "$pkgdir/ii.pkg.tgz" -installpkg -p "$root" "$pkgdir/libarchive#3.1.2.pkg.tgz" -installpkg -p "$root" "$pkgdir/linux#3.10.32.pkg.tgz" -installpkg -p "$root" "$pkgdir/iproute2#3.14.0.pkg.tgz" -installpkg -p "$root" "$pkgdir/mksh#R47.pkg.tgz" -installpkg -p "$root" "$pkgdir/pkgtools.pkg.tgz" -installpkg -p "$root" "$pkgdir/sbase.pkg.tgz" -installpkg -p "$root" "$pkgdir/sdhcp.pkg.tgz" -installpkg -p "$root" "$pkgdir/sinit.pkg.tgz" -installpkg -p "$root" "$pkgdir/smdev.pkg.tgz" -installpkg -p "$root" "$pkgdir/tmux#1.9a.pkg.tgz" -installpkg -p "$root" "$pkgdir/ubase.pkg.tgz" -installpkg -p "$root" "$pkgdir/vim#7.4.pkg.tgz" +# install packages +for i in $pkgs; do + installpkg -p "$root" "$pkgdir/$i" +done