ports/58558: maintainer-update of mail/mutt

Udo Schweigert udo.schweigert at siemens.com
Sun Oct 26 10:50:28 UTC 2003


>Number:         58558
>Category:       ports
>Synopsis:       maintainer-update of mail/mutt
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 26 02:50:19 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Udo Schweigert
>Release:        FreeBSD 4.9-RC i386
>Organization:
>Environment:
System: FreeBSD alaska.cert.siemens.de 4.9-RC FreeBSD 4.9-RC #111: Thu Oct 23 08:13:48 CEST 2003 ust at alaska.cert.siemens.de:/usr/obj/usr/src/sys/alaska i386


>Description:

Maintainer update of mail/mutt:

	- Fix the DOCSDIR and EXAMPLESDIR code. Now both can be set to
	  non-standard values.
	- Striping of binaries is no longer needed (it's done by install -s).
	- Be less verbose.

Committer: cvs add files/patch-doc-mutt.man

>How-To-Repeat:
>Fix:

diff -ru  /usr/ports/mail/mutt/Makefile ./Makefile
--- /usr/ports/mail/mutt/Makefile	Thu Sep 25 06:34:29 2003
+++ ./Makefile	Sun Oct 26 11:23:13 2003
@@ -92,6 +92,8 @@
 post-patch::
 	@${REINPLACE_CMD} -e 's,/usr/bin/gpg,${LOCALBASE}/bin/gpg,g' \
 		${WRKSRC}/contrib/gpg.rc
+	@${REINPLACE_CMD} -E -e 's|@samplesdir@|${EXAMPLESDIR}|g' \
+		${WRKSRC}/contrib/Makefile.in
 
 .if defined(WITH_MUTT_XFACE)
 post-patch::
@@ -105,7 +107,7 @@
 # this should be done automagically by aclocal but ....
 # for now, this will have to do
 pre-build:
-	${REINPLACE_CMD} -E -e "s|^(ACLOCAL = ).+|\1${ACLOCAL}|" \
+	@${REINPLACE_CMD} -E -e "s|^(ACLOCAL = ).+|\1${ACLOCAL}|" \
 			-e "s|^(AUTOCONF = ).+|\1${AUTOCONF}|" \
 			-e "s|^(AUTOMAKE = ).+|\1${AUTOMAKE}|" \
 			-e "s|^(AUTOHEADER = ).+|\1${AUTOHEADER}|" \
@@ -113,10 +115,16 @@
 
 .if !defined(NOPORTDOCS)
 post-build:
-	${TOUCH} ${WRKSRC}/doc/mutt.man ${WRKSRC}/doc/manual.sgml
-	${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-doc-ref
-	printf ",s|\$${PREFIX}|%s|g\nw\nq\n" ${PREFIX} | \
-		ed -s ${WRKSRC}/doc/mutt.man
+	@${TOUCH} ${WRKSRC}/doc/mutt.man ${WRKSRC}/doc/manual.sgml
+	@${PATCH} ${PATCH_ARGS} < ${PATCHDIR}/extra-patch-doc-ref
+	@${REINPLACE_CMD} -E -e 's|\$$\{PREFIX\}|${PREFIX}|g' \
+		-e 's|\$$\{DOCSDIR\}|${DOCSDIR}|g' \
+		-e 's|\$$\{EXAMPLESDIR\}|${EXAMPLESDIR}|g' \
+		${WRKSRC}/doc/mutt.man
+	@${REINPLACE_CMD} -E -e 's|\$$\{PREFIX\}|${PREFIX}|g' \
+		-e 's|\$$\{DOCSDIR\}|${DOCSDIR}|g' \
+		-e 's|\$$\{EXAMPLESDIR\}|${EXAMPLESDIR}|g' \
+		${WRKSRC}/doc/muttrc.man
 .if defined(WITH_SGML_DOCS) && ${WITH_SGML_DOCS} != "no"
 PLIST:=		${WRKDIR}/PLIST
 pre-install:
@@ -126,7 +134,6 @@
 .endif
 
 post-install:
-	@${STRIP_CMD} ${PREFIX}/bin/mutt
 	${INSTALL_DATA} ${WRKSRC}/Muttrc ${PREFIX}/etc/Muttrc.dist
 .if !defined(NOPORTDOCS)
 	@${ECHO} "===>   Installing Mutt documentation"
diff -ru  /usr/ports/mail/mutt/files/extra-patch-doc-ref ./files/extra-patch-doc-ref
--- /usr/ports/mail/mutt/files/extra-patch-doc-ref	Mon Mar 17 08:09:24 2003
+++ ./files/extra-patch-doc-ref	Sun Oct 26 11:21:48 2003
@@ -6,7 +6,7 @@
  mail under unix operating systems, including support color terminals, MIME,
 -and a threaded sorting mode.
 +and a threaded sorting mode.  Details of how to use all of this is
-+available in \fI${PREFIX}/share/doc/mutt/\fP.
++available in \fI${DOCSDIR}\fP.
  .SH OPTIONS
  .IP "-a \fIfile\fP"
  Attach a file to your message using MIME.
diff -ru  /usr/ports/mail/mutt/files/patch-doc-mutt.man ./files/patch-doc-mutt.man
--- /usr/ports/mail/mutt/files/patch-doc-mutt.man	Thu Jan  1 01:00:00 1970
+++ ./files/patch-doc-mutt.man	Sun Oct 26 11:11:23 2003
@@ -0,0 +1,34 @@
+--- doc/mutt.man.orig	Wed Jul 24 10:41:31 2002
++++ doc/mutt.man	Sun Oct 26 11:06:36 2003
+@@ -136,9 +136,9 @@
+ User's personal mapping between MIME types and file extensions.
+ .IP "/etc/mime.types"
+ System mapping between MIME types and file extensions.
+-.IP "/usr/local/bin/mutt_dotlock"
++.IP "${PREFIX}/bin/mutt_dotlock"
+ The privileged dotlocking program.
+-.IP "/usr/local/doc/mutt/manual.txt"
++.IP "${DOCSDIR}/manual.txt"
+ The Mutt manual.
+ .SH BUGS
+ .PP
+--- doc/muttrc.man	Sun Oct 26 11:09:09 2003
++++ doc/muttrc.man	Sun Oct 26 11:08:48 2003
+@@ -990,7 +972,7 @@
+ .B dotlock_program
+ .nf
+ Type: path
+-Default: \(lq/usr/local/bin/mutt_dotlock\(rq
++Default: \(lq${PREFIX}/bin/mutt_dotlock\(rq
+ .fi
+ .IP
+ Contains the path of the mutt_dotlock (8) binary to be used by
+@@ -3970,7 +3952,7 @@
+ instead of a raw socket. You may be able to use this to set up
+ preauthenticated connections to your IMAP/POP3 server. Example:
+ .IP
+-tunnel=\(rqssh -q mailhost.net /usr/local/libexec/imapd\(rq
++tunnel=\(rqssh -q mailhost.net ${PREFIX}/libexec/imapd\(rq
+ .IP
+ NOTE: For this example to work you must be able to log in to the remote
+ machine without having to enter a password.
diff -ru  /usr/ports/mail/mutt/files/patch-examples ./files/patch-examples
--- /usr/ports/mail/mutt/files/patch-examples	Wed Mar 26 19:21:14 2003
+++ ./files/patch-examples	Sun Oct 26 10:41:30 2003
@@ -4,7 +4,7 @@
  mandir = @mandir@
  srcdir = @srcdir@
  docdir = @docdir@
-+samplesdir = @prefix@/share/examples/mutt
++samplesdir = @samplesdir@
  top_srcdir = @top_srcdir@
  top_builddir = ..
  INSTALL = @INSTALL@

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



More information about the freebsd-ports-bugs mailing list