summaryrefslogtreecommitdiff
path: root/mail/nmh/options.mk
blob: 9a39eb5b8a831547ced372c4657acbfd8f16c7fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# $NetBSD: options.mk,v 1.2 2005/10/05 13:29:51 wiz Exp $

PKG_OPTIONS_VAR=		PKG_OPTIONS.nmh
PKG_SUPPORTED_OPTIONS=		nmh-backup-hash

.include "../../mk/bsd.options.mk"

###
### Prepend a "#" instead of a "," to the name of a message that is
### "removed" by rmm.
###
.if !empty(PKG_OPTIONS:Mnmh-backup-hash)
post-configure: nmh-hash-backup

nmh-hash-backup:
	cd ${WRKSRC}; file=config.h;					\
	${SED} -e 's/^\(#define  *BACKUP_PREFIX\)  *.*/\1 "#"/'		\
		$$file > $$file.new;					\
	${MV} -f $$file.new $$file
.endif