blob: 2ffc4680fa3a35d98021c76a40059a8f540018f0 (
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.18 2020/03/20 11:57:57 nia Exp $
#
DISTNAME= esmtp-1.2
PKGREVISION= 4
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=esmtp/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://esmtp.sourceforge.net/
COMMENT= Relay-only Mail Transfer Agent with sendmail-compatible syntax
LICENSE= gnu-gpl-v2
CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 postfix-[0-9]*
CONFLICTS+= sendmail-[0-9]*
GNU_CONFIGURE= yes
USE_TOOLS+= bison flex
PTHREAD_OPTS+= require
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
SUBST_CLASSES+= paths
SUBST_MESSAGE.paths= Fixing hardcoded paths.
SUBST_STAGE.paths= pre-configure
SUBST_FILES.paths= README esmtp.1 esmtprc.5 sample.esmtprc
SUBST_SED.paths= -e 's|/usr/bin|${PREFIX}/bin|g'
SUBST_SED.paths+= -e 's|/etc|${PKG_SYSCONFDIR}|g'
PKG_SYSCONFSUBDIR= esmtp
EGDIR= ${PREFIX}/share/examples/esmtp
CONF_FILES= ${EGDIR}/sample.esmtprc \
${PKG_SYSCONFDIR}/esmtprc
INSTALLATION_DIRS= ${EGDIR} share/doc/esmtp
.include "../../mail/libesmtp/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
post-install:
${INSTALL_DATA} ${WRKSRC}/sample.esmtprc ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/esmtp
.include "../../mk/bsd.pkg.mk"
|