From 103c830c6a443e8ab1b1467965dde414b44dd6f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Nordstr=C3=B6m?= Date: Fri, 4 Sep 2009 02:57:32 +0000 Subject: [PATCH] Move 3.1 change to the right spec file --- squid.spec | 89 ++++++++++++++++++++++++++++++++++++++++++++++++++ squid.spec-3.1 | 89 -------------------------------------------------- 2 files changed, 89 insertions(+), 89 deletions(-) diff --git a/squid.spec b/squid.spec index dc0d47a..690be0c 100644 --- a/squid.spec +++ b/squid.spec @@ -234,6 +234,95 @@ exit 0 %post /sbin/chkconfig --add squid +if [ $1 = 0 ]; then + case "$LANG" in + bg*) + DIR=Bulgarian + ;; + ca*) + DIR=Catalan + ;; + cs*) + DIR=Czech + ;; + da*) + DIR=Danish + ;; + nl*) + DIR=Dutch + ;; + en*) + DIR=English + ;; + ea*) + DIR=Estonian + ;; + fi*) + DIR=Finnish + ;; + fr*) + DIR=French + ;; + de*) + DIR=German + ;; + he*) + DIR=Hebrew + ;; + hu*) + DIR=Hungarian + ;; + it*) + DIR=Italian + ;; + ja*) + DIR=Japanese + ;; + kr*) + DIR=Korean + ;; + pl*) + DIR=Polish + ;; + pt*) + DIR=Portuguese + ;; + ro*) + DIR=Romanian + ;; + ru*) + DIR=Russian-koi8-r + ;; + sr*) + DIR=Serbian + ;; + sk*) + DIR=Slovak + ;; + es*) + DIR=Spanish + ;; + sv*) + DIR=Swedish + ;; + zh_TW*) + DIR=Traditional_Chinese + ;; + zh_CN*) + DIR=Simplify_Chinese + ;; + tr*) + DIR=Turkish + ;; + greek) + DIR=Greek + ;; + *) + DIR=English + ;; + esac + ln -snf %{_datadir}/squid/errors/$DIR /etc/squid/errors +fi %preun if [ $1 = 0 ] ; then diff --git a/squid.spec-3.1 b/squid.spec-3.1 index 0b7a3dd..676faec 100644 --- a/squid.spec-3.1 +++ b/squid.spec-3.1 @@ -228,95 +228,6 @@ exit 0 %post /sbin/chkconfig --add squid -if [ $1 = 0 ]; then - case "$LANG" in - bg*) - DIR=Bulgarian - ;; - ca*) - DIR=Catalan - ;; - cs*) - DIR=Czech - ;; - da*) - DIR=Danish - ;; - nl*) - DIR=Dutch - ;; - en*) - DIR=English - ;; - ea*) - DIR=Estonian - ;; - fi*) - DIR=Finnish - ;; - fr*) - DIR=French - ;; - de*) - DIR=German - ;; - he*) - DIR=Hebrew - ;; - hu*) - DIR=Hungarian - ;; - it*) - DIR=Italian - ;; - ja*) - DIR=Japanese - ;; - kr*) - DIR=Korean - ;; - pl*) - DIR=Polish - ;; - pt*) - DIR=Portuguese - ;; - ro*) - DIR=Romanian - ;; - ru*) - DIR=Russian-koi8-r - ;; - sr*) - DIR=Serbian - ;; - sk*) - DIR=Slovak - ;; - es*) - DIR=Spanish - ;; - sv*) - DIR=Swedish - ;; - zh_TW*) - DIR=Traditional_Chinese - ;; - zh_CN*) - DIR=Simplify_Chinese - ;; - tr*) - DIR=Turkish - ;; - greek) - DIR=Greek - ;; - *) - DIR=English - ;; - esac - ln -snf %{_datadir}/squid/errors/$DIR /etc/squid/errors -fi %preun if [ $1 = 0 ] ; then