blob: b5a309acbd1744f141232b8e110a8f98ec5d4e3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# $NetBSD: Makefile,v 1.3 1999/04/20 11:57:14 tv Exp $
DISTNAME= mailwrapper-19990412
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= tron@netbsd.org
MIRROR_DISTFILE= no
NO_CONFIGURE= yes
NO_PATCH= yes
.if exists(/usr/sbin/mailwrapper)
IGNORE= "is part of your NetBSD distribution"
.endif
.include "../../mk/bsd.prefs.mk"
.if defined(MANZ)
MANCOMPRESSED= 1
.endif
WRKSRC= ${WRKDIR}/mailwrapper
MAILER_CONF= /etc/mailer.conf
LIBEXECDIR= /usr/libexec/sendmail
SENDMAIL= /usr/sbin/sendmail
post-install:
${INSTALL_DATA} ${WRKSRC}/mailer.conf ${PREFIX}/etc/mailer.conf.default
${TEST} -e ${MAILER_CONF} || \
${LN} -s ${PREFIX}/etc/mailer.conf.default /etc/mailer.conf
${MKDIR} ${LIBEXECDIR}
${MV} -i ${SENDMAIL} ${LIBEXECDIR} </dev/null 2>/dev/null || ${TRUE}
${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/mailq
${LN} -fs ${PREFIX}/sbin/mailwrapper /usr/bin/newaliases
${LN} -fs ${PREFIX}/sbin/mailwrapper ${SENDMAIL}
.include "../../mk/bsd.pkg.mk"
|