wok-next view suggested-applications/stuff/default-app @ rev 17871

Add: perl-fcgi FCGI::ProcManager
author Nathan Neulinger <nneul@neulinger.org>
date Thu Mar 26 23:41:46 2015 +0000 (2015-03-26)
parents 67404973a113
children
line source
1 #!/bin/sh
3 APP="$1"
5 # Auto Install DEPENDS and/or SUGGESTED
6 install() {
7 TMPFILE="/tmp/installlist-$$"
8 #echo "pkgs to install: $1"
9 for pkg in $1 ; do
10 if [ ! -d /var/lib/tazpkg/installed/${pkg} ]; then
11 echo "$pkg" >> $TMPFILE
12 fi
13 done
15 if [ -f $TMPFILE ] ; then
16 xterm -geometry 80x16 -title "Installing Packages (Press ENTER to close)" \
17 -e "echo -e \"Installing packages as root. This option depends on \n `cat $TMPFILE`\"
18 subox \"tazpkg get-install-list $TMPFILE\"
19 echo -e \"----\nPress ENTER to close and to proceed further...\"
20 read i; exit 0;
21 "
22 rm -f $TMPFILE
23 fi
24 }
26 if [ "$2" == "--install" ] ; then
27 SUGGESTED="$3"
28 install "$SUGGESTED"
29 fi
31 $APP &
33 exit 0