summaryrefslogtreecommitdiff
path: root/mail/smtpfeed/Makefile
blob: 067840f20748a1f6cb70ceb91334c62a1f3529c8 (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
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.37 2015/03/15 15:07:47 mef Exp $

DISTNAME=	smtpfeed-1.23
CATEGORIES=	mail
MASTER_SITES=	ftp://sh.wide.ad.jp/WIDE/free-ware/smtpfeed/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://member.wide.ad.jp/wg/smtp/smtpfeed.html
COMMENT=	SMTP Fast Exploding External Deliverer for Sendmail
LICENSE=	original-bsd

# sendmail 8.x with WIDE patch works better with it, than stock 8.x.
# require sendmail from pkgsrc.
#DEPENDS+=	sendmail>=8.9.3:../../mail/sendmail

GNU_CONFIGURE=		yes
CONFIGURE_ARGS+=	--libexecdir=${PREFIX:Q}/libexec
# configure tries to be clever, so force our setting
CONFIGURE_ENV+=		my_cv_path_lib_exec=${PREFIX:Q}/libexec
# use bind8?
#CONFIGURE_ARGS+=	--with-bind8

DOCS=	COPYRIGHT FEATURES FEATURES.j FYI FYI.j INSTALL INSTALL.j \
	ML-ADMIN ML-ADMIN.j OPTIONS OPTIONS.j README README.j \
	RELEASE.NOTE SIGNAL SIGNAL.j TODO

PKG_OPTIONS_VAR=	PKG_OPTIONS.smtpfeed
PKG_SUPPORTED_OPTIONS=	inet6
PKG_SUGGESTED_OPTIONS=	inet6

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

.if !empty(PKG_OPTIONS:Minet6)
CONFIGURE_ARGS+=	--enable-ipv6
.endif

INSTALLATION_DIRS=	libexec ${PKGMANDIR}/man8 share/doc/smtpfeed
INSTALL_MAKE_FLAGS+=	libexecdir=${DESTDIR}${PREFIX}/libexec

post-install:
	${INSTALL_MAN} ${WRKSRC}/smtpfeed.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
	for i in ${DOCS}; do \
		${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/share/doc/smtpfeed; \
	done

.include "../../devel/sysexits/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"