ports/75216: [MAINTAINER] mail/MailScanner-devel: [SUMMARIZE CHANGES]

Jan-Peter Koopmann j.koopmann at seceidos.de
Sat Dec 18 12:10:25 UTC 2004


>Number:         75216
>Category:       ports
>Synopsis:       [MAINTAINER] mail/MailScanner-devel: [SUMMARIZE CHANGES]
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Dec 18 12:10:23 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jan-Peter Koopmann
>Release:        FreeBSD 4.9-STABLE i386
>Organization:
>Environment:
System: FreeBSD services.intern.seceidos.de 4.9-STABLE FreeBSD 4.9-STABLE #0: Mon Jan  5 10:56:46 CET
>Description:
Change in Makefile: This version will update all languages.conf and not only the english one.

Generated with FreeBSD Port Tools 0.63
>How-To-Repeat:
>Fix:

--- MailScanner-devel-4.37.3_1.patch begins here ---
diff -ruN --exclude=CVS /server-root/ports/mail/mailscanner-devel.orig/Makefile /server-root/ports/mail/mailscanner-devel/Makefile
--- /server-root/ports/mail/mailscanner-devel.orig/Makefile	Fri Dec 17 09:24:24 2004
+++ /server-root/ports/mail/mailscanner-devel/Makefile	Sat Dec 18 13:06:22 2004
@@ -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 @@
 	   ${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}
 
--- MailScanner-devel-4.37.3_1.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list