]> Zhao Yanbai Git Server - minix.git/commitdiff
Introduce pkgin_sets 06/2706/2
authorLionel Sambuc <lionel@minix3.org>
Wed, 6 Aug 2014 15:29:21 +0000 (17:29 +0200)
committerLionel Sambuc <lionel@minix3.org>
Wed, 13 Aug 2014 14:42:57 +0000 (16:42 +0200)
This tool allow you to install one or more predefined package sets.

Change-Id: Id21c9e9fbd43f44f2d3b040961411428e1ae0af9

distrib/sets/lists/minix/mi
etc/motd
minix/commands/Makefile
minix/commands/pkgin_sets/Makefile [new file with mode: 0644]
minix/commands/pkgin_sets/pkgin_sets.sh [new file with mode: 0644]

index 1d3d5912bd0e27d9fc4180505f3258c8c18138ea..a7eb0fc0aa67481de31c289fc1b428874d6178fd 100644 (file)
 ./usr/bin/ping                         minix-sys
 ./usr/bin/pkgin_all                    minix-sys
 ./usr/bin/pkgin_cd                     minix-sys
+./usr/bin/pkgin_sets                   minix-sys
 ./usr/bin/playwave                     minix-sys
 ./usr/bin/postinstall                  minix-sys
 ./usr/bin/pr                           minix-sys
index e6433676bf02c235964a6846ff20e15bf0b3975f..7e5020c00ee226de6c5326876c9b2141ba048e88 100755 (executable)
--- a/etc/motd
+++ b/etc/motd
@@ -9,7 +9,8 @@ package, and 'pkgin available' will list all available packages.
 
 To install packages from the installation CD: same, but use pkgin_cd.
 To switch to the online repository, do 'pkgin update' again. To install
-all packages, do pkgin_all.
+all packages, do pkgin_all, or do pkgin_sets to install one or more
+predefined sets.
 
 MINIX 3 supports multiple virtual terminals. Just use ALT+F1, F2, F3
 and F4 to navigate among them.
index 83a7322416bcf757f52dc8a481a8734865b43ef3..11b275914d18d50646db8d63cbbc7f3219d0a933 100644 (file)
@@ -30,7 +30,7 @@ SUBDIR=       add_route arp ash at backup btrace \
        truncate udpstat umount \
        unstack update uud uue version vol \
        writeisofs fetch \
-       zdump zmodem pkgin_cd pkgin_all \
+       zdump zmodem pkgin_cd pkgin_all pkgin_sets \
        worldstone updateboot update_bootcfg \
        atnormalize dosread fdisk loadfont \
        autopart part partition playwave  \
diff --git a/minix/commands/pkgin_sets/Makefile b/minix/commands/pkgin_sets/Makefile
new file mode 100644 (file)
index 0000000..71c18ec
--- /dev/null
@@ -0,0 +1,4 @@
+SCRIPTS= pkgin_sets.sh
+MAN=
+
+.include <bsd.prog.mk>
diff --git a/minix/commands/pkgin_sets/pkgin_sets.sh b/minix/commands/pkgin_sets/pkgin_sets.sh
new file mode 100644 (file)
index 0000000..f058f2a
--- /dev/null
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+CORE_TOOLS="openssh vim curl"
+DEV_TOOLS="git-base bmake gmake binutils clang"
+EXTRA_TOOLS="bison groff perl python"
+
+cat <<START_EOT
+This script contains 3 sets of packages, you can install any of those
+sets independently, just type N when pkgin ask for confirmation to skip
+a set.
+
+The following sets are available:
+
+1. Core tools:
+${CORE_TOOLS}
+
+2. Dev tools:
+${DEV_TOOLS}
+
+3. Extras:
+${EXTRA_TOOLS}
+
+START_EOT
+
+echo "Installing core tools"
+echo "====================="
+echo
+
+pkgin install ${CORE_TOOLS}
+
+echo
+echo "Installing default development tools"
+echo "===================================="
+echo
+
+pkgin install ${DEV_TOOLS}
+
+echo
+echo "Installing extras"
+echo "================="
+echo
+
+pkgin install ${EXTRA_TOOLS}