21 # flex libiconv perl xz |
21 # flex libiconv perl xz |
22 # fsl libidn pinentry zlib |
22 # fsl libidn pinentry zlib |
23 # gc libksba pkgconfig |
23 # gc libksba pkgconfig |
24 |
24 |
25 # Variables |
25 # Variables |
26 #ARCFIX=amd64-suse12.1 |
26 #ARCFIX=amd64-suse12.2 |
27 #ARCFIX=amd64-solaris11 |
27 #ARCFIX=amd64-solaris11 |
28 ARCFIX=$1 |
28 ARCFIX=$1 |
29 PREFIX=$2 |
29 PREFIX=$2 |
30 SUDBIN=$3 |
30 SUDBIN=$3 |
31 |
31 |
32 # Sanity check |
32 # Sanity check |
33 if [ ! $ARCFIX ]; then |
33 if [ ! $ARCFIX ]; then |
34 echo 'Error: Arch spec "amd64-suse12.1" or similar needed as first argument.' |
34 echo 'Error: Arch spec "amd64-suse12.2" or similar needed as first argument.' |
35 exit 1 |
35 exit 1 |
36 fi |
36 fi |
37 if [ ! $PREFIX ]; then |
37 if [ ! $PREFIX ]; then |
38 PREFIX=opkg |
38 PREFIX=opkg |
39 fi |
39 fi |
41 SUDBIN=/usr/bin/sudo |
41 SUDBIN=/usr/bin/sudo |
42 fi |
42 fi |
43 |
43 |
44 # Usage intro |
44 # Usage intro |
45 echo 'This is a OpenPKG installation script for instance /opkg' |
45 echo 'This is a OpenPKG installation script for instance /opkg' |
46 echo 'Please adjust sudo(1) accordingly, and pass "amd64-suse12.1"' |
46 echo 'Please adjust sudo(1) accordingly, and pass "amd64-suse12.2"' |
47 echo '...or whatever other string as the first argument. The script' |
47 echo '...or whatever other string as the first argument. The script' |
48 echo 'will install the Europalab 20120800 basis stack.' |
48 echo 'will install the Europalab 20120800 basis stack.' |
49 echo '' |
49 echo '' |
50 echo 'Quick tips: /pfx/bin/openpkg rpm was converted to libexec/openpkg/rpm.' |
50 echo 'Quick tips: /pfx/bin/openpkg rpm was converted to libexec/openpkg/rpm.' |
51 echo " Call this TMPDIR=/tmp/${PREFIX}auto $0 to parallelize." |
51 echo " Call this TMPDIR=/tmp/${PREFIX}auto $0 to parallelize." |