aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2004-12-22 19:42:09 +0800
committervs <vs@FreeBSD.org>2004-12-22 19:42:09 +0800
commitf1516cb019f5793b5f2564797c46862fd97b6066 (patch)
treeb54e3ed6e3d76fe519718ffbb658fb46fa39d1e7 /mail
parent0ac76a5367cc44011d6215284067e9ff16ec16cc (diff)
downloadfreebsd-ports-gnome-f1516cb019f5793b5f2564797c46862fd97b6066.tar.gz
freebsd-ports-gnome-f1516cb019f5793b5f2564797c46862fd97b6066.tar.zst
freebsd-ports-gnome-f1516cb019f5793b5f2564797c46862fd97b6066.zip
Update all languages.conf and not only the english one
PR: ports/75215, ports/75216 Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/mailscanner-devel/Makefile30
-rw-r--r--mail/mailscanner/Makefile30
2 files changed, 36 insertions, 24 deletions
diff --git a/mail/mailscanner-devel/Makefile b/mail/mailscanner-devel/Makefile
index 55989721803b..cc22c931e8a1 100644
--- a/mail/mailscanner-devel/Makefile
+++ b/mail/mailscanner-devel/Makefile
@@ -7,6 +7,7 @@
PORTNAME= MailScanner
PORTVERSION= 4.37.3
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
PKGNAMESUFFIX= -devel
@@ -210,19 +211,24 @@ do-install:
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
- # Upgrading langauages.conf... Please wait... ATTENTION: English version only!
- @${WRKSRC}/bin/upgrade_languages_conf \
- ${DATADIR}/reports/en/languages.conf \
- ${DATADIR}/reports/en/languages.conf.sample > \
- ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} \
- 2> /dev/null
- @if diff -b -B -q ${DATADIR}/reports/en/languages.conf \
- ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} ; \
- then ${ECHO} "No changes in languages.conf found" ; \
- ${RM} ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} ; \
- else ${CP} ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} ${DATADIR}/reports/en/languages.conf ; \
- fi
.endif
+ @for LANG_DIR in ${DATADIR}/reports/*; do \
+ if [ -f $${LANG_DIR}/languages.conf ]; then \
+ ${ECHO} -n Upgrading $${LANG_DIR}/languages.conf... Please wait...; \
+ ${WRKSRC}/bin/upgrade_languages_conf \
+ $${LANG_DIR}/languages.conf \
+ $${LANG_DIR}/languages.conf.sample > \
+ $${LANG_DIR}/languages.conf.new.${PORTVERSION} \
+ 2> /dev/null ; \
+ if diff -b -B -q $${LANG_DIR}/languages.conf \
+ $${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
+ then ${ECHO} " no changes"; \
+ ${RM} $${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
+ else ${ECHO} " done"; \
+ ${CP} $${LANG_DIR}/languages.conf.new.${PORTVERSION} $${LANG_DIR}/languages.conf ; \
+ fi; \
+ fi; \
+ done
@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}
diff --git a/mail/mailscanner/Makefile b/mail/mailscanner/Makefile
index aa524ff1b4a2..e70dcb2df4b8 100644
--- a/mail/mailscanner/Makefile
+++ b/mail/mailscanner/Makefile
@@ -7,6 +7,7 @@
PORTNAME= MailScanner
PORTVERSION= 4.36.4
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://www.sng.ecs.soton.ac.uk/mailscanner/files/4/tar/
DISTNAME= ${PORTNAME}-install-${PORTVERSION}-${PATCHLEVEL}
@@ -209,18 +210,23 @@ do-install:
${ECHO} "Changes in MailScanner.conf found. Please look at \
${PREFIX}/etc/MailScanner/MailScanner.conf.new.${PORTVERSION}" ; \
fi
- # Upgrading langauages.conf... Please wait... ATTENTION: English version only!
- @${WRKSRC}/bin/upgrade_languages_conf \
- ${DATADIR}/reports/en/languages.conf \
- ${DATADIR}/reports/en/languages.conf.sample > \
- ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} \
- 2> /dev/null
- @if diff -b -B -q ${DATADIR}/reports/en/languages.conf \
- ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} ; \
- then ${ECHO} "No changes in languages.conf found" ; \
- ${RM} ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} ; \
- else ${CP} ${DATADIR}/reports/en/languages.conf.new.${PORTVERSION} ${DATADIR}/reports/en/languages.conf ; \
- fi
+ @for LANG_DIR in ${DATADIR}/reports/*; do \
+ if [ -f $${LANG_DIR}/languages.conf ]; then \
+ ${ECHO} -n Upgrading $${LANG_DIR}/languages.conf... Please wait...; \
+ ${WRKSRC}/bin/upgrade_languages_conf \
+ $${LANG_DIR}/languages.conf \
+ $${LANG_DIR}/languages.conf.sample > \
+ $${LANG_DIR}/languages.conf.new.${PORTVERSION} \
+ 2> /dev/null ; \
+ if diff -b -B -q $${LANG_DIR}/languages.conf \
+ $${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
+ then ${ECHO} " no changes"; \
+ ${RM} $${LANG_DIR}/languages.conf.new.${PORTVERSION} ; \
+ else ${ECHO} " done"; \
+ ${CP} $${LANG_DIR}/languages.conf.new.${PORTVERSION} $${LANG_DIR}/languages.conf ; \
+ fi; \
+ fi; \
+ done
.endif
@${SED} -e 's,%%PREFIX%%,${PREFIX},' pkg-message > ${PKGMESSAGE}
@${CAT} ${PKGMESSAGE}