pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

mm: fix docs destdir location.



Module Name:	pkgsrc-wip
Committed By:	Paolo Vincenzo Olivo <vms%retrobsd.ddns.net@localhost>
Pushed By:	vms
Date:		Mon Dec 12 11:24:07 2022 +0100
Changeset:	c38ee6e6850ebf40db1372f0ebb8c7a2c3ba9444

Modified Files:
	mm/Makefile
	mm/PLIST
Added Files:
	mm/files/sample-mm-conf

Log Message:
mm: fix docs destdir location.

Also install sample configuration files and fix file permissions.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c38ee6e6850ebf40db1372f0ebb8c7a2c3ba9444

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 mm/Makefile             | 11 ++++++++---
 mm/PLIST                | 31 ++++++++++++++++---------------
 mm/files/sample-mm-conf | 23 +++++++++++++++++++++++
 3 files changed, 47 insertions(+), 18 deletions(-)

diffs:
diff --git a/mm/Makefile b/mm/Makefile
index dabed77a59..414d94753d 100644
--- a/mm/Makefile
+++ b/mm/Makefile
@@ -42,7 +42,7 @@ TARGET:=	solaris-gcc
 .endif
 
 EGDIR=	${PREFIX}/share/examples/${PKGBASE}
-DOCDIR=	${PREFIX}/doc/${PKGBASE}
+DOCDIR=	${PREFIX}/share/doc/${PKGBASE}
 
 INSTALLATION_DIRS+=	bin lib ${EGDIR} ${DOCDOR}
 
@@ -69,8 +69,13 @@ post-install:
 		${DESTDIR}/${PREFIX}/bin/mm-sysprof
 	${RUN}cd ${WRKDIR}/mm/docs && 				\
 		${PAX} -rw . ${DESTDIR}${DOCDIR}
-	${RUN}cd ${WRKSRC}/samples &&				\
-		${PAX} -rw . ${DESTDIR}${EGDIR}
+.for f in samples/*
+	${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${EGDIR}
+.endfor
+	${INSTALL_DATA} ${FILESDIR}/sample-mm-conf ${DESTDIR}${EGDIR}
+	#Fix files permissions.
+	${RUN}${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libccmd.a
+	${RUN}${CHMOD} g-w ${DESTDIR}${PREFIX}/lib/mm/mmail.el
 
 .include "../../mk/curses.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/mm/PLIST b/mm/PLIST
index a81034738d..5efacae234 100644
--- a/mm/PLIST
+++ b/mm/PLIST
@@ -2,21 +2,6 @@
 bin/mm
 bin/mm-sysprof
 bin/mm-trans
-doc/mm/CHANGELOG
-doc/mm/DEBUG.NOTES
-doc/mm/INSTALL
-doc/mm/LICENSE.TXT
-doc/mm/README.TXT
-doc/mm/ccmd/DOC.TXT
-doc/mm/ccmd/INTRO.TXT
-doc/mm/ccmd/README
-doc/mm/ccmd/README.TOO
-doc/mm/notes/notes-beebe.txt
-doc/mm/notes/notes-fdc.txt
-doc/mm/notes/notes-klh.txt
-doc/mm/rfc/rfc2822.txt
-doc/mm/rfc/rfc733.txt
-doc/mm/rfc/rfc822.txt
 include/ccmd.h
 include/ccmdmd.h
 include/cmfnc.h
@@ -350,7 +335,23 @@ lib/mm/help/VARS.DIR/user-level.HLP
 lib/mm/help/VARS.DIR/user-name.HLP
 lib/mm/mmail.el
 lib/mm/movemail
+share/doc/mm/CHANGELOG
+share/doc/mm/DEBUG.NOTES
+share/doc/mm/INSTALL
+share/doc/mm/LICENSE.TXT
+share/doc/mm/README.TXT
+share/doc/mm/ccmd/DOC.TXT
+share/doc/mm/ccmd/INTRO.TXT
+share/doc/mm/ccmd/README
+share/doc/mm/ccmd/README.TOO
+share/doc/mm/notes/notes-beebe.txt
+share/doc/mm/notes/notes-fdc.txt
+share/doc/mm/notes/notes-klh.txt
+share/doc/mm/rfc/rfc2822.txt
+share/doc/mm/rfc/rfc733.txt
+share/doc/mm/rfc/rfc822.txt
 share/examples/mm/sample-mailcap
+share/examples/mm/sample-mm-conf
 share/examples/mm/sample-mm-header-options
 share/examples/mm/sample-mminit
 share/examples/mm/sample-shell-profile
diff --git a/mm/files/sample-mm-conf b/mm/files/sample-mm-conf
new file mode 100644
index 0000000000..30906e81d1
--- /dev/null
+++ b/mm/files/sample-mm-conf
@@ -0,0 +1,23 @@
+# System-wide initialization file for Columbia MM, version 0.96.0(14)
+# note that all lines beginning with "#" are comments
+
+# default mail format
+set default-mail-type mbox
+
+# default mail file
+set mail-file ~/mbox
+
+# possible paths for the mm authors
+define mm-authors bug-mm%columbia.edu@localhost
+
+# bug-mm is a local consultant who handles most mm problems
+# (No local bug address)
+define bug-mm mm-authors
+
+# path of default editor
+set editor /usr/bin/vi
+# is editor GNU Emacs
+set gnuemacs-mmail no
+
+# path for spell program
+set speller /usr/pkg/bin/hunspell


Home | Main Index | Thread Index | Old Index