preinst is in sse3-support 5.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | #!/bin/bash
#dash is fine, too, but not general /bin/sh (ulimit)
set -e
if [ "$1" = install -o "$1" = upgrade ]; then
# Writing to /usr/lib is nasty but some folks mount everything noexec.
FILE=`mktemp /usr/lib/sse3-support.XXXXXXXXXX`
trap "rm -f '$FILE'" EXIT
perl <<'END' |gzip -cdf >"$FILE"
binmode STDOUT;
print unpack "u*", <<'end';
M'XL(```````"`^U:?6Q3UQ6_[]E.')+X69!`"(,\&%6A70QAP,)8P"\$\E(%
M1DM"_Z#!.(E#O"5VYSR7#ZVMHT=*7VD8ZY#&M&I(:&JG3IW0M#+V\8==5YA^
M2(.M5)1T6T2780?:6BL-:1KR=NY[]_KCR6Z8MOWG$UV?^SOWG'//._?K.==/
M;VW=QC(,HF1"FY"&YNC82>3\TI0*R.I1"7Q6HX6H"+`E0\_()YEL;DWU@Y`9
M2CVK8R/_"LKF3`:WH/QTUI;-(?*4'8XUOEB7QA?S67P%Z5=DL^U88H>6$/$2
M/HN'26!AP_.926DC_HR\"65S,^$[QZ1N7*\HU[&1MZ)L3NT>!KLB=.]D)_P1
MTE^^O%21>"FGX["JS]NY?NVJON[:/J\O>+#V8/WZVO5K'0-^QQHM)CO1;=[1
MGAIO-B/F"B+#[:_^\N/F5Z>B+\WX-_]HV>[^DD<;+]<RQ)Y!_QG5IT8NFZJA
MS,TA;\NCWY5'7@IE6:Z.(1]=^/'7(Y>KZZ#;U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$FILE") || ret=$?
rm -f "$FILE"
trap - EXIT
if [ $ret -ne 0 -a -n "$IGNORE_ISA" ]; then
cat >&2 <<END
This machine doesn't support sse3, but override (IGNORE_ISA) is enabled.
Continuing...
END
ret=0
fi
if [ $ret -eq 126 ]; then
cat >&2 <<END
Couldn't execute test binary for sse3, you either do foreign multi-arch
without qemu or do something strange. Assuming you know what you're doing.
Continuing...
END
ret=0
fi
if [ $ret -ne 0 ]; then
# Fail noisily, first via debconf (if installed).
if [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_version 2.0
db_fset sse3-support/fail seen false ||:
db_reset sse3-support/fail ||:
db_input critical sse3-support/fail ||:
db_go ||:
db_stop ||:
fi
cat >&2 <<END
This machine doesn't support sse3, sorry.
Aborting.
END
exit 2
fi
fi
exit 0
|