#!/bin/sh # Config prior to download/install of Microsoft Core Fonts for the Web # # (C) 2001 Eric Sharkey. # You may freely distribute this file under the terms of the GNU General # Public License, version 2 or later set -e # Source debconf library. . /usr/share/debconf/confmodule #Check if we need anything updated. SHA256SUMS=" 48d9bc613917709d3b0e0f4a6d4fe33a5c544c5035dffe9e90bc11e50e822071=Andale_Mono.ttf dad7c04acb26e23dfe4780e79375ca193ddaf68409317e81577a30674668830e=Arial_Black.ttf 35c0f3559d8db569e36c31095b8a60d441643d95f59139de40e23fada819b833=Arial.ttf 4044aa6b5bebbc36980206b45b0aaaaa5681552a48bcadb41746d5d1d71fd7b4=Arial_Bold.ttf 2f371cd9d96b3ac544519d85c16dc43ceacdfcea35090ee8ddf3ec5857c50328=Arial_Bold_Italic.ttf 70ade233175a6a6675e4501461af9326e6f78b1ffdf787ca0da5ab0fc8c9cfd6=Arial_Italic.ttf b82c53776058f291382ff7e008d4675839d2dc21eb295c66391f6fb0655d8fc0=Comic_Sans_MS.ttf 873361465d994994762d0b9845c99fc7baa2a600442ea8db713a7dd19f8b0172=Comic_Sans_MS_Bold.ttf 6715838c52f813f3821549d3f645db9a768bd6f3a43d8f85a89cb6875a546c61=Courier_New.ttf edf8a7c5bfcac2e1fe507faab417137cbddc9071637ef4648238d0768c921e02=Courier_New_Bold.ttf f3f6b09855b6700977e214aab5eb9e5be6813976a24f894bd7766e92c732fbe1=Courier_New_Italic.ttf 66dbfa20b534fba0e203da140fec7276a45a1069e424b1b9c35547538128bbe8=Courier_New_Bold_Italic.ttf 7d0bb20c632bb59e81a0885f573bd2173f71f73204de9058feb68ce032227072=Georgia.ttf 82d2fbadb88a8632d7f2e8ad50420c9fd2e7d3cbc0e90b04890213a711b34b93=Georgia_Bold.ttf 1523f19bda6acca42c47c50da719a12dd34f85cc2606e6a5af15a7728b377b60=Georgia_Italic.ttf c983e037d8e4e694dd0fb0ba2e625bca317d67a41da2dc81e46a374e53d0ec8a=Georgia_Bold_Italic.ttf 00f1fc230ac99f9b97ba1a7c214eb5b909a78660cb3826fca7d64c3af5a14848=Impact.ttf 4e98adeff8ccc8ef4e3ece8d4547e288ff85fdc9c7ca711a4599c234874bbe86=Times_New_Roman.ttf 4357b63cef20c01661a53c5dae70ffd20cb4765503aaed6d38b17a57c5a90bff=Times_New_Roman_Bold.ttf 192e1b0d18e90334e999a99f8c32808d6a2e74b3698b8cd90c943c2249a46549=Times_New_Roman_Bold_Italic.ttf c25ae529b4cecdbca148b6ccb862ee0abad770af8b1fd29c8dba619d1b8da78a=Times_New_Roman_Italic.ttf ec3ffb302488251e1b67fb09dd578b364c5339e27c1cfb26eb627666236453d0=Trebuchet_MS.ttf f65941f9487c0a0a3b7445996ecbbd24466d7ae76ea2a597ced55f438fa63838=Trebuchet_MS_Bold.ttf db56fdac7d3ba20b7aededcb6ee86c46687489d17b759e1708ea4e2d21e38410=Trebuchet_MS_Italic.ttf c0a6bdf31f9f2953b2f08a0c1734c892bc825f0fb17c604d420f7acf203a213b=Trebuchet_MS_Bold_Italic.ttf 96ed14949ca4b7392cff235b9c41d55c125382abbe0c0d3c2b9dd66897cae0cb=Verdana.ttf c8f5065ba91680f596af3b0378e2c3e713b95a523be3d56ae185ca2b8f5f0b23=Verdana_Bold.ttf 91b59186656f52972531a11433c866fd56e62ec4e61e2621a2dba70c8f19a828=Verdana_Italic.ttf 698e220f48f4a40e77af7eb34958c8fd02f1e18c3ba3f365d93bfa2ed4474c80=Verdana_Bold_Italic.ttf 10d099c88521b1b9e380b7690cbe47b54bb19396ca515358cfdc15ac249e2f5d=Webdings.ttf" EXESHA256S=" 0524fe42951adc3a7eb870e32f0920313c71f170c859b5f770d82b4ee111e970=andale32.exe 85297a4d146e9c87ac6f74822734bdee5f4b2a722d7eaa584b7f2cbf76f478f6=arial32.exe a425f0ffb6a1a5ede5b979ed6177f4f4f4fdef6ae7c302a7b7720ef332fec0a8=arialb32.exe 9c6df3feefde26d4e41d4a4fe5db2a89f9123a772594d7f59afd062625cd204e=comic32.exe bb511d861655dde879ae552eb86b134d6fae67cb58502e6ff73ec5d9151f3384=courie32.exe 2c2c7dcda6606ea5cf08918fb7cd3f3359e9e84338dc690013f20cd42e930301=georgi32.exe 6061ef3b7401d9642f5dfdb5f2b376aa14663f6275e60a51207ad4facf2fccfb=impact32.exe db56595ec6ef5d3de5c24994f001f03b2a13e37cee27bc25c58f6f43e8f807ab=times32.exe 5a690d9bb8510be1b8b4fe49f1f2319651fe51bbe54775ddddd8ef0bd07fdac9=trebuc32.exe c1cb61255e363166794e47664e2f21af8e3a26cb6346eb8d2ae2fa85dd5aad96=verdan32.exe 64595b5abc1080fba8610c5c34fab5863408e806aafe84653ca8575bed17d75a=webdin32.exe" NEEDUPDATE="" for f in $SHA256SUMS ; do THISSUM=`echo $f|awk -F "=" '{print $1}'` THISFILE=/usr/share/fonts/truetype/msttcorefonts/`echo $f|awk -F "=" '{print $2}'` if [ ! -f $THISFILE ] || [ `sha256sum $THISFILE | awk '{print $1}'` != $THISSUM ] ; then NEEDUPDATE=1 break; fi done if [ -n "$NEEDUPDATE" ] ; then db_input low msttcorefonts/dldir || true if [ -n "$http_proxy" ] ; then db_set msttcorefonts/http_proxy $http_proxy fi db_input medium msttcorefonts/http_proxy || true db_go db_get msttcorefonts/dldir while [ -n "$RET" ] && [ `echo $RET | tr [:upper:] [:lower:] ` != "none" ] ; do BADDIR="" for f in $EXESHA256S ; do THISSUM=`echo $f|awk -F "=" '{print $1}'` THISFILE=$RET/`echo $f|awk -F "=" '{print $2}'` echo checking $THISFILE if [ ! -f $THISFILE ] || [ `sha256sum $THISFILE | awk '{print $1}'` != $THISSUM ] ; then BADDIR=1 break; fi done if [ -n "$BADDIR" ] ; then db_fset msttcorefonts/baddldir seen false db_fset msttcorefonts/dldir seen false db_input critical msttcorefonts/baddldir || true db_input critical msttcorefonts/dldir || true db_go db_get msttcorefonts/dldir else break fi done if [ -z "$RET" ]; then db_input low msttcorefonts/savedir || true db_go db_get msttcorefonts/savedir fi db_get msttcorefonts/dldir if [ -z "$RET" ]; then db_input low msttcorefonts/dlurl || true db_go || true fi fi