File:  [cvs.NetBSD.org] / pkgsrc / mail / esmtp / Makefile
Revision 1.12: download - view: text, annotated - select for diffs
Mon Oct 8 12:19:09 2012 UTC (12 years, 2 months ago) by asau
Branches: MAIN
CVS tags: pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Drop PKG_DESTDIR_SUPPORT setting, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.12 2012/10/08 12:19:09 asau Exp $
#

DISTNAME=	esmtp-1.2
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"

CVSweb <webmaster@jp.NetBSD.org>