summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorkim <kim@pkgsrc.org>1999-03-07 01:16:25 +0000
committerkim <kim@pkgsrc.org>1999-03-07 01:16:25 +0000
commit532b8184054c3dfa11e0b40caa33708510b04dc6 (patch)
tree73421ff93db18d1bb71724b52418bc4bfe2d813a /mail
parent440e18b0d8ca22bab0aa9ce55930bdc29c2243a4 (diff)
downloadpkgsrc-532b8184054c3dfa11e0b40caa33708510b04dc6.tar.gz
Setting NMH_HASH_BACKUP=yes will compile nmh with BACKUP_PREFIX set to "#".
Diffstat (limited to 'mail')
-rw-r--r--mail/nmh/Makefile9
-rw-r--r--mail/nmh/patches/patch-cb13
2 files changed, 10 insertions, 12 deletions
diff --git a/mail/nmh/Makefile b/mail/nmh/Makefile
index 1e980a887b8..0acd4f7c517 100644
--- a/mail/nmh/Makefile
+++ b/mail/nmh/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 1999/03/06 23:18:51 kim Exp $
+# $NetBSD: Makefile,v 1.25 1999/03/07 01:16:25 kim Exp $
# FreeBSD Id: Makefile,v 1.2 1997/08/04 06:51:28 markm Exp
#
@@ -46,6 +46,13 @@ DOCDIR= share/doc/nmh
post-patch:
${TOUCH} ${WRKSRC}/stamp-h.in
+.if defined(NMH_HASH_BACKUP) && (${NMH_HASH_BACKUP} == yes)
+post-configure:
+ ${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.bak
+ ${SED} -e 's/^\(#define *BACKUP_PREFIX\) *.*/\1 "#"/' \
+ < ${WRKSRC}/config.h.bak > ${WRKSRC}/config.h
+.endif
+
post-install:
@${INSTALL_DATA_DIR} ${PREFIX}/${DOCDIR}
@for f in `grep '^${DOCDIR}/' ${PKGDIR}/PLIST`; do \
diff --git a/mail/nmh/patches/patch-cb b/mail/nmh/patches/patch-cb
index 601407e665a..6dde242756e 100644
--- a/mail/nmh/patches/patch-cb
+++ b/mail/nmh/patches/patch-cb
@@ -1,7 +1,7 @@
-$NetBSD: patch-cb,v 1.3 1999/03/06 23:17:34 kim Exp $
+$NetBSD: patch-cb,v 1.4 1999/03/07 01:16:26 kim Exp $
--- config.h.in.orig Sat Jan 23 21:27:49 1999
-+++ config.h.in Sat Mar 6 17:50:41 1999
++++ config.h.in Sat Mar 6 19:50:56 1999
@@ -1,5 +1,12 @@
/* config.h.in. Generated automatically from configure.in by autoheader. */
@@ -31,15 +31,6 @@ $NetBSD: patch-cb,v 1.3 1999/03/06 23:17:34 kim Exp $
/*
* SCO 4.x
-@@ -154,7 +164,7 @@
- * The prefix which is prepended to the name of messages when they
- * are "removed" by rmm. This should typically be `,' or `#'
- */
--#define BACKUP_PREFIX ","
-+#define BACKUP_PREFIX "#"
-
- /*
- * Name of link to file to which you are replying.
@@ -399,9 +409,6 @@
/* Define if you have the <sys/ndir.h> header file. */